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: danger: ‘buf’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def2]
libusb-1.0.29/examples/ezusb.c:131:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def4]
libusb-1.0.29/examples/ezusb.c:131:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def5]
libusb-1.0.29/examples/ezusb.c:132:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def6]
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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def7]
libusb-1.0.29/examples/ezusb.c:132:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def8]
libusb-1.0.29/examples/ezusb.c:138:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def9]
libusb-1.0.29/examples/ezusb.c:138:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def10]
libusb-1.0.29/examples/ezusb.c:140:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def11]
libusb-1.0.29/examples/ezusb.c:140:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: 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): [#def12]
libusb-1.0.29/examples/ezusb.c:158:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
libusb-1.0.29/examples/ezusb.c:158:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def14]
libusb-1.0.29/examples/ezusb.c:159:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def15]
libusb-1.0.29/examples/ezusb.c:159:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def16]
libusb-1.0.29/examples/ezusb.c:165:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def17]
libusb-1.0.29/examples/ezusb.c:165:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def18]
libusb-1.0.29/examples/ezusb.c:167:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
libusb-1.0.29/examples/ezusb.c:167:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:22: call_function: calling ‘ezusb_read’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
libusb-1.0.29/examples/ezusb.c:186:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
libusb-1.0.29/examples/ezusb.c:186:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
libusb-1.0.29/examples/ezusb.c:187:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
libusb-1.0.29/examples/ezusb.c:187:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
libusb-1.0.29/examples/ezusb.c:197:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
libusb-1.0.29/examples/ezusb.c:197:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def26]
libusb-1.0.29/examples/ezusb.c:199:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def27]
libusb-1.0.29/examples/ezusb.c:199:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:728:5: enter_function: entry to ‘ezusb_load_ram’
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:748:12: branch_false: following ‘false’ branch (when ‘img_type != 1’)...
libusb-1.0.29/examples/ezusb.c:760:9: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:776:12: branch_true: following ‘true’ branch (when ‘stage == 0’)...
libusb-1.0.29/examples/ezusb.c:777:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:780:36: call_function: calling ‘ezusb_cpucs’ from ‘ezusb_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
libusb-1.0.29/examples/ezusb.c:214:17: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
libusb-1.0.29/examples/ezusb.c:214:17: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
libusb-1.0.29/examples/ezusb.c:215:18: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
libusb-1.0.29/examples/ezusb.c:215:18: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
libusb-1.0.29/examples/ezusb.c:224:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
libusb-1.0.29/examples/ezusb.c:224:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def34]
libusb-1.0.29/examples/ezusb.c:226:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
libusb-1.0.29/examples/ezusb.c:226:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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:697:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:698:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:697:13: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:705:14: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:705:14: call_function: calling ‘ezusb_fx3_jump’ from ‘fx3_load_ram’
Error: GCC_ANALYZER_WARNING (CWE-775): [#def36]
libusb-1.0.29/examples/ezusb.c:589:17: 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: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
libusb-1.0.29/examples/ezusb.c:589:17: 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: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def38]
libusb-1.0.29/examples/ezusb.c:593:17: 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:592:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:593:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:593:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
libusb-1.0.29/examples/ezusb.c:593:17: 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:592:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:593:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:593:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def40]
libusb-1.0.29/examples/ezusb.c:600:17: 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: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:600:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def41]
libusb-1.0.29/examples/ezusb.c:600:17: 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: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:600:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def42]
libusb-1.0.29/examples/ezusb.c:609:25: 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: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:608:20: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:609:80: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:609:25: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def43]
libusb-1.0.29/examples/ezusb.c:609:25: 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: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:608:20: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:609:80: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:609:25: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
libusb-1.0.29/examples/ezusb.c:612:17: 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: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:612:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def45]
libusb-1.0.29/examples/ezusb.c:612:17: 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: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:612:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
libusb-1.0.29/examples/ezusb.c:616:17: 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: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:616:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def47]
libusb-1.0.29/examples/ezusb.c:616:17: 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: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:616:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
libusb-1.0.29/examples/ezusb.c:620:17: 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: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:620:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def49]
libusb-1.0.29/examples/ezusb.c:620:17: 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: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:620:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
libusb-1.0.29/examples/ezusb.c:632:17: 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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:632:104: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:632:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def51]
libusb-1.0.29/examples/ezusb.c:632:17: 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: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:626:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:627:22: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:627:20: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:632:104: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:632:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
libusb-1.0.29/examples/ezusb.c:637:17: 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: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:636:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:637:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:637:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
libusb-1.0.29/examples/ezusb.c:637:17: 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: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:636:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:637:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:637:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def54]
libusb-1.0.29/examples/ezusb.c:641:25: 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: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_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:641:25: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:641:25: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def55]
libusb-1.0.29/examples/ezusb.c:641:25: 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: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_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:641:25: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:641:25: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-789): [#def56]
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): [#def57]
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-775): [#def58]
libusb-1.0.29/examples/ezusb.c:651:25: 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: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:651:25: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
libusb-1.0.29/examples/ezusb.c:651:25: 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: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:651:25: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def60]
libusb-1.0.29/examples/ezusb.c:658:25: 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: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: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: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
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: danger: ‘dImageBuf’ leaks here; was allocated at [(15)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
libusb-1.0.29/examples/ezusb.c:658:25: 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: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: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: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def63]
libusb-1.0.29/examples/ezusb.c:674:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:672:30: call_function: calling ‘ezusb_write’ from ‘fx3_load_ram’
libusb-1.0.29/examples/ezusb.c:672:30: return_function: returning to ‘fx3_load_ram’ from ‘ezusb_write’
libusb-1.0.29/examples/ezusb.c:672:28: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:674:33: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:674:33: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(2)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def64]
libusb-1.0.29/examples/ezusb.c:674:33: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(path, "rb")’
libusb-1.0.29/examples/ezusb.c:576:12: enter_function: entry to ‘fx3_load_ram’
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: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: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...
branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:663:29: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/ezusb.c:665:25: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:672:30: call_function: calling ‘ezusb_write’ from ‘fx3_load_ram’
libusb-1.0.29/examples/ezusb.c:672:30: return_function: returning to ‘fx3_load_ram’ from ‘ezusb_write’
libusb-1.0.29/examples/ezusb.c:672:28: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:674:33: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:674:33: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(2)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def65]
libusb-1.0.29/examples/ezusb.c:699:17: 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: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:697:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:699:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:699:17: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(1)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def66]
libusb-1.0.29/examples/ezusb.c:699:17: 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: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:697:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:699:17: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:699:17: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def67]
libusb-1.0.29/examples/ezusb.c:746:17: 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: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def68]
libusb-1.0.29/examples/ezusb.c:746:17: 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: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def69]
libusb-1.0.29/examples/ezusb.c:753:25: 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:748:12: branch_true: following ‘true’ branch (when ‘img_type == 1’)...
libusb-1.0.29/examples/ezusb.c:749:23: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:749:20: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:753:25: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:753:25: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def70]
libusb-1.0.29/examples/ezusb.c:753:25: 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:748:12: branch_true: following ‘true’ branch (when ‘img_type == 1’)...
libusb-1.0.29/examples/ezusb.c:749:23: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:749:20: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:753:25: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:753:25: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def71]
libusb-1.0.29/examples/ezusb.c:792:25: 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:776:12: branch_false: following ‘false’ branch (when ‘stage != 0’)...
libusb-1.0.29/examples/ezusb.c:788:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:791:20: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:792:25: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:792:25: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def72]
libusb-1.0.29/examples/ezusb.c:792:25: 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:776:12: branch_false: following ‘false’ branch (when ‘stage != 0’)...
libusb-1.0.29/examples/ezusb.c:788:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:791:20: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/ezusb.c:792:25: branch_true: ...to here
libusb-1.0.29/examples/ezusb.c:792:25: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def73]
libusb-1.0.29/examples/ezusb.c:798:18: 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:776:12: branch_false: following ‘false’ branch (when ‘stage != 0’)...
libusb-1.0.29/examples/ezusb.c:788:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:798:18: danger: ‘fopen(path, "rb")’ leaks here; was opened at [(3)](sarif:/runs/0/results/79/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
libusb-1.0.29/examples/ezusb.c:798:18: 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:776:12: branch_false: following ‘false’ branch (when ‘stage != 0’)...
libusb-1.0.29/examples/ezusb.c:788:17: branch_false: ...to here
libusb-1.0.29/examples/ezusb.c:798:18: danger: ‘fopen(path, "rb")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/80/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def75]
libusb-1.0.29/examples/fxload.c:61:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
libusb-1.0.29/examples/fxload.c:57:9: acquire_resource: ‘va_start’ called here
libusb-1.0.29/examples/fxload.c:60:12: branch_true: following ‘true’ branch...
libusb-1.0.29/examples/fxload.c:61:17: branch_true: ...to here
libusb-1.0.29/examples/fxload.c:61:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def76]
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: 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-401): [#def77]
libusb-1.0.29/examples/xusb.c:361:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libusb-1.0.29/examples/xusb.c:1101:5: enter_function: entry to ‘main’
libusb-1.0.29/examples/xusb.c:1122:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/xusb.c:1127:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1228:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
libusb-1.0.29/examples/xusb.c:1232:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1234:12: branch_false: following ‘false’ branch (when ‘error_lang’ is NULL)...
libusb-1.0.29/examples/xusb.c:1240:13: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1240:13: call_function: calling ‘test_device’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
libusb-1.0.29/examples/xusb.c:363:25: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libusb-1.0.29/examples/xusb.c:1101:5: enter_function: entry to ‘main’
libusb-1.0.29/examples/xusb.c:1122:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/xusb.c:1127:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1228:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
libusb-1.0.29/examples/xusb.c:1232:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1234:12: branch_false: following ‘false’ branch (when ‘error_lang’ is NULL)...
libusb-1.0.29/examples/xusb.c:1240:13: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1240:13: call_function: calling ‘test_device’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
libusb-1.0.29/examples/xusb.c:368:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libusb-1.0.29/examples/xusb.c:1101:5: enter_function: entry to ‘main’
libusb-1.0.29/examples/xusb.c:1122:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/xusb.c:1127:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1228:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
libusb-1.0.29/examples/xusb.c:1232:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1234:12: branch_false: following ‘false’ branch (when ‘error_lang’ is NULL)...
libusb-1.0.29/examples/xusb.c:1240:13: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1240:13: call_function: calling ‘test_device’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
libusb-1.0.29/examples/xusb.c:543:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
libusb-1.0.29/examples/xusb.c:1101:5: enter_function: entry to ‘main’
libusb-1.0.29/examples/xusb.c:1122:12: branch_false: following ‘false’ branch...
libusb-1.0.29/examples/xusb.c:1127:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1228:12: branch_false: following ‘false’ branch (when ‘r >= 0’)...
libusb-1.0.29/examples/xusb.c:1232:12: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1234:12: branch_false: following ‘false’ branch (when ‘error_lang’ is NULL)...
libusb-1.0.29/examples/xusb.c:1240:13: branch_false: ...to here
libusb-1.0.29/examples/xusb.c:1240:13: call_function: calling ‘test_device’ from ‘main’
Error: GCC_ANALYZER_WARNING (CWE-686): [#def81]
libusb-1.0.29/libusb/core.c:2310:17: warning[-Wanalyzer-va-arg-type-mismatch]: 'va_arg' expected 'libusb_log_cb' {{aka 'void (*)(libusb_context *, enum libusb_log_level, const char *)'}} but received 'int' for variadic argument 1 of 'ap'
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:2468:20: branch_false: following 'false' branch...
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' with 0 variadic arguments
libusb-1.0.29/libusb/core.c:2472:29: return_function: returning to 'libusb_init_context' from 'libusb_set_option'
libusb-1.0.29/libusb/core.c:2476:20: branch_false: following 'false' branch (when 'r == 0')...
libusb-1.0.29/libusb/core.c:2467:75: branch_false: ...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:2472:29: call_function: calling 'libusb_set_option' from 'libusb_init_context' with 0 variadic arguments
libusb-1.0.29/libusb/core.c:2472:29: return_function: returning to 'libusb_init_context' from 'libusb_set_option'
libusb-1.0.29/libusb/core.c:2476:20: branch_false: following 'false' branch (when 'r == 0')...
libusb-1.0.29/libusb/core.c:2467:75: branch_false: ...to here
libusb-1.0.29/libusb/core.c:2481:26: branch_true: following 'true' branch (when 'i < num_options')...
libusb-1.0.29/libusb/core.c:2482:31: branch_true: ...to here
libusb-1.0.29/libusb/core.c:2482:17: branch_false: following 'false' branch...
libusb-1.0.29/libusb/core.c:2487:17: branch_false: ...to here
libusb-1.0.29/libusb/core.c:2492:29: call_function: calling 'libusb_set_option' from 'libusb_init_context' with 1 variadic argument
Error: GCC_ANALYZER_WARNING (CWE-685): [#def82]
libusb-1.0.29/libusb/core.c:2310:17: warning[-Wanalyzer-va-list-exhausted]: 'ap' has no more arguments (0 consumed)
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:2468:20: branch_false: following 'false' branch...
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' with 0 variadic arguments
libusb-1.0.29/libusb/core.c:2472:29: return_function: returning to 'libusb_init_context' from 'libusb_set_option'
libusb-1.0.29/libusb/core.c:2476:20: branch_false: following 'false' branch (when 'r == 0')...
libusb-1.0.29/libusb/core.c:2467:75: branch_false: ...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:2472:29: call_function: calling 'libusb_set_option' from 'libusb_init_context' with 0 variadic arguments
libusb-1.0.29/libusb/core.c:2472:29: return_function: returning to 'libusb_init_context' from 'libusb_set_option'
libusb-1.0.29/libusb/core.c:2476:20: branch_false: following 'false' branch (when 'r == 0')...
libusb-1.0.29/libusb/core.c:2467:75: branch_false: ...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:2472:29: call_function: calling 'libusb_set_option' from 'libusb_init_context' with 0 variadic arguments
Error: GCC_ANALYZER_WARNING (CWE-404): [#def83]
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:2468:20: branch_false: following 'false' branch...
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): [#def84]
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): [#def85]
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): [#def86]
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): [#def87]
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): [#def88]
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): [#def89]
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): [#def90]
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): [#def91]
libusb-1.0.29/libusb/descriptor.c:384:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
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): [#def92]
libusb-1.0.29/libusb/descriptor.c:384:33: 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): [#def93]
libusb-1.0.29/libusb/descriptor.c:390:33: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
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): [#def94]
libusb-1.0.29/libusb/descriptor.c:390:33: 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): [#def95]
libusb-1.0.29/libusb/descriptor.c:404:25: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
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): [#def96]
libusb-1.0.29/libusb/descriptor.c:404:25: 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): [#def97]
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): [#def98]
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): [#def99]
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: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
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: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
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: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
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: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
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: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
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: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def105]
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: danger: '<unknown>' leaks here; was allocated at [(21)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/20)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def106]
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: danger: '_bos' leaks here; was allocated at [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def107]
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: danger: '_ssplus_cap' leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-401): [#def108]
libusb-1.0.29/libusb/descriptor.c:1101: error[memleak]: Memory leak: _ssplus_cap
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
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): [#def110]
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): [#def111]
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): [#def112]
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: danger: '_iad_array' leaks here; was allocated at [(2)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def113]
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): [#def114]
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): [#def115]
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): [#def116]
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: 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-476): [#def117]
libusb-1.0.29/libusb/io.c:2820:9: warning[-Wanalyzer-null-dereference]: dereference of NULL 'dev_handle'
libusb-1.0.29/libusb/io.c:2816:38: branch_false: following 'false' branch (when 'dev_handle' is NULL)...
libusb-1.0.29/libusb/io.c:2820:9: branch_false: ...to here
libusb-1.0.29/libusb/io.c:2820:9: danger: dereference of NULL 'dev_handle'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def118]
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): [#def119]
libusb-1.0.29/libusb/libusbi.h:497: error[ctunullpointer]: Null pointer dereference: ctx
Error: CPPCHECK_WARNING (CWE-476): [#def120]
libusb-1.0.29/libusb/libusbi.h:497: warning[nullPointer]: Possible null pointer dereference: ctx
Error: GCC_ANALYZER_WARNING (CWE-476): [#def121]
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): [#def122]
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): [#def123]
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): [#def124]
libusb-1.0.29/libusb/os/linux_usbfs.c:515:20: 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-775): [#def125]
libusb-1.0.29/libusb/os/linux_usbfs.c:522:12: 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): [#def126]
libusb-1.0.29/libusb/os/linux_usbfs.c:1997:21: 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')...
branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:1997:21: 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): [#def127]
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: 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')...
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_false: following 'false' branch (when 'i >= num_urbs')...
branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: branch_false: following 'false' branch (when 'i >= num_urbs')...
branch_false: ...to here
libusb-1.0.29/libusb/os/linux_usbfs.c:2186:21: 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): [#def128]
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')...
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: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: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: danger: 'urbs' leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
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')...
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: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: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: 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): [#def130]
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')...
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: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: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: danger: 'urbs' leaks here; was allocated at [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-562): [#def131]
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): [#def132]
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): [#def133]
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): [#def134]
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): [#def135]
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.90.0 |
| analyzer-version-cppcheck | 2.18.3 |
| analyzer-version-gcc | 15.2.1 |
| 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-141.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-gcc-latest-x86_64 |
| project-name | libusb1-1.0.29-4.fc44 |
| store-results-to | /tmp/tmpnjb5ozh3/libusb1-1.0.29-4.fc44.tar.xz |
| time-created | 2025-10-28 19:16:51 |
| time-finished | 2025-10-28 19:18:47 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpnjb5ozh3/libusb1-1.0.29-4.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpnjb5ozh3/libusb1-1.0.29-4.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |