ddcutil-2.2.1-1.fc44
List of Findings
Error: GCC_ANALYZER_WARNING (CWE-775): [#def1]
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:145:7: warning[-Wanalyzer-file-leak]: leak of FILE 'output_fp'
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:107:1: enter_function: entry to 'app_dumpvcp_as_file'
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:117:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:118:29: branch_true: ...to here
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:120:10: branch_true: following 'true' branch (when 'filename' is non-NULL)...
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:121:22: branch_true: ...to here
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:121:22: acquire_resource: opened here
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:122:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:126:28: call_function: inlined call to 'g_strdup_inline' from 'app_dumpvcp_as_file'
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:145:7: danger: 'output_fp' leaks here; was opened at [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:145:7: warning[-Wanalyzer-malloc-leak]: leak of 'output_fp'
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:107:1: enter_function: entry to 'app_dumpvcp_as_file'
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:117:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:118:29: branch_true: ...to here
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:120:10: branch_true: following 'true' branch (when 'filename' is non-NULL)...
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:121:22: branch_true: ...to here
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:121:22: acquire_memory: allocated here
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:122:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:126:28: call_function: inlined call to 'g_strdup_inline' from 'app_dumpvcp_as_file'
ddcutil-2.2.1/src/app_ddcutil/app_dumpload.c:145:7: danger: 'output_fp' leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
ddcutil-2.2.1/src/app_sysenv/query_sysenv.c:545:36: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(appdir)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv.c:538:22: branch_true: following 'true' branch (when 'dirname' is non-NULL)...
ddcutil-2.2.1/src/app_sysenv/query_sysenv.c:539:32: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv.c:542:17: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv.c:543:10: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv.c:545:36: danger: 'opendir(appdir)' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def4]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: CPPCHECK_WARNING (CWE-476): [#def5]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: GCC_ANALYZER_WARNING (CWE-476): [#def6]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:196:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'accum'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:192:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:196:4: danger: 'accum' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def7]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:199: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: CPPCHECK_WARNING (CWE-476): [#def8]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:200: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: CPPCHECK_WARNING (CWE-476): [#def9]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:201: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: GCC_ANALYZER_WARNING (CWE-401): [#def10]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:247:43: warning[-Wanalyzer-malloc-leak]: leak of 'driver_names'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:234:6: enter_function: entry to 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:242:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: call_function: calling 'driver_name_list_string' from 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: return_function: returning to 'env_accumulator_report' from 'driver_name_list_string'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:246:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:247:43: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:247:43: danger: 'driver_names' leaks here; was allocated at [(12)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def11]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:249:4: warning[-Wanalyzer-malloc-leak]: leak of 'driver_names'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:234:6: enter_function: entry to 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:242:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: call_function: calling 'driver_name_list_string' from 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: return_function: returning to 'env_accumulator_report' from 'driver_name_list_string'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:249:4: danger: 'driver_names' leaks here; was allocated at [(12)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def12]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:250:4: warning[-Wanalyzer-malloc-leak]: leak of 'driver_names'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:234:6: enter_function: entry to 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:242:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: call_function: calling 'driver_name_list_string' from 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: return_function: returning to 'env_accumulator_report' from 'driver_name_list_string'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:250:4: danger: 'driver_names' leaks here; was allocated at [(12)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def13]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:251:4: warning[-Wanalyzer-malloc-leak]: leak of 'driver_names'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:234:6: enter_function: entry to 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:242:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: call_function: calling 'driver_name_list_string' from 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: return_function: returning to 'env_accumulator_report' from 'driver_name_list_string'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:251:4: danger: 'driver_names' leaks here; was allocated at [(12)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/11)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def14]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:252:4: warning[-Wanalyzer-malloc-leak]: leak of 'driver_names'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:234:6: enter_function: entry to 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:242:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: call_function: calling 'driver_name_list_string' from 'env_accumulator_report'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:243:22: return_function: returning to 'env_accumulator_report' from 'driver_name_list_string'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:252:4: danger: 'driver_names' leaks here; was allocated at [(12)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/11)
Error: CPPCHECK_WARNING (CWE-476): [#def15]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:336: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: newnode
Error: GCC_ANALYZER_WARNING (CWE-476): [#def16]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:336:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'newnode'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:332:6: enter_function: entry to 'driver_name_list_add'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:334:9: call_function: calling 'driver_name_list_find_exact' from 'driver_name_list_add'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:334:9: return_function: returning to 'driver_name_list_add' from 'driver_name_list_find_exact'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:334:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:335:36: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:335:36: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:336:7: danger: 'newnode' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def17]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:337: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: newnode
Error: CPPCHECK_WARNING (CWE-476): [#def18]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:425: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def19]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:425:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:424:20: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:425:4: danger: 'result' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def20]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def21]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_base.c:433: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:139:4: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(devname, 524290)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:707:13: enter_function: entry to 'probe_one_device_using_libdrm'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:761:13: acquire_resource: opened here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:762:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:767:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:770:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:771:7: call_function: calling 'probe_open_device_using_libdrm' from 'probe_one_device_using_libdrm'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def23]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:141:4: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(devname, 524290)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:707:13: enter_function: entry to 'probe_one_device_using_libdrm'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:761:13: acquire_resource: opened here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:762:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:767:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:770:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:771:7: call_function: calling 'probe_open_device_using_libdrm' from 'probe_one_device_using_libdrm'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def24]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:767:10: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(devname, 524290)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:761:13: acquire_resource: opened here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:762:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:767:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_drm.c:767:10: danger: 'open(devname, 524290)' leaks here; was opened at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:248:13: warning[-Wanalyzer-malloc-leak]: leak of 'edid_buf'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:245:22: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:248:13: danger: 'edid_buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:250:7: warning[-Wanalyzer-malloc-leak]: leak of 'edid_buf'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:245:22: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:249:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:250:83: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:250:7: danger: 'edid_buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def27]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:254:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'edid_buf'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:245:22: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:249:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_true: following 'true' branch (when 'write_before_read != 0')...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:254:10: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:254:10: danger: 'edid_buf' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def28]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:255:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&i2cdev, 2)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:248:13: acquire_resource: opened here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:249:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_true: following 'true' branch (when 'write_before_read != 0')...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:254:10: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:255:15: danger: 'open(&i2cdev, 2)' leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:255:15: warning[-Wanalyzer-malloc-leak]: leak of 'edid_buf'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:245:22: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:249:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_true: following 'true' branch (when 'write_before_read != 0')...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:254:10: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:255:15: danger: 'edid_buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def30]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:263:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(&i2cdev, 2)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:248:13: acquire_resource: opened here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:249:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: following 'false' branch (when 'write_before_read == 0')...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:263:12: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:263:12: danger: 'open(&i2cdev, 2)' leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def31]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:263:12: warning[-Wanalyzer-malloc-leak]: leak of 'edid_buf'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:236:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:237:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:245:22: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:249:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:253:10: branch_false: following 'false' branch (when 'write_before_read == 0')...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:263:12: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_i2c.c:263:12: danger: 'edid_buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def32]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_modules.c:118:4: warning[-Wanalyzer-malloc-leak]: leak of 'cmd'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_modules.c:116:17: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_modules.c:118:4: danger: 'cmd' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def33]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:105:24: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/proc/driver/nvidia/gpus/")'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:94:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:95:7: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:101:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:102:21: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:102:21: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:105:24: danger: 'opendir("/proc/driver/nvidia/gpus/")' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def34]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:105:24: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'opendir("/proc/driver/nvidia/gpus/")' where non-null expected
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:94:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:95:7: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:101:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:102:21: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:102:21: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/app_sysenv/query_sysenv_procfs.c:105:24: danger: argument 1 ('opendir("/proc/driver/nvidia/gpus/")') from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def35]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:630:37: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/sys/module/drm/holders/amdgpu/parameters")'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:617:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:19: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:19: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:630:37: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:630:37: danger: 'opendir("/sys/module/drm/holders/amdgpu/parameters")' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def36]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:632:18: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/sys/module/drm/holders/amdgpu/parameters")'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:617:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:19: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:19: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:630:37: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:632:18: danger: 'opendir("/sys/module/drm/holders/amdgpu/parameters")' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:636:16: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(&*<unknown>.d_name)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:617:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:19: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:624:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:630:37: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:633:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:635:17: branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:635:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:636:53: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:636:46: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_sysfs.c:636:16: danger: 'strdup(&*<unknown>.d_name)' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def38]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_usb.c:86:21: warning[-Wanalyzer-malloc-leak]: leak of 'opendir("/sys/kernel/debug/hid/")'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_usb.c:80:9: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_usb.c:81:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_usb.c:86:21: danger: 'opendir("/sys/kernel/debug/hid/")' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def39]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:129:12: warning[-Wanalyzer-malloc-leak]: leak of 'xref'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:140:25: enter_function: entry to 'device_xref_new'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:141:28: acquire_memory: allocated here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:144:22: call_function: calling 'device_xref_edid_tag' from 'device_xref_new'
Error: CPPCHECK_WARNING (CWE-476): [#def40]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xref
Error: CPPCHECK_WARNING (CWE-476): [#def41]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:143: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xref
Error: CPPCHECK_WARNING (CWE-476): [#def42]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xref
Error: GCC_ANALYZER_WARNING (CWE-476): [#def43]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:144:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'xref'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:141:28: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:144:4: danger: 'xref' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def44]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xref
Error: CPPCHECK_WARNING (CWE-476): [#def45]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: xref
Error: GCC_ANALYZER_WARNING (CWE-401): [#def46]
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:223:4: warning[-Wanalyzer-malloc-leak]: leak of 'device_xref_new(raw_edid)'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:210:18: enter_function: entry to 'device_xref_new_with_busno'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:211:4: branch_true: following 'true' branch (when 'busno >= 0')...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:212:4: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:212:4: branch_true: following 'true' branch (when 'raw_edid' is non-NULL)...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:217:11: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:218:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:220:11: branch_true: ...to here
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:220:11: call_function: calling 'device_xref_new' from 'device_xref_new_with_busno'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:220:11: return_function: returning to 'device_xref_new_with_busno' from 'device_xref_new'
ddcutil-2.2.1/src/app_sysenv/query_sysenv_xref.c:223:4: danger: 'device_xref_new(raw_edid)' leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def47]
ddcutil-2.2.1/src/base/core.c:415:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/base/core.c:867:6: enter_function: entry to 'dbgtrc_returning_string'
ddcutil-2.2.1/src/base/core.c:892:7: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/base/core.c:896:21: call_function: calling 'vdbgtrc' from 'dbgtrc_returning_string'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def48]
ddcutil-2.2.1/src/base/core.c:415:55: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/base/core.c:867:6: enter_function: entry to 'dbgtrc_returning_string'
ddcutil-2.2.1/src/base/core.c:892:7: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/base/core.c:896:21: call_function: calling 'vdbgtrc' from 'dbgtrc_returning_string'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def49]
ddcutil-2.2.1/src/base/core.c:543:50: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/base/core.c:867:6: enter_function: entry to 'dbgtrc_returning_string'
ddcutil-2.2.1/src/base/core.c:892:7: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/base/core.c:896:21: call_function: calling 'vdbgtrc' from 'dbgtrc_returning_string'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def50]
ddcutil-2.2.1/src/base/core.c:546:28: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/base/core.c:867:6: enter_function: entry to 'dbgtrc_returning_string'
ddcutil-2.2.1/src/base/core.c:892:7: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/base/core.c:896:21: call_function: calling 'vdbgtrc' from 'dbgtrc_returning_string'
Error: CPPCHECK_WARNING (CWE-476): [#def51]
ddcutil-2.2.1/src/base/ddc_packets.c:264: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: packet
Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
ddcutil-2.2.1/src/base/ddc_packets.c:264:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'packet'
ddcutil-2.2.1/src/base/ddc_packets.c:263:26: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/ddc_packets.c:264:4: danger: 'packet' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def53]
ddcutil-2.2.1/src/base/ddc_packets.c:264:24: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
ddcutil-2.2.1/src/base/ddc_packets.c:263:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/ddc_packets.c:264:24: danger: 'packet' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def54]
ddcutil-2.2.1/src/base/ddc_packets.c:266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: packet
Error: CPPCHECK_WARNING (CWE-476): [#def55]
ddcutil-2.2.1/src/base/ddc_packets.c:267: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: packet
Error: CPPCHECK_WARNING (CWE-476): [#def56]
ddcutil-2.2.1/src/base/ddc_packets.c:270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: packet
Error: CPPCHECK_WARNING (CWE-476): [#def57]
ddcutil-2.2.1/src/base/ddc_packets.c:272: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: packet
Error: CPPCHECK_WARNING (CWE-476): [#def58]
ddcutil-2.2.1/src/base/ddc_packets.c:273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: packet
Error: GCC_ANALYZER_WARNING (CWE-401): [#def59]
ddcutil-2.2.1/src/base/ddc_packets.c:275:4: warning[-Wanalyzer-malloc-leak]: leak of 'packet'
ddcutil-2.2.1/src/base/ddc_packets.c:263:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/ddc_packets.c:275:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/ddc_packets.c:275:4: branch_false: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:275:4: danger: 'packet' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
ddcutil-2.2.1/src/base/ddc_packets.c:305:4: warning[-Wanalyzer-malloc-leak]: leak of 'create_empty_ddc_packet(data_bytect + 4, tag)'
ddcutil-2.2.1/src/base/ddc_packets.c:292:1: enter_function: entry to 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:302:4: branch_false: following 'false' branch (when 'data_bytect <= 32')...
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: branch_false: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: call_function: calling 'create_empty_ddc_packet' from 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: return_function: returning to 'create_ddc_base_request_packet' from 'create_empty_ddc_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:305:4: danger: 'create_empty_ddc_packet(data_bytect + 4, tag)' leaks here; was allocated at [(6)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
ddcutil-2.2.1/src/base/ddc_packets.c:306:4: warning[-Wanalyzer-malloc-leak]: leak of 'create_empty_ddc_packet(data_bytect + 4, tag)'
ddcutil-2.2.1/src/base/ddc_packets.c:292:1: enter_function: entry to 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:302:4: branch_false: following 'false' branch (when 'data_bytect <= 32')...
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: branch_false: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: call_function: calling 'create_empty_ddc_packet' from 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: return_function: returning to 'create_ddc_base_request_packet' from 'create_empty_ddc_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:306:4: danger: 'create_empty_ddc_packet(data_bytect + 4, tag)' leaks here; was allocated at [(6)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def62]
ddcutil-2.2.1/src/base/ddc_packets.c:307:4: warning[-Wanalyzer-malloc-leak]: leak of 'create_empty_ddc_packet(data_bytect + 4, tag)'
ddcutil-2.2.1/src/base/ddc_packets.c:292:1: enter_function: entry to 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:302:4: branch_false: following 'false' branch (when 'data_bytect <= 32')...
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: branch_false: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: call_function: calling 'create_empty_ddc_packet' from 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: return_function: returning to 'create_ddc_base_request_packet' from 'create_empty_ddc_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:307:4: danger: 'create_empty_ddc_packet(data_bytect + 4, tag)' leaks here; was allocated at [(6)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/5)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def63]
ddcutil-2.2.1/src/base/ddc_packets.c:308:4: warning[-Wanalyzer-malloc-leak]: leak of 'create_empty_ddc_packet(data_bytect + 4, tag)'
ddcutil-2.2.1/src/base/ddc_packets.c:292:1: enter_function: entry to 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:302:4: branch_false: following 'false' branch (when 'data_bytect <= 32')...
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: branch_false: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: call_function: calling 'create_empty_ddc_packet' from 'create_ddc_base_request_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:304:26: return_function: returning to 'create_ddc_base_request_packet' from 'create_empty_ddc_packet'
ddcutil-2.2.1/src/base/ddc_packets.c:308:4: danger: 'create_empty_ddc_packet(data_bytect + 4, tag)' leaks here; was allocated at [(6)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def64]
ddcutil-2.2.1/src/base/ddc_packets.c:745: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aux_data
Error: CPPCHECK_WARNING (CWE-476): [#def65]
ddcutil-2.2.1/src/base/ddc_packets.c:746: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aux_data
Error: CPPCHECK_WARNING (CWE-476): [#def66]
ddcutil-2.2.1/src/base/ddc_packets.c:747: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aux_data
Error: CPPCHECK_WARNING (CWE-476): [#def67]
ddcutil-2.2.1/src/base/ddc_packets.c:749: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: aux_data
Error: CPPCHECK_WARNING (CWE-476): [#def68]
ddcutil-2.2.1/src/base/ddc_packets.c:830: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: CPPCHECK_WARNING (CWE-476): [#def69]
ddcutil-2.2.1/src/base/ddc_packets.c:1192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: copy
Error: GCC_ANALYZER_WARNING (CWE-688): [#def70]
ddcutil-2.2.1/src/base/ddc_packets.c:1192:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'copy' where non-null expected
ddcutil-2.2.1/src/base/ddc_packets.c:1185:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/ddc_packets.c:1190:10: branch_false: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:1190:10: branch_true: following 'true' branch (when 'make_copy != 0')...
ddcutil-2.2.1/src/base/ddc_packets.c:1191:48: branch_true: ...to here
ddcutil-2.2.1/src/base/ddc_packets.c:1191:48: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/ddc_packets.c:1192:10: danger: argument 1 ('copy') from [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def71]
ddcutil-2.2.1/src/base/display_lock.c:116: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_desc
Error: CPPCHECK_WARNING (CWE-476): [#def72]
ddcutil-2.2.1/src/base/display_lock.c:117: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_desc
Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
ddcutil-2.2.1/src/base/display_lock.c:117:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_desc'
ddcutil-2.2.1/src/base/display_lock.c:115:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/display_lock.c:117:4: danger: 'new_desc' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def74]
ddcutil-2.2.1/src/base/display_lock.c:118:4: warning[-Wanalyzer-malloc-leak]: leak of 'new_desc'
ddcutil-2.2.1/src/base/display_lock.c:115:37: acquire_memory: allocated here
ddcutil-2.2.1/src/base/display_lock.c:118:4: danger: 'new_desc' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def75]
ddcutil-2.2.1/src/base/displays.c:104: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
ddcutil-2.2.1/src/base/displays.c:104:11: warning[-Wanalyzer-malloc-leak]: leak of 'common_create_display_identifier(1)'
ddcutil-2.2.1/src/base/displays.c:181:21: enter_function: entry to 'create_mfg_model_sn_display_identifier'
ddcutil-2.2.1/src/base/displays.c:190:33: call_function: calling 'common_create_display_identifier' from 'create_mfg_model_sn_display_identifier'
ddcutil-2.2.1/src/base/displays.c:190:33: return_function: returning to 'create_mfg_model_sn_display_identifier' from 'common_create_display_identifier'
ddcutil-2.2.1/src/base/displays.c:191:7: branch_false: following 'false' branch (when 'mfg_id' is NULL)...
ddcutil-2.2.1/src/base/displays.c:194:7: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:195:7: branch_false: following 'false' branch (when 'model_name' is NULL)...
ddcutil-2.2.1/src/base/displays.c:198:7: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:199:7: branch_false: following 'false' branch (when 'serial_ascii' is NULL)...
ddcutil-2.2.1/src/base/displays.c:202:7: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:104:11: danger: 'common_create_display_identifier(1)' leaks here; was allocated at [(4)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def77]
ddcutil-2.2.1/src/base/displays.c:105: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
ddcutil-2.2.1/src/base/displays.c:105:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pIdent'
ddcutil-2.2.1/src/base/displays.c:103:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/displays.c:105:4: danger: 'pIdent' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def79]
ddcutil-2.2.1/src/base/displays.c:106: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: CPPCHECK_WARNING (CWE-476): [#def80]
ddcutil-2.2.1/src/base/displays.c:107: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: CPPCHECK_WARNING (CWE-476): [#def81]
ddcutil-2.2.1/src/base/displays.c:108: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: CPPCHECK_WARNING (CWE-476): [#def82]
ddcutil-2.2.1/src/base/displays.c:109: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: CPPCHECK_WARNING (CWE-476): [#def83]
ddcutil-2.2.1/src/base/displays.c:110: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: CPPCHECK_WARNING (CWE-476): [#def84]
ddcutil-2.2.1/src/base/displays.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pIdent
Error: CPPCHECK_WARNING (CWE-476): [#def85]
ddcutil-2.2.1/src/base/displays.c:341: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dsel
Error: CPPCHECK_WARNING (CWE-476): [#def86]
ddcutil-2.2.1/src/base/displays.c:342: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dsel
Error: GCC_ANALYZER_WARNING (CWE-476): [#def87]
ddcutil-2.2.1/src/base/displays.c:342:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dsel'
ddcutil-2.2.1/src/base/displays.c:340:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/displays.c:342:4: danger: 'dsel' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def88]
ddcutil-2.2.1/src/base/displays.c:343: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dsel
Error: CPPCHECK_WARNING (CWE-476): [#def89]
ddcutil-2.2.1/src/base/displays.c:344: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dsel
Error: CPPCHECK_WARNING (CWE-476): [#def90]
ddcutil-2.2.1/src/base/displays.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dsel
Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
ddcutil-2.2.1/src/base/displays.c:517:4: warning[-Wanalyzer-malloc-leak]: leak of 'dref'
ddcutil-2.2.1/src/base/displays.c:623:15: enter_function: entry to 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: call_function: calling 'dpath_repr_t' from 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: return_function: returning to 'create_base_display_ref' from 'dpath_repr_t'
ddcutil-2.2.1/src/base/displays.c:627:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:630:20: call_function: calling 'next_dref_id' from 'create_base_display_ref'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def92]
ddcutil-2.2.1/src/base/displays.c:519:4: warning[-Wanalyzer-malloc-leak]: leak of 'dref'
ddcutil-2.2.1/src/base/displays.c:623:15: enter_function: entry to 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: call_function: calling 'dpath_repr_t' from 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: return_function: returning to 'create_base_display_ref' from 'dpath_repr_t'
ddcutil-2.2.1/src/base/displays.c:627:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:630:20: call_function: calling 'next_dref_id' from 'create_base_display_ref'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def93]
ddcutil-2.2.1/src/base/displays.c:520:4: warning[-Wanalyzer-malloc-leak]: leak of 'dref'
ddcutil-2.2.1/src/base/displays.c:623:15: enter_function: entry to 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: call_function: calling 'dpath_repr_t' from 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: return_function: returning to 'create_base_display_ref' from 'dpath_repr_t'
ddcutil-2.2.1/src/base/displays.c:627:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:630:20: call_function: calling 'next_dref_id' from 'create_base_display_ref'
Error: CPPCHECK_WARNING (CWE-476): [#def94]
ddcutil-2.2.1/src/base/displays.c:628: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dref
Error: CPPCHECK_WARNING (CWE-476): [#def95]
ddcutil-2.2.1/src/base/displays.c:629: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dref
Error: GCC_ANALYZER_WARNING (CWE-476): [#def96]
ddcutil-2.2.1/src/base/displays.c:629:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dref'
ddcutil-2.2.1/src/base/displays.c:623:15: enter_function: entry to 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: call_function: calling 'dpath_repr_t' from 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: return_function: returning to 'create_base_display_ref' from 'dpath_repr_t'
ddcutil-2.2.1/src/base/displays.c:627:25: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/displays.c:629:4: danger: 'dref' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def97]
ddcutil-2.2.1/src/base/displays.c:630: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dref
Error: CPPCHECK_WARNING (CWE-476): [#def98]
ddcutil-2.2.1/src/base/displays.c:631: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dref
Error: CPPCHECK_WARNING (CWE-476): [#def99]
ddcutil-2.2.1/src/base/displays.c:632: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dref
Error: CPPCHECK_WARNING (CWE-476): [#def100]
ddcutil-2.2.1/src/base/displays.c:633: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dref
Error: GCC_ANALYZER_WARNING (CWE-401): [#def101]
ddcutil-2.2.1/src/base/displays.c:633:31: warning[-Wanalyzer-malloc-leak]: leak of 'dref'
ddcutil-2.2.1/src/base/displays.c:623:15: enter_function: entry to 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: call_function: calling 'dpath_repr_t' from 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: return_function: returning to 'create_base_display_ref' from 'dpath_repr_t'
ddcutil-2.2.1/src/base/displays.c:627:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:633:31: danger: 'dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
ddcutil-2.2.1/src/base/displays.c:636:4: warning[-Wanalyzer-malloc-leak]: leak of 'dref'
ddcutil-2.2.1/src/base/displays.c:623:15: enter_function: entry to 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: call_function: calling 'dpath_repr_t' from 'create_base_display_ref'
ddcutil-2.2.1/src/base/displays.c:625:4: return_function: returning to 'create_base_display_ref' from 'dpath_repr_t'
ddcutil-2.2.1/src/base/displays.c:627:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:636:4: danger: 'dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def103]
ddcutil-2.2.1/src/base/displays.c:912:4: warning[-Wanalyzer-malloc-leak]: leak of 'dh'
ddcutil-2.2.1/src/base/displays.c:1238:18: enter_function: entry to 'create_base_display_handle'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:1247:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1265:7: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1266:7: call_function: calling 'dbgrpt_display_ref' from 'create_base_display_handle'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def104]
ddcutil-2.2.1/src/base/displays.c:1010:17: warning[-Wanalyzer-malloc-leak]: leak of 'dh'
ddcutil-2.2.1/src/base/displays.c:1238:18: enter_function: entry to 'create_base_display_handle'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:1247:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1265:7: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1266:7: call_function: calling 'dbgrpt_display_ref' from 'create_base_display_handle'
Error: CPPCHECK_WARNING (CWE-476): [#def105]
ddcutil-2.2.1/src/base/displays.c:1244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dh
Error: CPPCHECK_WARNING (CWE-476): [#def106]
ddcutil-2.2.1/src/base/displays.c:1245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dh
Error: GCC_ANALYZER_WARNING (CWE-476): [#def107]
ddcutil-2.2.1/src/base/displays.c:1245:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dh'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/displays.c:1245:4: danger: 'dh' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def108]
ddcutil-2.2.1/src/base/displays.c:1246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dh
Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
ddcutil-2.2.1/src/base/displays.c:1248:18: warning[-Wanalyzer-malloc-leak]: leak of 'dh'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:1247:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/displays.c:1248:18: branch_true: ...to here
ddcutil-2.2.1/src/base/displays.c:1248:18: danger: 'dh' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
ddcutil-2.2.1/src/base/displays.c:1250:20: warning[-Wanalyzer-malloc-leak]: leak of 'dh'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:1247:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/displays.c:1248:18: branch_true: ...to here
ddcutil-2.2.1/src/base/displays.c:1250:20: danger: 'dh' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
ddcutil-2.2.1/src/base/displays.c:1255:18: warning[-Wanalyzer-malloc-leak]: leak of 'dh'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:1247:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/displays.c:1255:18: branch_true: ...to here
ddcutil-2.2.1/src/base/displays.c:1255:18: danger: 'dh' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
ddcutil-2.2.1/src/base/displays.c:1265:7: warning[-Wanalyzer-malloc-leak]: leak of 'dh'
ddcutil-2.2.1/src/base/displays.c:1243:26: acquire_memory: allocated here
ddcutil-2.2.1/src/base/displays.c:1247:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1254:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/displays.c:1265:7: branch_false: ...to here
ddcutil-2.2.1/src/base/displays.c:1265:7: danger: 'dh' leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def113]
ddcutil-2.2.1/src/base/drm_connector_state.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def114]
ddcutil-2.2.1/src/base/drm_connector_state.c:160: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def115]
ddcutil-2.2.1/src/base/drm_connector_state.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def116]
ddcutil-2.2.1/src/base/drm_connector_state.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def117]
ddcutil-2.2.1/src/base/drm_connector_state.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def118]
ddcutil-2.2.1/src/base/drm_connector_state.c:165: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def119]
ddcutil-2.2.1/src/base/drm_connector_state.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: meta
Error: CPPCHECK_WARNING (CWE-476): [#def120]
ddcutil-2.2.1/src/base/drm_connector_state.c:289: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: connector_state
Error: CPPCHECK_WARNING (CWE-476): [#def121]
ddcutil-2.2.1/src/base/drm_connector_state.c:290: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: connector_state
Error: CPPCHECK_WARNING (CWE-476): [#def122]
ddcutil-2.2.1/src/base/drm_connector_state.c:299: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: connector_state
Error: CPPCHECK_WARNING (CWE-476): [#def123]
ddcutil-2.2.1/src/base/drm_connector_state.c:300: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: connector_state
Error: CPPCHECK_WARNING (CWE-476): [#def124]
ddcutil-2.2.1/src/base/drm_connector_state.c:301: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: connector_state
Error: CPPCHECK_WARNING (CWE-476): [#def125]
ddcutil-2.2.1/src/base/dsa2.c:165: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cirb
Error: GCC_ANALYZER_WARNING (CWE-476): [#def126]
ddcutil-2.2.1/src/base/dsa2.c:165:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cirb'
ddcutil-2.2.1/src/base/dsa2.c:164:47: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/dsa2.c:165:4: danger: 'cirb' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def127]
ddcutil-2.2.1/src/base/dsa2.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cirb
Error: CPPCHECK_WARNING (CWE-476): [#def128]
ddcutil-2.2.1/src/base/dsa2.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cirb
Error: CPPCHECK_WARNING (CWE-476): [#def129]
ddcutil-2.2.1/src/base/dsa2.c:168: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cirb
Error: CPPCHECK_WARNING (CWE-476): [#def130]
ddcutil-2.2.1/src/base/dsa2.c:407: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: GCC_ANALYZER_WARNING (CWE-476): [#def131]
ddcutil-2.2.1/src/base/dsa2.c:407:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'rtable'
ddcutil-2.2.1/src/base/dsa2.c:406:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/dsa2.c:407:4: danger: 'rtable' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def132]
ddcutil-2.2.1/src/base/dsa2.c:408: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def133]
ddcutil-2.2.1/src/base/dsa2.c:409: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def134]
ddcutil-2.2.1/src/base/dsa2.c:410: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def135]
ddcutil-2.2.1/src/base/dsa2.c:411: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def136]
ddcutil-2.2.1/src/base/dsa2.c:412: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def137]
ddcutil-2.2.1/src/base/dsa2.c:415: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def138]
ddcutil-2.2.1/src/base/dsa2.c:416: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def139]
ddcutil-2.2.1/src/base/dsa2.c:417: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: CPPCHECK_WARNING (CWE-476): [#def140]
ddcutil-2.2.1/src/base/dsa2.c:418: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rtable
Error: GCC_ANALYZER_WARNING (CWE-401): [#def141]
ddcutil-2.2.1/src/base/dsa2.c:1244:7: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(&buffer)'
ddcutil-2.2.1/src/base/dsa2.c:1243:7: branch_true: following 'true' branch (when 'errmsgs' is non-NULL)...
ddcutil-2.2.1/src/base/dsa2.c:1244:32: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1244:32: acquire_memory: allocated here
ddcutil-2.2.1/src/base/dsa2.c:1244:7: danger: 'strdup(&buffer)' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
ddcutil-2.2.1/src/base/dsa2.c:1360:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/base/dsa2.c:1293:1: enter_function: entry to 'dsa2_restore_persistent_stats'
ddcutil-2.2.1/src/base/dsa2.c:1298:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1305:28: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1307:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1310:26: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1311:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1316:7: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1316:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1320:28: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1322:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1328:11: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1331:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1331:15: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1331:8: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1337:26: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1338:25: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1340:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1352:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1353:21: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1354:22: call_function: calling 'new_results_table' from 'dsa2_restore_persistent_stats'
ddcutil-2.2.1/src/base/dsa2.c:1354:22: return_function: returning to 'dsa2_restore_persistent_stats' from 'new_results_table'
ddcutil-2.2.1/src/base/dsa2.c:1358:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1360:15: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1360:15: branch_true: following 'true' branch (when 'ok != 0')...
ddcutil-2.2.1/src/base/dsa2.c:1360:21: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1360:21: danger: '<unknown>' leaks here; was allocated at [(26)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/25)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def143]
ddcutil-2.2.1/src/base/dsa2.c:1360:21: warning[-Wanalyzer-malloc-leak]: leak of 'rtable'
ddcutil-2.2.1/src/base/dsa2.c:1293:1: enter_function: entry to 'dsa2_restore_persistent_stats'
ddcutil-2.2.1/src/base/dsa2.c:1298:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1305:28: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1307:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1310:26: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1311:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1316:7: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1316:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1320:28: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1322:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1328:11: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1331:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1331:15: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1331:8: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1337:26: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1338:25: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1340:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1352:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/dsa2.c:1353:21: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1354:22: call_function: calling 'new_results_table' from 'dsa2_restore_persistent_stats'
ddcutil-2.2.1/src/base/dsa2.c:1354:22: return_function: returning to 'dsa2_restore_persistent_stats' from 'new_results_table'
ddcutil-2.2.1/src/base/dsa2.c:1358:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/dsa2.c:1360:15: branch_false: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1360:15: branch_true: following 'true' branch (when 'ok != 0')...
ddcutil-2.2.1/src/base/dsa2.c:1360:21: branch_true: ...to here
ddcutil-2.2.1/src/base/dsa2.c:1360:21: danger: 'rtable' leaks here; was allocated at [(24)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/23)
Error: CPPCHECK_WARNING (CWE-476): [#def144]
ddcutil-2.2.1/src/base/dynamic_features.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frec
Error: CPPCHECK_WARNING (CWE-476): [#def145]
ddcutil-2.2.1/src/base/dynamic_features.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def146]
ddcutil-2.2.1/src/base/dynamic_features.c:247:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'frec'
ddcutil-2.2.1/src/base/dynamic_features.c:231:1: enter_function: entry to 'dfr_new'
ddcutil-2.2.1/src/base/dynamic_features.c:241:4: branch_false: following 'false' branch (when 'mfg_id' is non-NULL)...
ddcutil-2.2.1/src/base/dynamic_features.c:242:4: branch_false: ...to here
ddcutil-2.2.1/src/base/dynamic_features.c:242:4: branch_false: following 'false' branch (when 'model_name' is non-NULL)...
ddcutil-2.2.1/src/base/dynamic_features.c:244:34: branch_false: ...to here
ddcutil-2.2.1/src/base/dynamic_features.c:244:34: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/dynamic_features.c:247:25: call_function: inlined call to 'g_strdup_inline' from 'dfr_new'
ddcutil-2.2.1/src/base/dynamic_features.c:247:4: danger: 'frec' could be NULL: unchecked value from [(6)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def147]
ddcutil-2.2.1/src/base/dynamic_features.c:248: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frec
Error: CPPCHECK_WARNING (CWE-476): [#def148]
ddcutil-2.2.1/src/base/dynamic_features.c:249: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frec
Error: CPPCHECK_WARNING (CWE-476): [#def149]
ddcutil-2.2.1/src/base/dynamic_features.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frec
Error: CPPCHECK_WARNING (CWE-476): [#def150]
ddcutil-2.2.1/src/base/dynamic_features.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: frec
Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
ddcutil-2.2.1/src/base/dynamic_features.c:254:4: warning[-Wanalyzer-malloc-leak]: leak of 'frec'
ddcutil-2.2.1/src/base/dynamic_features.c:231:1: enter_function: entry to 'dfr_new'
ddcutil-2.2.1/src/base/dynamic_features.c:241:4: branch_false: following 'false' branch (when 'mfg_id' is non-NULL)...
ddcutil-2.2.1/src/base/dynamic_features.c:242:4: branch_false: ...to here
ddcutil-2.2.1/src/base/dynamic_features.c:242:4: branch_false: following 'false' branch (when 'model_name' is non-NULL)...
ddcutil-2.2.1/src/base/dynamic_features.c:244:34: branch_false: ...to here
ddcutil-2.2.1/src/base/dynamic_features.c:244:34: acquire_memory: allocated here
ddcutil-2.2.1/src/base/dynamic_features.c:247:25: call_function: inlined call to 'g_strdup_inline' from 'dfr_new'
ddcutil-2.2.1/src/base/dynamic_features.c:248:25: call_function: inlined call to 'g_strdup_inline' from 'dfr_new'
ddcutil-2.2.1/src/base/dynamic_features.c:251:7: branch_false: following 'false' branch (when 'filename' is NULL)...
ddcutil-2.2.1/src/base/dynamic_features.c:254:4: branch_false: ...to here
ddcutil-2.2.1/src/base/dynamic_features.c:254:4: danger: 'frec' leaks here; was allocated at [(6)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/5)
Error: CPPCHECK_WARNING (CWE-476): [#def152]
ddcutil-2.2.1/src/base/dynamic_features.c:507: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
Error: CPPCHECK_WARNING (CWE-476): [#def153]
ddcutil-2.2.1/src/base/dynamic_features.c:556: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_feature_metadata
Error: CPPCHECK_WARNING (CWE-476): [#def154]
ddcutil-2.2.1/src/base/dynamic_features.c:557: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_feature_metadata
Error: CPPCHECK_WARNING (CWE-476): [#def155]
ddcutil-2.2.1/src/base/execution_stats.c:273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcounts
Error: CPPCHECK_WARNING (CWE-476): [#def156]
ddcutil-2.2.1/src/base/execution_stats.c:274: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcounts
Error: GCC_ANALYZER_WARNING (CWE-476): [#def157]
ddcutil-2.2.1/src/base/execution_stats.c:274:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pcounts'
ddcutil-2.2.1/src/base/execution_stats.c:272:35: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/execution_stats.c:274:4: danger: 'pcounts' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
ddcutil-2.2.1/src/base/execution_stats.c:274:34: warning[-Wanalyzer-malloc-leak]: leak of 'pcounts'
ddcutil-2.2.1/src/base/execution_stats.c:272:35: acquire_memory: allocated here
ddcutil-2.2.1/src/base/execution_stats.c:274:34: danger: 'pcounts' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def159]
ddcutil-2.2.1/src/base/execution_stats.c:275: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcounts
Error: CPPCHECK_WARNING (CWE-476): [#def160]
ddcutil-2.2.1/src/base/execution_stats.c:277: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcounts
Error: GCC_ANALYZER_WARNING (CWE-401): [#def161]
ddcutil-2.2.1/src/base/execution_stats.c:278:4: warning[-Wanalyzer-malloc-leak]: leak of 'pcounts'
ddcutil-2.2.1/src/base/execution_stats.c:272:35: acquire_memory: allocated here
ddcutil-2.2.1/src/base/execution_stats.c:276:7: branch_false: following 'false' branch (when 'name' is NULL)...
ddcutil-2.2.1/src/base/execution_stats.c:278:4: branch_false: ...to here
ddcutil-2.2.1/src/base/execution_stats.c:278:4: danger: 'pcounts' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
ddcutil-2.2.1/src/base/execution_stats.c:280:4: warning[-Wanalyzer-malloc-leak]: leak of 'pcounts'
ddcutil-2.2.1/src/base/execution_stats.c:272:35: acquire_memory: allocated here
ddcutil-2.2.1/src/base/execution_stats.c:276:7: branch_false: following 'false' branch (when 'name' is NULL)...
ddcutil-2.2.1/src/base/execution_stats.c:278:4: branch_false: ...to here
ddcutil-2.2.1/src/base/execution_stats.c:280:4: branch_true: following 'true' branch (when 'debug != 0')...
ddcutil-2.2.1/src/base/execution_stats.c:280:4: branch_true: ...to here
ddcutil-2.2.1/src/base/execution_stats.c:280:4: danger: 'pcounts' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def163]
ddcutil-2.2.1/src/base/feature_metadata.c:303: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: newentry
Error: GCC_ANALYZER_WARNING (CWE-476): [#def164]
ddcutil-2.2.1/src/base/feature_metadata.c:303:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'newentry'
ddcutil-2.2.1/src/base/feature_metadata.c:295:7: branch_true: following 'true' branch (when 'oldtable' is non-NULL)...
branch_true: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:297:18: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/feature_metadata.c:303:10: danger: 'newentry' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-682): [#def165]
ddcutil-2.2.1/src/base/feature_metadata.c:309: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def166]
ddcutil-2.2.1/src/base/feature_metadata.c:488: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def167]
ddcutil-2.2.1/src/base/feature_metadata.c:488:11: warning[-Wanalyzer-malloc-leak]: leak of 'dfm_new(*dyn_meta.feature_code)'
ddcutil-2.2.1/src/base/feature_metadata.c:522:1: enter_function: entry to 'dfm_from_dyn_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:527:4: branch_false: following 'false' branch (when 'dyn_meta' is non-NULL)...
ddcutil-2.2.1/src/base/feature_metadata.c:528:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:528:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:532:37: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:532:37: call_function: calling 'dfm_new' from 'dfm_from_dyn_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:532:37: return_function: returning to 'dfm_from_dyn_feature_metadata' from 'dfm_new'
ddcutil-2.2.1/src/base/feature_metadata.c:534:24: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:534:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:535:24: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:535:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:488:11: danger: 'dfm_new(*dyn_meta.feature_code)' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def168]
ddcutil-2.2.1/src/base/feature_metadata.c:489: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
ddcutil-2.2.1/src/base/feature_metadata.c:489:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/base/feature_metadata.c:487:40: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/feature_metadata.c:489:4: danger: 'result' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def170]
ddcutil-2.2.1/src/base/feature_metadata.c:556:4: warning[-Wanalyzer-malloc-leak]: leak of 'dfm_new(*dyn_meta.feature_code)'
ddcutil-2.2.1/src/base/feature_metadata.c:522:1: enter_function: entry to 'dfm_from_dyn_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:527:4: branch_false: following 'false' branch (when 'dyn_meta' is non-NULL)...
ddcutil-2.2.1/src/base/feature_metadata.c:528:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:528:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:532:37: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:532:37: call_function: calling 'dfm_new' from 'dfm_from_dyn_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:532:37: return_function: returning to 'dfm_from_dyn_feature_metadata' from 'dfm_new'
ddcutil-2.2.1/src/base/feature_metadata.c:534:24: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:534:51: call_function: inlined call to 'g_strdup_inline' from 'dfm_from_dyn_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:535:24: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:535:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:538:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:539:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:539:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:541:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:541:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:542:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:542:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:544:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:551:21: call_function: calling 'copy_sl_value_table' from 'dfm_from_dyn_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:551:21: return_function: returning to 'dfm_from_dyn_feature_metadata' from 'copy_sl_value_table'
ddcutil-2.2.1/src/base/feature_metadata.c:556:4: danger: 'dfm_new(*dyn_meta.feature_code)' leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def171]
ddcutil-2.2.1/src/base/feature_metadata.c:606: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: CPPCHECK_WARNING (CWE-476): [#def172]
ddcutil-2.2.1/src/base/feature_metadata.c:607: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: GCC_ANALYZER_WARNING (CWE-476): [#def173]
ddcutil-2.2.1/src/base/feature_metadata.c:607:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'ddca_meta'
ddcutil-2.2.1/src/base/feature_metadata.c:605:40: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/feature_metadata.c:607:4: danger: 'ddca_meta' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def174]
ddcutil-2.2.1/src/base/feature_metadata.c:608: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: CPPCHECK_WARNING (CWE-476): [#def175]
ddcutil-2.2.1/src/base/feature_metadata.c:609: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: CPPCHECK_WARNING (CWE-476): [#def176]
ddcutil-2.2.1/src/base/feature_metadata.c:614: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: CPPCHECK_WARNING (CWE-476): [#def177]
ddcutil-2.2.1/src/base/feature_metadata.c:615: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: CPPCHECK_WARNING (CWE-476): [#def178]
ddcutil-2.2.1/src/base/feature_metadata.c:617: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ddca_meta
Error: GCC_ANALYZER_WARNING (CWE-401): [#def179]
ddcutil-2.2.1/src/base/feature_metadata.c:619:4: warning[-Wanalyzer-malloc-leak]: leak of 'ddca_meta'
ddcutil-2.2.1/src/base/feature_metadata.c:597:1: enter_function: entry to 'dfm_to_ddca_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:605:40: acquire_memory: allocated here
ddcutil-2.2.1/src/base/feature_metadata.c:614:30: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:614:52: call_function: inlined call to 'g_strdup_inline' from 'dfm_to_ddca_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:615:30: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:615:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:617:27: call_function: calling 'copy_sl_value_table' from 'dfm_to_ddca_feature_metadata'
ddcutil-2.2.1/src/base/feature_metadata.c:617:27: return_function: returning to 'dfm_to_ddca_feature_metadata' from 'copy_sl_value_table'
ddcutil-2.2.1/src/base/feature_metadata.c:619:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/feature_metadata.c:619:4: branch_false: ...to here
ddcutil-2.2.1/src/base/feature_metadata.c:619:4: danger: 'ddca_meta' leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def180]
ddcutil-2.2.1/src/base/i2c_bus_base.c:304: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: businfo
Error: CPPCHECK_WARNING (CWE-476): [#def181]
ddcutil-2.2.1/src/base/i2c_bus_base.c:305: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: businfo
Error: GCC_ANALYZER_WARNING (CWE-476): [#def182]
ddcutil-2.2.1/src/base/i2c_bus_base.c:305:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'businfo'
ddcutil-2.2.1/src/base/i2c_bus_base.c:302:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/i2c_bus_base.c:303:29: branch_false: ...to here
ddcutil-2.2.1/src/base/i2c_bus_base.c:303:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/i2c_bus_base.c:305:4: danger: 'businfo' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def183]
ddcutil-2.2.1/src/base/i2c_bus_base.c:306: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: businfo
Error: GCC_ANALYZER_WARNING (CWE-401): [#def184]
ddcutil-2.2.1/src/base/i2c_bus_base.c:310:4: warning[-Wanalyzer-malloc-leak]: leak of 'businfo'
ddcutil-2.2.1/src/base/i2c_bus_base.c:302:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/i2c_bus_base.c:303:29: branch_false: ...to here
ddcutil-2.2.1/src/base/i2c_bus_base.c:303:29: acquire_memory: allocated here
ddcutil-2.2.1/src/base/i2c_bus_base.c:310:4: danger: 'businfo' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def185]
ddcutil-2.2.1/src/base/linux_errno.c:363:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/base/linux_errno.c:361:8: enter_function: entry to 'linux_errno_name'
ddcutil-2.2.1/src/base/linux_errno.c:362:31: call_function: calling 'find_errno_description' from 'linux_errno_name'
ddcutil-2.2.1/src/base/linux_errno.c:362:31: return_function: returning to 'linux_errno_name' from 'find_errno_description'
ddcutil-2.2.1/src/base/linux_errno.c:363:11: danger: dereference of NULL 'find_errno_description(error_number)'
Error: CPPCHECK_WARNING (CWE-476): [#def186]
ddcutil-2.2.1/src/base/monitor_model_key.c:94: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def187]
ddcutil-2.2.1/src/base/monitor_model_key.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def188]
ddcutil-2.2.1/src/base/monitor_model_key.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def189]
ddcutil-2.2.1/src/base/monitor_model_key.c:97:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/base/monitor_model_key.c:89:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:90:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:92:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/monitor_model_key.c:97:4: danger: 'result' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def190]
ddcutil-2.2.1/src/base/monitor_model_key.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def191]
ddcutil-2.2.1/src/base/monitor_model_key.c:159:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/base/monitor_model_key.c:157:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:158:16: branch_true: ...to here
ddcutil-2.2.1/src/base/monitor_model_key.c:158:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/monitor_model_key.c:159:7: danger: 'result' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def192]
ddcutil-2.2.1/src/base/monitor_model_key.c:169: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def193]
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/base/monitor_model_key.c:152:1: enter_function: entry to 'mmk_new_from_value'
ddcutil-2.2.1/src/base/monitor_model_key.c:157:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:158:16: branch_true: ...to here
ddcutil-2.2.1/src/base/monitor_model_key.c:158:16: acquire_memory: allocated here
ddcutil-2.2.1/src/base/monitor_model_key.c:169:7: call_function: calling 'monitor_model_key_eq' from 'mmk_new_from_value'
ddcutil-2.2.1/src/base/monitor_model_key.c:169:7: return_function: returning to 'mmk_new_from_value' from 'monitor_model_key_eq'
ddcutil-2.2.1/src/base/monitor_model_key.c:169:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: branch_true: ...to here
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: call_function: calling 'mmk_repr' from 'mmk_new_from_value'
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: return_function: returning to 'mmk_new_from_value' from 'mmk_repr'
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: danger: 'result' leaks here; was allocated at [(4)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def194]
ddcutil-2.2.1/src/base/monitor_model_key.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def195]
ddcutil-2.2.1/src/base/monitor_model_key.c:210:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/base/monitor_model_key.c:208:7: branch_true: following 'true' branch (when 'edid' is non-NULL)...
ddcutil-2.2.1/src/base/monitor_model_key.c:209:16: branch_true: ...to here
ddcutil-2.2.1/src/base/monitor_model_key.c:209:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/monitor_model_key.c:210:7: danger: 'result' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def196]
ddcutil-2.2.1/src/base/monitor_model_key.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def197]
ddcutil-2.2.1/src/base/monitor_model_key.c:212: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def198]
ddcutil-2.2.1/src/base/monitor_model_key.c:355:17: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/base/monitor_model_key.c:152:1: enter_function: entry to 'mmk_new_from_value'
ddcutil-2.2.1/src/base/monitor_model_key.c:157:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:158:16: branch_true: ...to here
ddcutil-2.2.1/src/base/monitor_model_key.c:158:16: acquire_memory: allocated here
ddcutil-2.2.1/src/base/monitor_model_key.c:169:7: call_function: calling 'monitor_model_key_eq' from 'mmk_new_from_value'
ddcutil-2.2.1/src/base/monitor_model_key.c:169:7: return_function: returning to 'mmk_new_from_value' from 'monitor_model_key_eq'
ddcutil-2.2.1/src/base/monitor_model_key.c:169:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: branch_true: ...to here
ddcutil-2.2.1/src/base/monitor_model_key.c:173:7: call_function: calling 'mmk_repr' from 'mmk_new_from_value'
Error: CPPCHECK_WARNING (CWE-476): [#def199]
ddcutil-2.2.1/src/base/per_thread_data.c:547: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: function_stats
Error: GCC_ANALYZER_WARNING (CWE-476): [#def200]
ddcutil-2.2.1/src/base/per_thread_data.c:547:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'function_stats'
ddcutil-2.2.1/src/base/per_thread_data.c:536:6: enter_function: entry to 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: call_function: calling 'ptd_get_per_thread_data' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: return_function: returning to 'ptd_profile_function_end' from 'ptd_get_per_thread_data'
ddcutil-2.2.1/src/base/per_thread_data.c:541:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: call_function: calling 'ptd_profile_get_stats' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: return_function: returning to 'ptd_profile_function_end' from 'ptd_profile_get_stats'
ddcutil-2.2.1/src/base/per_thread_data.c:545:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:546:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:546:27: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/per_thread_data.c:547:10: danger: 'function_stats' could be NULL: unchecked value from [(19)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def201]
ddcutil-2.2.1/src/base/per_thread_data.c:548:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/base/per_thread_data.c:536:6: enter_function: entry to 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: call_function: calling 'ptd_get_per_thread_data' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: return_function: returning to 'ptd_profile_function_end' from 'ptd_get_per_thread_data'
ddcutil-2.2.1/src/base/per_thread_data.c:541:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: call_function: calling 'ptd_profile_get_stats' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: return_function: returning to 'ptd_profile_function_end' from 'ptd_profile_get_stats'
ddcutil-2.2.1/src/base/per_thread_data.c:545:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:546:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:547:37: acquire_memory: allocated here
ddcutil-2.2.1/src/base/per_thread_data.c:548:10: danger: '<unknown>' leaks here; was allocated at [(19)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def202]
ddcutil-2.2.1/src/base/per_thread_data.c:548:10: warning[-Wanalyzer-malloc-leak]: leak of 'function_stats'
ddcutil-2.2.1/src/base/per_thread_data.c:536:6: enter_function: entry to 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: call_function: calling 'ptd_get_per_thread_data' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: return_function: returning to 'ptd_profile_function_end' from 'ptd_get_per_thread_data'
ddcutil-2.2.1/src/base/per_thread_data.c:541:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: call_function: calling 'ptd_profile_get_stats' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: return_function: returning to 'ptd_profile_function_end' from 'ptd_profile_get_stats'
ddcutil-2.2.1/src/base/per_thread_data.c:545:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:546:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:546:27: acquire_memory: allocated here
ddcutil-2.2.1/src/base/per_thread_data.c:548:10: danger: 'function_stats' leaks here; was allocated at [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def203]
ddcutil-2.2.1/src/base/per_thread_data.c:548:10: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(func)'
ddcutil-2.2.1/src/base/per_thread_data.c:536:6: enter_function: entry to 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: call_function: calling 'ptd_get_per_thread_data' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:538:29: return_function: returning to 'ptd_profile_function_end' from 'ptd_get_per_thread_data'
ddcutil-2.2.1/src/base/per_thread_data.c:541:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: call_function: calling 'ptd_profile_get_stats' from 'ptd_profile_function_end'
ddcutil-2.2.1/src/base/per_thread_data.c:542:43: return_function: returning to 'ptd_profile_function_end' from 'ptd_profile_get_stats'
ddcutil-2.2.1/src/base/per_thread_data.c:545:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:546:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:548:43: acquire_memory: allocated here
ddcutil-2.2.1/src/base/per_thread_data.c:548:10: danger: 'strdup(func)' leaks here; was allocated at [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-476): [#def204]
ddcutil-2.2.1/src/base/per_thread_data.c:611: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_summary_entry
Error: GCC_ANALYZER_WARNING (CWE-476): [#def205]
ddcutil-2.2.1/src/base/per_thread_data.c:611:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_summary_entry'
ddcutil-2.2.1/src/base/per_thread_data.c:604:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:607:45: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:608:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:610:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:610:27: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/per_thread_data.c:611:7: danger: 'cur_summary_entry' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def206]
ddcutil-2.2.1/src/base/per_thread_data.c:612:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/base/per_thread_data.c:604:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:607:45: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:608:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:610:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:611:37: acquire_memory: allocated here
ddcutil-2.2.1/src/base/per_thread_data.c:612:7: danger: '<unknown>' leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def207]
ddcutil-2.2.1/src/base/per_thread_data.c:612:7: warning[-Wanalyzer-malloc-leak]: leak of 'cur_summary_entry'
ddcutil-2.2.1/src/base/per_thread_data.c:604:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:607:45: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:608:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:610:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:610:27: acquire_memory: allocated here
ddcutil-2.2.1/src/base/per_thread_data.c:612:7: danger: 'cur_summary_entry' leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def208]
ddcutil-2.2.1/src/base/per_thread_data.c:612:7: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(*(Per_Thread_Function_Stats *)cur_func_stats.function)'
ddcutil-2.2.1/src/base/per_thread_data.c:604:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:607:45: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:608:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/per_thread_data.c:610:27: branch_true: ...to here
ddcutil-2.2.1/src/base/per_thread_data.c:612:42: acquire_memory: allocated here
ddcutil-2.2.1/src/base/per_thread_data.c:612:7: danger: 'strdup(*(Per_Thread_Function_Stats *)cur_func_stats.function)' leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def209]
ddcutil-2.2.1/src/base/sleep.c:109:17: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/base/sleep.c:108:7: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/base/sleep.c:109: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: CPPCHECK_WARNING (CWE-476): [#def210]
ddcutil-2.2.1/src/base/trace_control.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-688): [#def211]
ddcutil-2.2.1/src/base/trace_control.c:261:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'temp' where non-null expected
ddcutil-2.2.1/src/base/trace_control.c:256:7: branch_true: following 'true' branch (when 'filename' is non-NULL)...
ddcutil-2.2.1/src/base/trace_control.c:257:15: branch_true: ...to here
ddcutil-2.2.1/src/base/trace_control.c:258:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/trace_control.c:259:22: branch_false: ...to here
ddcutil-2.2.1/src/base/trace_control.c:260:25: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/base/trace_control.c:261:10: danger: argument 1 ('temp') from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def212]
ddcutil-2.2.1/src/base/trace_control.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: temp
Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
ddcutil-2.2.1/src/base/trace_control.c:267:23: warning[-Wanalyzer-malloc-leak]: leak of 'bname'
ddcutil-2.2.1/src/base/trace_control.c:256:7: branch_true: following 'true' branch (when 'filename' is non-NULL)...
ddcutil-2.2.1/src/base/trace_control.c:257:15: branch_true: ...to here
ddcutil-2.2.1/src/base/trace_control.c:258:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/trace_control.c:259:22: branch_false: ...to here
ddcutil-2.2.1/src/base/trace_control.c:260:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/trace_control.c:267:23: danger: 'bname' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def214]
ddcutil-2.2.1/src/base/trace_control.c:269:10: warning[-Wanalyzer-malloc-leak]: leak of 'bname'
ddcutil-2.2.1/src/base/trace_control.c:256:7: branch_true: following 'true' branch (when 'filename' is non-NULL)...
ddcutil-2.2.1/src/base/trace_control.c:257:15: branch_true: ...to here
ddcutil-2.2.1/src/base/trace_control.c:258:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/base/trace_control.c:259:22: branch_false: ...to here
ddcutil-2.2.1/src/base/trace_control.c:260:25: acquire_memory: allocated here
ddcutil-2.2.1/src/base/trace_control.c:268:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/base/trace_control.c:269:10: branch_true: ...to here
ddcutil-2.2.1/src/base/trace_control.c:269:10: danger: 'bname' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def215]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:298:16: warning[-Wanalyzer-malloc-leak]: leak of 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:360:19: enter_function: entry to 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_true: following 'true' branch (when 'vals_ct <= 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:367:20: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: call_function: calling 'find_subset' from 'parse_feature_ids_or_subset'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def216]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:301:12: warning[-Wanalyzer-malloc-leak]: leak of 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:360:19: enter_function: entry to 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_true: following 'true' branch (when 'vals_ct <= 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:367:20: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: call_function: calling 'find_subset' from 'parse_feature_ids_or_subset'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def217]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:370:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:360:19: enter_function: entry to 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_true: following 'true' branch (when 'vals_ct <= 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:367:20: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: call_function: calling 'find_subset' from 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: return_function: returning to 'parse_feature_ids_or_subset' from 'find_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:369:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:370:10: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:370:10: danger: 'fsref' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def218]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:375:15: warning[-Wanalyzer-malloc-leak]: leak of 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:360:19: enter_function: entry to 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_true: following 'true' branch (when 'vals_ct <= 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:367:20: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: call_function: calling 'find_subset' from 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: return_function: returning to 'parse_feature_ids_or_subset' from 'find_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:369:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:374:15: branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:375:15: danger: 'fsref' leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def219]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:377:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:360:19: enter_function: entry to 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_true: following 'true' branch (when 'vals_ct <= 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:367:20: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: call_function: calling 'find_subset' from 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: return_function: returning to 'parse_feature_ids_or_subset' from 'find_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:369:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:374:15: branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:376:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:377:13: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:377:13: danger: 'fsref' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:379:31: warning[-Wanalyzer-malloc-leak]: leak of 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:360:19: enter_function: entry to 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_true: following 'true' branch (when 'vals_ct <= 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:367:20: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: call_function: calling 'find_subset' from 'parse_feature_ids_or_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:368:38: return_function: returning to 'parse_feature_ids_or_subset' from 'find_subset'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:369:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:374:15: branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:376:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:377:13: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:379:31: danger: 'fsref' leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def221]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:389:15: warning[-Wanalyzer-malloc-leak]: leak of 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_false: following 'false' branch (when 'vals_ct > 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:385:7: branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:385:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:387:25: branch_true: following 'true' branch (when 'ndx < vals_ct')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:388:15: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:389:15: danger: 'fsref' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def222]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:392:31: warning[-Wanalyzer-malloc-leak]: leak of 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_false: following 'false' branch (when 'vals_ct > 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:385:7: branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:385:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:387:25: branch_true: following 'true' branch (when 'ndx < vals_ct')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:388:15: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:391:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:392:31: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:392:31: danger: 'fsref' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def223]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:392:31: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fsref'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:364:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:366:7: branch_false: following 'false' branch (when 'vals_ct > 1')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:385:7: branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:385:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:387:25: branch_true: following 'true' branch (when 'ndx < vals_ct')...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:388:15: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:391:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:392:31: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:392:31: danger: 'fsref' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:431:7: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:430:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:431:7: branch_true: ...to here
ddcutil-2.2.1/src/cmdline/cmd_parser_aux.c:431:7: danger: dereference of NULL 'get_command((int)*parsed_cmd.cmd_id)'
Error: CPPCHECK_WARNING (CWE-476): [#def225]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:119: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def226]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:122: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def227]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:122:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'parsed_cmd'
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:118:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:122:4: danger: 'parsed_cmd' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def228]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:123: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def229]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:124: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def230]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:125: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def231]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def232]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def233]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def234]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def235]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:132:32: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_cmd'
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:118:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:132:32: danger: 'parsed_cmd' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def236]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def237]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:135:4: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_cmd'
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:118:30: acquire_memory: allocated here
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:135:4: danger: 'parsed_cmd' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def238]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def239]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:143: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def240]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def241]
ddcutil-2.2.1/src/cmdline/parsed_cmd.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_cmd
Error: CPPCHECK_WARNING (CWE-476): [#def242]
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:567: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:567:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:550:4: branch_false: following 'false' branch (when 'edid' is non-NULL)...
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:552:4: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:565:7: branch_true: following 'true' branch (when 'result' is NULL)...
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:566:16: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:566:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:567:7: danger: 'result' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def244]
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:568:7: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:550:4: branch_false: following 'false' branch (when 'edid' is non-NULL)...
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:552:4: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:565:7: branch_true: following 'true' branch (when 'result' is NULL)...
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:566:16: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:566:16: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_display_ref_reports.c:568:7: danger: 'result' leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def245]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: criteria
Error: GCC_ANALYZER_WARNING (CWE-476): [#def246]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:69:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'criteria'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:203:1: enter_function: entry to 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: call_function: calling 'new_display_criteria' from 'ddc_find_display_ref_by_display_identifier'
Error: CPPCHECK_WARNING (CWE-476): [#def247]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: criteria
Error: CPPCHECK_WARNING (CWE-476): [#def248]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:71: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: criteria
Error: CPPCHECK_WARNING (CWE-476): [#def249]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:72: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: criteria
Error: CPPCHECK_WARNING (CWE-476): [#def250]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: criteria
Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:108:7: warning[-Wanalyzer-malloc-leak]: leak of 'new_display_criteria()'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:203:1: enter_function: entry to 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: call_function: calling 'new_display_criteria' from 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: return_function: returning to 'ddc_find_display_ref_by_display_identifier' from 'new_display_criteria'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:236:13: call_function: calling 'ddc_find_display_ref_by_criteria' from 'ddc_find_display_ref_by_display_identifier'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:110:7: warning[-Wanalyzer-malloc-leak]: leak of 'new_display_criteria()'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:203:1: enter_function: entry to 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: call_function: calling 'new_display_criteria' from 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: return_function: returning to 'ddc_find_display_ref_by_display_identifier' from 'new_display_criteria'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:236:13: call_function: calling 'ddc_find_display_ref_by_criteria' from 'ddc_find_display_ref_by_display_identifier'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:174:31: warning[-Wanalyzer-malloc-leak]: leak of 'new_display_criteria()'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:203:1: enter_function: entry to 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: call_function: calling 'new_display_criteria' from 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: return_function: returning to 'ddc_find_display_ref_by_display_identifier' from 'new_display_criteria'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:236:13: call_function: calling 'ddc_find_display_ref_by_criteria' from 'ddc_find_display_ref_by_display_identifier'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:177:7: warning[-Wanalyzer-malloc-leak]: leak of 'new_display_criteria()'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:203:1: enter_function: entry to 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: call_function: calling 'new_display_criteria' from 'ddc_find_display_ref_by_display_identifier'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:211:34: return_function: returning to 'ddc_find_display_ref_by_display_identifier' from 'new_display_criteria'
ddcutil-2.2.1/src/ddc/ddc_display_selection.c:236:13: call_function: calling 'ddc_find_display_ref_by_criteria' from 'ddc_find_display_ref_by_display_identifier'
Error: CPPCHECK_WARNING (CWE-476): [#def255]
ddcutil-2.2.1/src/ddc/ddc_displays.c:448: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: CPPCHECK_WARNING (CWE-476): [#def256]
ddcutil-2.2.1/src/ddc/ddc_displays.c:449: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: GCC_ANALYZER_WARNING (CWE-476): [#def257]
ddcutil-2.2.1/src/ddc/ddc_displays.c:449:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'boe'
ddcutil-2.2.1/src/ddc/ddc_displays.c:391:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:393:32: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:396:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:446:19: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:446:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:447:33: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:447:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/ddc/ddc_displays.c:449:10: danger: 'boe' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def258]
ddcutil-2.2.1/src/ddc/ddc_displays.c:450: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
ddcutil-2.2.1/src/ddc/ddc_displays.c:451:10: warning[-Wanalyzer-malloc-leak]: leak of 'boe'
ddcutil-2.2.1/src/ddc/ddc_displays.c:391:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:393:32: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:396:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:446:19: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:446:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:447:33: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:447:33: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_displays.c:451:10: danger: 'boe' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def260]
ddcutil-2.2.1/src/ddc/ddc_displays.c:523: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe_copy
Error: GCC_ANALYZER_WARNING (CWE-476): [#def261]
ddcutil-2.2.1/src/ddc/ddc_displays.c:523:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'boe_copy'
ddcutil-2.2.1/src/ddc/ddc_displays.c:456:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:457:34: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:519:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:520:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:521:59: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:522:41: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/ddc/ddc_displays.c:523:13: danger: 'boe_copy' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def262]
ddcutil-2.2.1/src/ddc/ddc_displays.c:524: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe_copy
Error: CPPCHECK_WARNING (CWE-476): [#def263]
ddcutil-2.2.1/src/ddc/ddc_displays.c:525: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe_copy
Error: CPPCHECK_WARNING (CWE-476): [#def264]
ddcutil-2.2.1/src/ddc/ddc_displays.c:526: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe_copy
Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
ddcutil-2.2.1/src/ddc/ddc_displays.c:527:13: warning[-Wanalyzer-malloc-leak]: leak of 'boe_copy'
ddcutil-2.2.1/src/ddc/ddc_displays.c:456:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:457:34: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:519:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:520:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_displays.c:521:59: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_displays.c:522:41: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_displays.c:527:13: danger: 'boe_copy' leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def266]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:130: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def267]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: CPPCHECK_WARNING (CWE-476): [#def268]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:132: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def269]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:132:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:132:4: danger: 'data' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:132:23: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:132:23: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:157:13: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_true: following 'true' branch (when 'ct == 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:157:13: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:157:13: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:182:26: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:182:26: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:182:26: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:43: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:43: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:43: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:203:36: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:203:36: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:203:36: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:206:21: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:203:36: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:206:21: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def283]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:213:19: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:203:36: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:206:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:213:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:213:19: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:228:19: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: following 'true' branch (when 'ct != 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:228:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:228:19: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:238:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:238:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:238:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:258:47: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:258:47: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:269:39: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:266:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:269:39: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:269:39: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:274:28: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:266:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:269:39: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:270:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:274:28: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:274:28: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:280:37: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:266:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:269:39: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:270:28: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:280:37: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:280:37: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:292:28: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:266:25: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:289:30: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:290:28: branch_true: following 'true' branch (when 'ct == 0')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:292:28: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:292:28: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:300:37: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:266:25: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:289:30: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:290:28: branch_false: following 'false' branch (when 'ct != 0')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:300:37: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:300:37: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:308:25: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:290:28: branch_false: following 'false' branch (when 'ct != 0')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:300:37: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:306:25: branch_true: following 'true' branch (when 'valrec' is non-NULL)...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:307:25: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:308:25: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:310:22: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:226:19: branch_false: following 'false' branch (when 'ct == 3')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:235:29: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:236:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:254:46: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:310:22: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:318:16: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:137:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:143:14: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:150:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:151:13: branch_false: following 'false' branch (when 'ct != 1')...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:163:27: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:167:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:17: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:172:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:180:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:190:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:193:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:196:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:199:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:202:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:220:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:219:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:22: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:225:21: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:318:16: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:318:16: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:334:7: warning[-Wanalyzer-malloc-leak]: leak of 'data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:125:27: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:331:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:333:8: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:333:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:334:7: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:334:7: danger: 'data' leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:590:7: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:587:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:589:13: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:589:13: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:590:7: danger: 'buf' leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def302]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:593: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def303]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:737: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: GCC_ANALYZER_WARNING (CWE-476): [#def304]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:737:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'dumped_data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:734:34: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:737:4: danger: 'dumped_data' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def305]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:740: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:740:31: warning[-Wanalyzer-malloc-leak]: leak of 'dumped_data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:734:34: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:740:31: danger: 'dumped_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def307]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:748: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: CPPCHECK_WARNING (CWE-476): [#def308]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:749: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: CPPCHECK_WARNING (CWE-476): [#def309]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:750: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: CPPCHECK_WARNING (CWE-476): [#def310]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:751: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: CPPCHECK_WARNING (CWE-476): [#def311]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:752: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: GCC_ANALYZER_WARNING (CWE-401): [#def312]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:754:4: warning[-Wanalyzer-malloc-leak]: leak of 'dumped_data'
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:734:34: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:745:4: branch_false: following 'false' branch (when 'edid' is non-NULL)...
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:748:32: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:754:4: danger: 'dumped_data' leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def313]
ddcutil-2.2.1/src/ddc/ddc_dumpload.c:757: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dumped_data
Error: CPPCHECK_WARNING (CWE-476): [#def314]
ddcutil-2.2.1/src/ddc/ddc_output.c:640: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: formatted
Error: CPPCHECK_WARNING (CWE-476): [#def315]
ddcutil-2.2.1/src/ddc/ddc_output.c:640: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hexbuf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:606:4: warning[-Wanalyzer-malloc-leak]: leak of 'readbuf'
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:688:1: enter_function: entry to 'ddc_write_read'
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:708:21: acquire_memory: allocated here
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:713:10: call_function: calling 'ddc_i2c_write_read_raw' from 'ddc_write_read'
Error: GCC_ANALYZER_WARNING (CWE-127): [#def317]
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1168:21: warning[-Wanalyzer-out-of-bounds]: stack-based buffer under-read
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1120:1: enter_function: entry to 'ddc_write_only_with_retry'
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1127:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1134:20: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1135:4: branch_true: following 'true' branch (when 'max_tries != 0')...
branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1137:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1153:7: branch_false: ...to here
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1153:7: branch_true: following 'true' branch (when 'psc < 0')...
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1162:7: call_function: inlined call to 'sbool' from 'ddc_write_only_with_retry'
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1162:7: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1165:10: branch_true: following 'true' branch (when 'retryable != 0')...
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1167:21: branch_true: ...to here
ddcutil-2.2.1/src/ddc/ddc_packet_io.c:1168:21: danger: out-of-bounds read from byte -8 till byte -1 but 'try_errors' starts at byte 0
Error: CPPCHECK_WARNING (CWE-476): [#def318]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: GCC_ANALYZER_WARNING (CWE-476): [#def319]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:95:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'resp'
ddcutil-2.2.1/src/ddc/ddc_vcp.c:94:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/ddc/ddc_vcp.c:95:4: danger: 'resp' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def320]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: CPPCHECK_WARNING (CWE-476): [#def321]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: CPPCHECK_WARNING (CWE-476): [#def322]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: CPPCHECK_WARNING (CWE-476): [#def323]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: CPPCHECK_WARNING (CWE-476): [#def324]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: CPPCHECK_WARNING (CWE-476): [#def325]
ddcutil-2.2.1/src/ddc/ddc_vcp.c:101: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: resp
Error: CPPCHECK_WARNING (CWE-476): [#def326]
ddcutil-2.2.1/src/dw/dw_common.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cdd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def327]
ddcutil-2.2.1/src/dw/dw_common.c:158:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cdd'
ddcutil-2.2.1/src/dw/dw_common.c:157:35: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dw/dw_common.c:158:4: danger: 'cdd' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def328]
ddcutil-2.2.1/src/dw/dw_main.c:217: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rdd
Error: CPPCHECK_WARNING (CWE-476): [#def329]
ddcutil-2.2.1/src/dw/dw_main.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdd
Error: CPPCHECK_WARNING (CWE-476): [#def330]
ddcutil-2.2.1/src/dw/dw_main.c:227: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdd
Error: CPPCHECK_WARNING (CWE-476): [#def331]
ddcutil-2.2.1/src/dw/dw_main.c:228: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdd
Error: CPPCHECK_WARNING (CWE-476): [#def332]
ddcutil-2.2.1/src/dw/dw_main.c:230: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdd
Error: CPPCHECK_WARNING (CWE-476): [#def333]
ddcutil-2.2.1/src/dw/dw_main.c:231: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdd
Error: CPPCHECK_WARNING (CWE-476): [#def334]
ddcutil-2.2.1/src/dw/dw_main.c:232: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: wdd
Error: CPPCHECK_WARNING (CWE-476): [#def335]
ddcutil-2.2.1/src/dw/dw_recheck.c:86: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: GCC_ANALYZER_WARNING (CWE-476): [#def336]
ddcutil-2.2.1/src/dw/dw_recheck.c:86:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'entry'
ddcutil-2.2.1/src/dw/dw_recheck.c:85:34: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dw/dw_recheck.c:86:4: danger: 'entry' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def337]
ddcutil-2.2.1/src/dw/dw_recheck.c:87: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: GCC_ANALYZER_WARNING (CWE-401): [#def338]
ddcutil-2.2.1/src/dw/dw_recheck.c:87:30: warning[-Wanalyzer-malloc-leak]: leak of 'entry'
ddcutil-2.2.1/src/dw/dw_recheck.c:85:34: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_recheck.c:87:30: danger: 'entry' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def339]
ddcutil-2.2.1/src/dw/dw_recheck.c:88: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: GCC_ANALYZER_WARNING (CWE-401): [#def340]
ddcutil-2.2.1/src/dw/dw_recheck.c:91:4: warning[-Wanalyzer-malloc-leak]: leak of 'entry'
ddcutil-2.2.1/src/dw/dw_recheck.c:85:34: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_recheck.c:91:4: danger: 'entry' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def341]
ddcutil-2.2.1/src/dw/dw_recheck.c:172:28: warning[-Wanalyzer-null-dereference]: dereference of NULL 'rqe'
ddcutil-2.2.1/src/dw/dw_recheck.c:151:11: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_recheck.c:152:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_recheck.c:156:14: branch_true: following 'true' branch (when 'rqe' is NULL)...
ddcutil-2.2.1/src/dw/dw_recheck.c:156:22: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_recheck.c:167:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_recheck.c:172:28: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_recheck.c:172:28: danger: dereference of NULL 'rqe'
Error: CPPCHECK_WARNING (CWE-476): [#def342]
ddcutil-2.2.1/src/dw/dw_status_events.c:396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cqe
Error: GCC_ANALYZER_WARNING (CWE-476): [#def343]
ddcutil-2.2.1/src/dw/dw_status_events.c:396:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cqe'
ddcutil-2.2.1/src/dw/dw_status_events.c:389:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_status_events.c:389:54: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_status_events.c:390:7: branch_true: following 'true' branch (when 'callback_ct > 0')...
ddcutil-2.2.1/src/dw/dw_status_events.c:391:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_status_events.c:393:25: branch_true: following 'true' branch (when 'ndx < callback_ct')...
ddcutil-2.2.1/src/dw/dw_status_events.c:394:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_status_events.c:395:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dw/dw_status_events.c:396:10: danger: 'cqe' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def344]
ddcutil-2.2.1/src/dw/dw_status_events.c:397: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cqe
Error: GCC_ANALYZER_WARNING (CWE-401): [#def345]
ddcutil-2.2.1/src/dw/dw_status_events.c:399:38: warning[-Wanalyzer-malloc-leak]: leak of 'cqe'
ddcutil-2.2.1/src/dw/dw_status_events.c:389:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_status_events.c:389:54: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_status_events.c:390:7: branch_true: following 'true' branch (when 'callback_ct > 0')...
ddcutil-2.2.1/src/dw/dw_status_events.c:391:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_status_events.c:393:25: branch_true: following 'true' branch (when 'ndx < callback_ct')...
ddcutil-2.2.1/src/dw/dw_status_events.c:394:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_status_events.c:395:39: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_status_events.c:399:38: danger: 'cqe' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def346]
ddcutil-2.2.1/src/dw/dw_udev.c:133:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:695:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:697:41: call_function: calling 'dw_i2c_check_bus_changes_for_connector' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def347]
ddcutil-2.2.1/src/dw/dw_udev.c:227:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:744:35: call_function: calling 'dw_i2c_check_bus_changes' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def348]
ddcutil-2.2.1/src/dw/dw_udev.c:233:38: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:744:35: call_function: calling 'dw_i2c_check_bus_changes' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def349]
ddcutil-2.2.1/src/dw/dw_udev.c:235:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:744:35: call_function: calling 'dw_i2c_check_bus_changes' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def350]
ddcutil-2.2.1/src/dw/dw_udev.c:237:9: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:744:35: call_function: calling 'dw_i2c_check_bus_changes' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def351]
ddcutil-2.2.1/src/dw/dw_udev.c:309:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:695:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:697:41: call_function: calling 'dw_i2c_check_bus_changes_for_connector' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def352]
ddcutil-2.2.1/src/dw/dw_udev.c:313:16: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:695:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:697:41: call_function: calling 'dw_i2c_check_bus_changes_for_connector' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def353]
ddcutil-2.2.1/src/dw/dw_udev.c:318:26: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:695:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:697:41: call_function: calling 'dw_i2c_check_bus_changes_for_connector' from 'dw_watch_displays_udev'
Error: CPPCHECK_WARNING (CWE-476): [#def354]
ddcutil-2.2.1/src/dw/dw_udev.c:396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-476): [#def355]
ddcutil-2.2.1/src/dw/dw_udev.c:396:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dw/dw_udev.c:396:4: danger: 'cd' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def356]
ddcutil-2.2.1/src/dw/dw_udev.c:396:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:396:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def357]
ddcutil-2.2.1/src/dw/dw_udev.c:397: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def358]
ddcutil-2.2.1/src/dw/dw_udev.c:397:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:397:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def359]
ddcutil-2.2.1/src/dw/dw_udev.c:398: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
ddcutil-2.2.1/src/dw/dw_udev.c:398:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:398:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def361]
ddcutil-2.2.1/src/dw/dw_udev.c:399: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
ddcutil-2.2.1/src/dw/dw_udev.c:399:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:399:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def363]
ddcutil-2.2.1/src/dw/dw_udev.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
ddcutil-2.2.1/src/dw/dw_udev.c:400:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:400:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def365]
ddcutil-2.2.1/src/dw/dw_udev.c:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
ddcutil-2.2.1/src/dw/dw_udev.c:401:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:401:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def367]
ddcutil-2.2.1/src/dw/dw_udev.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def368]
ddcutil-2.2.1/src/dw/dw_udev.c:402:25: warning[-Wanalyzer-malloc-leak]: leak of 'cd'
ddcutil-2.2.1/src/dw/dw_udev.c:395:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_udev.c:402:25: danger: 'cd' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def369]
ddcutil-2.2.1/src/dw/dw_udev.c:414:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def370]
ddcutil-2.2.1/src/dw/dw_udev.c:416:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def371]
ddcutil-2.2.1/src/dw/dw_udev.c:417:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def372]
ddcutil-2.2.1/src/dw/dw_udev.c:418:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def373]
ddcutil-2.2.1/src/dw/dw_udev.c:419:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def374]
ddcutil-2.2.1/src/dw/dw_udev.c:420:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def375]
ddcutil-2.2.1/src/dw/dw_udev.c:421:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def376]
ddcutil-2.2.1/src/dw/dw_udev.c:422:4: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:610:10: call_function: calling 'dbgrpt_udev_event_detail' from 'dw_watch_displays_udev'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def377]
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
ddcutil-2.2.1/src/dw/dw_udev.c:613:12: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:613:12: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
ddcutil-2.2.1/src/dw/dw_udev.c:613:54: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:613:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:613:54: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:613:54: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def380]
ddcutil-2.2.1/src/dw/dw_udev.c:614:10: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:613:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:614:10: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def381]
ddcutil-2.2.1/src/dw/dw_udev.c:617:18: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:18: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def382]
ddcutil-2.2.1/src/dw/dw_udev.c:617:58: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:58: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:617:58: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def383]
ddcutil-2.2.1/src/dw/dw_udev.c:620:22: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:620:22: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def384]
ddcutil-2.2.1/src/dw/dw_udev.c:622:13: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:621:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:622:13: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:622:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:622:13: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:622:13: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def385]
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:621:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def386]
ddcutil-2.2.1/src/dw/dw_udev.c:627:16: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:621:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:626:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:627:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:627:16: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def387]
ddcutil-2.2.1/src/dw/dw_udev.c:629:16: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:621:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:626:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:627:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:629:16: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def388]
ddcutil-2.2.1/src/dw/dw_udev.c:632:26: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:621:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:626:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:632:26: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:632:26: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def389]
ddcutil-2.2.1/src/dw/dw_udev.c:636:13: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:617:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:621:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:625:39: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:636:13: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def390]
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def391]
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def392]
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def393]
ddcutil-2.2.1/src/dw/dw_udev.c:644:42: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:644:42: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def394]
ddcutil-2.2.1/src/dw/dw_udev.c:649:30: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:646:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:647:34: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:649:30: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def395]
ddcutil-2.2.1/src/dw/dw_udev.c:652:10: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:652:10: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def396]
ddcutil-2.2.1/src/dw/dw_udev.c:653:10: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:653:10: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
ddcutil-2.2.1/src/dw/dw_udev.c:655:30: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:655:30: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
ddcutil-2.2.1/src/dw/dw_udev.c:656:10: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:656:10: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def399]
ddcutil-2.2.1/src/dw/dw_udev.c:657:14: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:657:14: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def400]
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:657:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
ddcutil-2.2.1/src/dw/dw_udev.c:660:28: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:657:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:660:28: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
ddcutil-2.2.1/src/dw/dw_udev.c:663:41: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:657:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:661:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:663:41: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:663:41: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
ddcutil-2.2.1/src/dw/dw_udev.c:666:16: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:657:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:661:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:663:41: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:666:16: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
ddcutil-2.2.1/src/dw/dw_udev.c:667:16: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:641:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:642:18: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:641:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:643:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:657:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:658:41: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:661:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:663:41: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:667:16: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
ddcutil-2.2.1/src/dw/dw_udev.c:679:10: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:679:10: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def409]
ddcutil-2.2.1/src/dw/dw_udev.c:683:23: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:23: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def410]
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def411]
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def412]
ddcutil-2.2.1/src/dw/dw_udev.c:688:16: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:688:16: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def413]
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:680:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:682:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:684:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:683:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:685:36: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:686:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:687:24: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:695:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:696:19: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/13)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def414]
ddcutil-2.2.1/src/dw/dw_udev.c:742:13: warning[-Wanalyzer-malloc-leak]: leak of 'collect_udev_event_detail(dev)'
ddcutil-2.2.1/src/dw/dw_udev.c:455:10: enter_function: entry to 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:461:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:533:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:534:16: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:536:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:537:10: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:540:14: branch_false: following 'false' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:592:7: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: call_function: calling 'collect_udev_event_detail' from 'dw_watch_displays_udev'
ddcutil-2.2.1/src/dw/dw_udev.c:607:32: return_function: returning to 'dw_watch_displays_udev' from 'collect_udev_event_detail'
ddcutil-2.2.1/src/dw/dw_udev.c:608:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:609:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:672:15: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:673:17: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:672:17: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dw/dw_udev.c:677:38: branch_true: ...to here
ddcutil-2.2.1/src/dw/dw_udev.c:742:13: danger: 'collect_udev_event_detail(dev)' leaks here; was allocated at [(14)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-476): [#def415]
ddcutil-2.2.1/src/dw/dw_xevent.c:57: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: evdata
Error: GCC_ANALYZER_WARNING (CWE-476): [#def416]
ddcutil-2.2.1/src/dw/dw_xevent.c:57:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'evdata'
ddcutil-2.2.1/src/dw/dw_xevent.c:56:27: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dw/dw_xevent.c:57:4: danger: 'evdata' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def417]
ddcutil-2.2.1/src/dw/dw_xevent.c:57:18: warning[-Wanalyzer-malloc-leak]: leak of 'evdata'
ddcutil-2.2.1/src/dw/dw_xevent.c:56:27: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_xevent.c:57:18: danger: 'evdata' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def418]
ddcutil-2.2.1/src/dw/dw_xevent.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: evdata
Error: GCC_ANALYZER_WARNING (CWE-401): [#def419]
ddcutil-2.2.1/src/dw/dw_xevent.c:64:19: warning[-Wanalyzer-malloc-leak]: leak of 'evdata'
ddcutil-2.2.1/src/dw/dw_xevent.c:56:27: acquire_memory: allocated here
ddcutil-2.2.1/src/dw/dw_xevent.c:58:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dw/dw_xevent.c:61:21: branch_false: ...to here
ddcutil-2.2.1/src/dw/dw_xevent.c:64:19: danger: 'evdata' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def420]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:206: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: CPPCHECK_WARNING (CWE-476): [#def421]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:207: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: GCC_ANALYZER_WARNING (CWE-476): [#def422]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:207:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:205:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:207:4: danger: 'fset' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def423]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:208: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: GCC_ANALYZER_WARNING (CWE-401): [#def424]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:210:4: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:205:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:210:4: danger: 'fset' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def425]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: CPPCHECK_WARNING (CWE-476): [#def426]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: GCC_ANALYZER_WARNING (CWE-476): [#def427]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:225:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:223:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:225:4: danger: 'fset' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def428]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:226: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: GCC_ANALYZER_WARNING (CWE-401): [#def429]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:228:4: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:223:29: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:228:4: danger: 'fset' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:256:4: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:387:1: enter_function: entry to 'create_vcp_feature_set'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:453:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:455:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:457:16: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:458:24: call_function: calling 'test_show_feature' from 'create_vcp_feature_set'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def431]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:261:4: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:387:1: enter_function: entry to 'create_vcp_feature_set'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:453:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:455:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:457:16: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:458:24: call_function: calling 'test_show_feature' from 'create_vcp_feature_set'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:360:5: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:387:1: enter_function: entry to 'create_vcp_feature_set'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:453:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:455:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:457:16: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:458:24: call_function: calling 'test_show_feature' from 'create_vcp_feature_set'
Error: CPPCHECK_WARNING (CWE-476): [#def433]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:407: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: CPPCHECK_WARNING (CWE-476): [#def434]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:408: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: GCC_ANALYZER_WARNING (CWE-476): [#def435]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:408:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:408:4: danger: 'fset' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def436]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:410: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fset
Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:410:20: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:410:20: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:419:47: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:419:47: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:423:18: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:421:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:423:18: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:423:18: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:428:18: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:428:18: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:432:16: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:432:16: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:13: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:421:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:13: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:421:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:437:33: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:421:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:437:16: branch_true: following 'true' branch (when 'ndx > 223')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:437:33: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:437:33: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:440:16: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:421:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:437:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:440:16: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:440:47: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:413:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:415:14: branch_true: following 'true' branch (when 'ndx != 256')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:416:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:421:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:436:44: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:437:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:440:47: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:448:10: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:448:10: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:448:10: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:451:30: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:451:30: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:453:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:457:16: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:411:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:446:11: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:453:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:454:48: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:455:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:457:16: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:457:16: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:471:4: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:392:4: branch_false: following 'false' branch (when 'subset_id != 0')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:393:4: branch_false: following 'false' branch (when 'subset_id != 2')...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:397:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:406:36: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:453:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:471:4: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:471:4: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:675:28: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:675:28: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:677:36: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:677:36: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:679:32: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:679:32: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:682:50: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:679:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:680:16: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:682:50: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:687:11: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:679:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:680:16: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:687:11: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:689:8: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:689:8: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:695:5: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:667:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:9: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:669:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:672:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:673:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:674:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:695:5: danger: 'fset' leaks here; was allocated at [(5)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:749:24: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:749:24: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:751:36: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:751:36: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:753:32: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:753:32: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:755:48: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:753:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:754:16: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:755:48: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:756:11: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:753:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:754:16: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:756:11: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:758:8: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:758:8: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:764:5: warning[-Wanalyzer-malloc-leak]: leak of 'fset'
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:743:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:746:15: acquire_memory: allocated here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:747:8: branch_false: following 'false' branch (when 'fset' is non-NULL)...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:748:15: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:764:5: branch_false: following 'false' branch...
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:764:5: branch_false: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_feature_set.c:764:5: danger: 'fset' leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-682): [#def466]
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:399: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:404:31: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:512:1: enter_function: entry to 'dyn_report_cap_features'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:541:16: branch_true: following 'true' branch (when 'ndx < ct')...
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:544:7: call_function: calling 'dyn_report_one_cap_feature' from 'dyn_report_cap_features'
Error: GCC_ANALYZER_WARNING (CWE-124): [#def468]
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:408:16: warning[-Wanalyzer-out-of-bounds]: heap-based buffer underwrite
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:512:1: enter_function: entry to 'dyn_report_cap_features'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:541:16: branch_true: following 'true' branch (when 'ndx < ct')...
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:544:7: call_function: calling 'dyn_report_one_cap_feature' from 'dyn_report_cap_features'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def469]
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:408:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pos'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:512:1: enter_function: entry to 'dyn_report_cap_features'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:541:16: branch_true: following 'true' branch (when 'ndx < ct')...
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:544:7: call_function: calling 'dyn_report_one_cap_feature' from 'dyn_report_cap_features'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:412:19: warning[-Wanalyzer-malloc-leak]: leak of 'pos'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:512:1: enter_function: entry to 'dyn_report_cap_features'
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:541:16: branch_true: following 'true' branch (when 'ndx < ct')...
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:542:43: branch_true: ...to here
ddcutil-2.2.1/src/dynvcp/dyn_parsed_capabilities.c:544:7: call_function: calling 'dyn_report_one_cap_feature' from 'dyn_report_cap_features'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:918:4: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1063:7: enter_function: entry to 'i2c_edid_exists'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1067:5: branch_true: following 'true' branch (when 'busno >= 0')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1068:5: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1068:5: branch_true: following 'true' branch (when 'busno != 255')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1072:5: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1080:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1084:24: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1085:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1090:10: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1090:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1094:27: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1099:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1101:8: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1102:38: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'i2c_edid_exists'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:919:4: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1063:7: enter_function: entry to 'i2c_edid_exists'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1067:5: branch_true: following 'true' branch (when 'busno >= 0')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1068:5: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1068:5: branch_true: following 'true' branch (when 'busno != 255')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1072:5: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1080:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1084:24: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1085:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1090:10: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1090:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1094:27: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1099:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1101:8: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1102:38: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'i2c_edid_exists'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def473]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:967:10: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:953:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:960:35: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_false: following 'false' branch (when 'found == 0')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:964:22: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:965:10: branch_true: following 'true' branch (when 'busno != -1')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:966:40: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:966:40: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:967:10: danger: 'cbn' leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def474]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:968: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: GCC_ANALYZER_WARNING (CWE-401): [#def475]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:973:13: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(cname)'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:953:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:960:35: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_false: following 'false' branch (when 'found == 0')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:964:22: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:965:10: branch_true: following 'true' branch (when 'busno != -1')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:966:40: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:968:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:970:37: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:970:37: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:973:13: danger: 'strdup(cname)' leaks here; was allocated at [(11)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def476]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:976:10: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:953:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:960:35: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:963:22: branch_false: following 'false' branch (when 'found == 0')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:964:22: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:965:10: branch_true: following 'true' branch (when 'busno != -1')...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:966:40: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:968:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:970:37: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:970:37: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:976:10: danger: 'result.connector_name' leaks here; was allocated at [(11)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def477]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:991:20: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(cname)'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1308:6: enter_function: entry to 'set_connector_for_businfo_using_edid'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1313:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1315:4: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1317:8: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'set_connector_for_businfo_using_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def478]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:994:17: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1308:6: enter_function: entry to 'set_connector_for_businfo_using_edid'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1313:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1315:4: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1317:8: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'set_connector_for_businfo_using_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def479]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:999:4: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1308:6: enter_function: entry to 'set_connector_for_businfo_using_edid'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1313:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1315:4: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1317:8: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'set_connector_for_businfo_using_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def480]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1001:8: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1308:6: enter_function: entry to 'set_connector_for_businfo_using_edid'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1313:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1315:4: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1317:8: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'set_connector_for_businfo_using_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def481]
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1004:4: warning[-Wanalyzer-malloc-leak]: leak of 'result.connector_name'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1308:6: enter_function: entry to 'set_connector_for_businfo_using_edid'
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1313:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1315:4: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_bus_core.c:1317:8: call_function: calling 'find_sys_drm_connector_by_busno_or_edid' from 'set_connector_for_businfo_using_edid'
Error: CPPCHECK_WARNING (CWE-476): [#def482]
ddcutil-2.2.1/src/i2c/i2c_edid.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: GCC_ANALYZER_WARNING (CWE-476): [#def483]
ddcutil-2.2.1/src/i2c/i2c_edid.c:159:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'messages'
ddcutil-2.2.1/src/i2c/i2c_edid.c:78:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_edid.c:155:38: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/i2c/i2c_edid.c:159:10: danger: 'messages' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def484]
ddcutil-2.2.1/src/i2c/i2c_edid.c:160: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: CPPCHECK_WARNING (CWE-476): [#def485]
ddcutil-2.2.1/src/i2c/i2c_edid.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: CPPCHECK_WARNING (CWE-476): [#def486]
ddcutil-2.2.1/src/i2c/i2c_edid.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: GCC_ANALYZER_WARNING (CWE-401): [#def487]
ddcutil-2.2.1/src/i2c/i2c_edid.c:167:10: warning[-Wanalyzer-malloc-leak]: leak of 'messages'
ddcutil-2.2.1/src/i2c/i2c_edid.c:78:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_edid.c:155:38: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_edid.c:167:10: danger: 'messages' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def488]
ddcutil-2.2.1/src/i2c/i2c_execute.c:413:4: warning[-Wanalyzer-malloc-leak]: leak of 'messages'
ddcutil-2.2.1/src/i2c/i2c_execute.c:518:1: enter_function: entry to 'i2c_ioctl_reader1'
ddcutil-2.2.1/src/i2c/i2c_execute.c:534:32: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_execute.c:546:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/i2c/i2c_execute.c:547:7: branch_true: ...to here
ddcutil-2.2.1/src/i2c/i2c_execute.c:547:7: call_function: calling 'dbgrpt_i2c_rdwr_ioctl_data' from 'i2c_ioctl_reader1'
Error: CPPCHECK_WARNING (CWE-476): [#def489]
ddcutil-2.2.1/src/i2c/i2c_execute.c:538: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: GCC_ANALYZER_WARNING (CWE-476): [#def490]
ddcutil-2.2.1/src/i2c/i2c_execute.c:538:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'messages'
ddcutil-2.2.1/src/i2c/i2c_execute.c:534:32: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/i2c/i2c_execute.c:538:4: danger: 'messages' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def491]
ddcutil-2.2.1/src/i2c/i2c_execute.c:539: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: CPPCHECK_WARNING (CWE-476): [#def492]
ddcutil-2.2.1/src/i2c/i2c_execute.c:540: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: CPPCHECK_WARNING (CWE-476): [#def493]
ddcutil-2.2.1/src/i2c/i2c_execute.c:541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: messages
Error: GCC_ANALYZER_WARNING (CWE-401): [#def494]
ddcutil-2.2.1/src/i2c/i2c_execute.c:546:8: warning[-Wanalyzer-malloc-leak]: leak of 'messages'
ddcutil-2.2.1/src/i2c/i2c_execute.c:534:32: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_execute.c:546:8: danger: 'messages' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def495]
ddcutil-2.2.1/src/i2c/i2c_execute.c:549:4: warning[-Wanalyzer-malloc-leak]: leak of 'messages'
ddcutil-2.2.1/src/i2c/i2c_execute.c:534:32: acquire_memory: allocated here
ddcutil-2.2.1/src/i2c/i2c_execute.c:546:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/i2c/i2c_execute.c:549:4: branch_false: ...to here
ddcutil-2.2.1/src/i2c/i2c_execute.c:549:4: danger: 'messages' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def496]
ddcutil-2.2.1/src/libmain/api_base.c:396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd_name_array
Error: GCC_ANALYZER_WARNING (CWE-476): [#def497]
ddcutil-2.2.1/src/libmain/api_base.c:396:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cmd_name_array'
ddcutil-2.2.1/src/libmain/api_base.c:757:1: enter_function: entry to 'ddci_init'
ddcutil-2.2.1/src/libmain/api_base.c:770:7: branch_true: following 'true' branch (when 'infomsg_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_base.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:780:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_base.c:786:27: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:787:4: branch_false: following 'false' branch (when 'debug == 0')...
ddcutil-2.2.1/src/libmain/api_base.c:789:7: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:819:22: call_function: calling 'get_parsed_libmain_config' from 'ddci_init'
Error: CPPCHECK_WARNING (CWE-476): [#def498]
ddcutil-2.2.1/src/libmain/api_base.c:399: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd_name_array
Error: CPPCHECK_WARNING (CWE-476): [#def499]
ddcutil-2.2.1/src/libmain/api_base.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmd_name_array
Error: GCC_ANALYZER_WARNING (CWE-401): [#def500]
ddcutil-2.2.1/src/libmain/api_base.c:401:4: warning[-Wanalyzer-malloc-leak]: leak of 'cmd_name_array'
ddcutil-2.2.1/src/libmain/api_base.c:757:1: enter_function: entry to 'ddci_init'
ddcutil-2.2.1/src/libmain/api_base.c:770:7: branch_true: following 'true' branch (when 'infomsg_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_base.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:780:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_base.c:786:27: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:787:4: branch_false: following 'false' branch (when 'debug == 0')...
ddcutil-2.2.1/src/libmain/api_base.c:789:7: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:819:22: call_function: calling 'get_parsed_libmain_config' from 'ddci_init'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def501]
ddcutil-2.2.1/src/libmain/api_base.c:412:18: warning[-Wanalyzer-malloc-leak]: leak of 'cmd_name_array'
ddcutil-2.2.1/src/libmain/api_base.c:757:1: enter_function: entry to 'ddci_init'
ddcutil-2.2.1/src/libmain/api_base.c:770:7: branch_true: following 'true' branch (when 'infomsg_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_base.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:780:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_base.c:786:27: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:787:4: branch_false: following 'false' branch (when 'debug == 0')...
ddcutil-2.2.1/src/libmain/api_base.c:789:7: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:819:22: call_function: calling 'get_parsed_libmain_config' from 'ddci_init'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def502]
ddcutil-2.2.1/src/libmain/api_base.c:417:29: warning[-Wanalyzer-malloc-leak]: leak of 'cmd_name_array'
ddcutil-2.2.1/src/libmain/api_base.c:757:1: enter_function: entry to 'ddci_init'
ddcutil-2.2.1/src/libmain/api_base.c:770:7: branch_true: following 'true' branch (when 'infomsg_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_base.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:780:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_base.c:786:27: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:787:4: branch_false: following 'false' branch (when 'debug == 0')...
ddcutil-2.2.1/src/libmain/api_base.c:789:7: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:819:22: call_function: calling 'get_parsed_libmain_config' from 'ddci_init'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def503]
ddcutil-2.2.1/src/libmain/api_base.c:420:29: warning[-Wanalyzer-malloc-leak]: leak of 'cmd_name_array'
ddcutil-2.2.1/src/libmain/api_base.c:757:1: enter_function: entry to 'ddci_init'
ddcutil-2.2.1/src/libmain/api_base.c:770:7: branch_true: following 'true' branch (when 'infomsg_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_base.c:771:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:780:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_base.c:786:27: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:787:4: branch_false: following 'false' branch (when 'debug == 0')...
ddcutil-2.2.1/src/libmain/api_base.c:789:7: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_base.c:819:22: call_function: calling 'get_parsed_libmain_config' from 'ddci_init'
Error: CPPCHECK_WARNING (CWE-476): [#def504]
ddcutil-2.2.1/src/libmain/api_capabilities.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def505]
ddcutil-2.2.1/src/libmain/api_capabilities.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def506]
ddcutil-2.2.1/src/libmain/api_capabilities.c:162:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:140:1: enter_function: entry to 'ddca_parse_capabilities_string'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/libmain/api_capabilities.c:162:7: danger: 'result' could be NULL: unchecked value from [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def507]
ddcutil-2.2.1/src/libmain/api_capabilities.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def508]
ddcutil-2.2.1/src/libmain/api_capabilities.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def509]
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:140:1: enter_function: entry to 'ddca_parse_capabilities_string'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: danger: 'result' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def510]
ddcutil-2.2.1/src/libmain/api_capabilities.c:169:36: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/libmain/api_capabilities.c:140:1: enter_function: entry to 'ddca_parse_capabilities_string'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:168:30: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:169:36: danger: '<unknown>' leaks here; was allocated at [(13)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def511]
ddcutil-2.2.1/src/libmain/api_capabilities.c:169:36: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:140:1: enter_function: entry to 'ddca_parse_capabilities_string'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:169:36: danger: 'result' leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def512]
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_cap_vcp'
ddcutil-2.2.1/src/libmain/api_capabilities.c:140:1: enter_function: entry to 'ddca_parse_capabilities_string'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:174:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:13: danger: 'cur_cap_vcp' could be NULL: unchecked value from [(15)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/14)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def513]
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:168:30: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:193:16: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def514]
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: warning[-Wanalyzer-malloc-leak]: leak of 'cur_cap_vcp'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:174:30: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:193:16: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: danger: 'cur_cap_vcp' leaks here; was allocated at [(11)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def515]
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:193:16: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: danger: 'result' leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def516]
ddcutil-2.2.1/src/libmain/api_capabilities.c:196:44: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:193:16: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:195:38: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:196:44: danger: '<unknown>' leaks here; was allocated at [(17)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/16)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def517]
ddcutil-2.2.1/src/libmain/api_capabilities.c:196:44: warning[-Wanalyzer-malloc-leak]: leak of 'cur_cap_vcp'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:174:30: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:193:16: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:196:44: danger: 'cur_cap_vcp' leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def518]
ddcutil-2.2.1/src/libmain/api_capabilities.c:196:44: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:173:32: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:176:28: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:177:43: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:182:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:186:41: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:193:16: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:194:40: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:196:44: danger: 'result' leaks here; was allocated at [(7)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def519]
ddcutil-2.2.1/src/libmain/api_capabilities.c:216:29: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:168:30: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:214:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:214:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:216:29: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def520]
ddcutil-2.2.1/src/libmain/api_capabilities.c:216:29: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:214:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:214:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:216:29: danger: 'result' leaks here; was allocated at [(7)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def521]
ddcutil-2.2.1/src/libmain/api_capabilities.c:220:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_true: following 'true' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:168:30: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:214:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:220:7: danger: '<unknown>' leaks here; was allocated at [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def522]
ddcutil-2.2.1/src/libmain/api_capabilities.c:220:7: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:146:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:148:4: branch_false: following 'false' branch (when 'parsed_capabilities_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:153:34: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:154:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:160:16: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_capabilities.c:166:10: branch_false: following 'false' branch (when 'bva' is NULL)...
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:172:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_capabilities.c:214:11: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_capabilities.c:220:7: danger: 'result' leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def523]
ddcutil-2.2.1/src/libmain/api_displays.c:901:4: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1146:1: enter_function: entry to 'ddca_get_display_info_list2'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1176:28: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1180:7: call_function: calling 'ddci_init_display_info' from 'ddca_get_display_info_list2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def524]
ddcutil-2.2.1/src/libmain/api_displays.c:1062:23: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1146:1: enter_function: entry to 'ddca_get_display_info_list2'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: call_function: calling 'set_ddca_error_detail_from_open_errors' from 'ddca_get_display_info_list2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def525]
ddcutil-2.2.1/src/libmain/api_displays.c:1065:35: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1146:1: enter_function: entry to 'ddca_get_display_info_list2'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: call_function: calling 'set_ddca_error_detail_from_open_errors' from 'ddca_get_display_info_list2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def526]
ddcutil-2.2.1/src/libmain/api_displays.c:1066:7: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1146:1: enter_function: entry to 'ddca_get_display_info_list2'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: call_function: calling 'set_ddca_error_detail_from_open_errors' from 'ddca_get_display_info_list2'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def527]
ddcutil-2.2.1/src/libmain/api_displays.c:1071:23: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1146:1: enter_function: entry to 'ddca_get_display_info_list2'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1192:4: call_function: calling 'set_ddca_error_detail_from_open_errors' from 'ddca_get_display_info_list2'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def528]
ddcutil-2.2.1/src/libmain/api_displays.c:1113:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1113:10: danger: 'cur_ddca_dref' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def529]
ddcutil-2.2.1/src/libmain/api_displays.c:1113:27: warning[-Wanalyzer-malloc-leak]: leak of 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1113:27: danger: 'cur_ddca_dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def530]
ddcutil-2.2.1/src/libmain/api_displays.c:1113:27: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1113:27: danger: 'result_list' leaks here; was allocated at [(7)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def531]
ddcutil-2.2.1/src/libmain/api_displays.c:1115:10: warning[-Wanalyzer-malloc-leak]: leak of 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1115:10: danger: 'cur_ddca_dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def532]
ddcutil-2.2.1/src/libmain/api_displays.c:1115:10: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1112:31: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1115:10: danger: 'result_list' leaks here; was allocated at [(7)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def533]
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: danger: 'cur_ddca_dref' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def534]
ddcutil-2.2.1/src/libmain/api_displays.c:1120:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1120:4: danger: 'cur_ddca_dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def535]
ddcutil-2.2.1/src/libmain/api_displays.c:1123:8: warning[-Wanalyzer-malloc-leak]: leak of 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1123:8: danger: 'cur_ddca_dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def536]
ddcutil-2.2.1/src/libmain/api_displays.c:1124:7: warning[-Wanalyzer-malloc-leak]: leak of 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1123:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1124:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1124:7: danger: 'cur_ddca_dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def537]
ddcutil-2.2.1/src/libmain/api_displays.c:1131:7: warning[-Wanalyzer-malloc-leak]: leak of 'cur_ddca_dref'
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1100:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1101:4: branch_false: following 'false' branch (when 'drefs_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1105:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1109:37: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1111:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1118:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1123:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1124:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1126:14: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1131:7: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1131:7: danger: 'cur_ddca_dref' leaks here; was allocated at [(7)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def538]
ddcutil-2.2.1/src/libmain/api_displays.c:1167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result_list
Error: GCC_ANALYZER_WARNING (CWE-476): [#def539]
ddcutil-2.2.1/src/libmain/api_displays.c:1167:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/libmain/api_displays.c:1167:4: danger: 'result_list' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def540]
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: danger: 'result_list' leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def541]
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: danger: 'result_list' leaks here; was allocated at [(7)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def542]
ddcutil-2.2.1/src/libmain/api_displays.c:1187:7: warning[-Wanalyzer-malloc-leak]: leak of 'result_list'
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1152:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1155:4: branch_false: following 'false' branch (when 'dlist_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_displays.c:1158:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1166:43: acquire_memory: allocated here
ddcutil-2.2.1/src/libmain/api_displays.c:1175:22: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1184:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1186:8: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_displays.c:1187:7: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_displays.c:1187:7: danger: 'result_list' leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def543]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:55: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: errdet
Error: CPPCHECK_WARNING (CWE-476): [#def544]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:56: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: errdet
Error: CPPCHECK_WARNING (CWE-476): [#def545]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:61: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: errdet
Error: CPPCHECK_WARNING (CWE-476): [#def546]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def547]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:86: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def548]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:91: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def549]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def550]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:120: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def551]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:121: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def552]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def553]
ddcutil-2.2.1/src/libmain/api_error_info_internal.c:128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def554]
ddcutil-2.2.1/src/libmain/api_feature_access.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: tv
Error: GCC_ANALYZER_WARNING (CWE-476): [#def555]
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'tv'
ddcutil-2.2.1/src/libmain/api_feature_access.c:145:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_feature_access.c:145:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_feature_access.c:145:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_feature_access.c:145:4: branch_true: ...to here
ddcutil-2.2.1/src/libmain/api_feature_access.c:148:22: branch_false: following 'false' branch (when 'table_value_loc' is non-NULL)...
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: branch_false: ...to here
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/libmain/api_feature_access.c:152:4: danger: 'tv' could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def556]
ddcutil-2.2.1/src/libmain/api_feature_access.c:1044: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: verified_table_value
Error: CPPCHECK_WARNING (CWE-476): [#def557]
ddcutil-2.2.1/src/libmain/api_feature_access.c:1045: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: verified_table_value
Error: CPPCHECK_WARNING (CWE-476): [#def558]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:127: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: GCC_ANALYZER_WARNING (CWE-401): [#def559]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:161:13: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def560]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:162:4: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def561]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:168:28: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def562]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:169:4: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: CPPCHECK_WARNING (CWE-476): [#def563]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: GCC_ANALYZER_WARNING (CWE-476): [#def564]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:171:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: CPPCHECK_WARNING (CWE-476): [#def565]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: CPPCHECK_WARNING (CWE-476): [#def566]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:173: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: GCC_ANALYZER_WARNING (CWE-401): [#def567]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:176:17: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def568]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:191:13: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1477:5: enter_function: entry to 'search_all_businfo_records_by_connector_name'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1485:33: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1486:4: call_function: calling 'get_connector_bus_numbers' from 'search_all_businfo_records_by_connector_name'
Error: CPPCHECK_WARNING (CWE-476): [#def569]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:455: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: GCC_ANALYZER_WARNING (CWE-401): [#def570]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:770:4: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(simple_fn)'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:769:43: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:770:4: danger: 'strdup(simple_fn)' leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def571]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1055:4: warning[-Wanalyzer-malloc-leak]: leak of 'accum'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1053:44: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1055:4: danger: 'accum' leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def572]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1063: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: CPPCHECK_WARNING (CWE-476): [#def573]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1067: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: CPPCHECK_WARNING (CWE-476): [#def574]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1068: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: CPPCHECK_WARNING (CWE-476): [#def575]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1069: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accum
Error: GCC_ANALYZER_WARNING (CWE-476): [#def576]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'rp1'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1246:4: branch_true: following 'true' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1247:17: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1250:17: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch (when 'devpath' is NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: danger: 'rp1' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def577]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:42: warning[-Wanalyzer-malloc-leak]: leak of 'rp1'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1246:4: branch_true: following 'true' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1247:17: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1250:17: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch (when 'devpath' is NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:42: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:42: danger: 'rp1' leaks here; was allocated at [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def578]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:12: warning[-Wanalyzer-malloc-leak]: leak of 'rp1'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1246:4: branch_true: following 'true' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1247:17: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1250:17: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch (when 'devpath' is NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:42: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:12: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:12: danger: 'rp1' leaks here; was allocated at [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def579]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1259:10: warning[-Wanalyzer-malloc-leak]: leak of 'rp1'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1246:4: branch_true: following 'true' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1247:17: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1250:17: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch (when 'devpath' is NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:42: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:12: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1259:10: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1259:10: danger: 'rp1' leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def580]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1268:4: warning[-Wanalyzer-malloc-leak]: leak of 'devpath'
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1246:4: branch_true: following 'true' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1247:17: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1250:17: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch (when 'devpath' is NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:22: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:42: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:12: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1255:10: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1254:10: branch_false: following 'false' branch (when 'devpath' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1265:7: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1265:7: branch_false: following 'false' branch (when 'devpath' is non-NULL)...
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1268:4: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1268:4: danger: 'devpath' leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def581]
ddcutil-2.2.1/src/sysfs/sysfs_base.c:1487: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: CPPCHECK_WARNING (CWE-476): [#def582]
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:114: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: conflicting_driver
Error: GCC_ANALYZER_WARNING (CWE-476): [#def583]
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:114:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'conflicting_driver'
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:102:6: enter_function: entry to 'one_n_nnnn'
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:112:50: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:114:4: danger: 'conflicting_driver' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def584]
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:116:4: warning[-Wanalyzer-malloc-leak]: leak of 'conflicting_driver'
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:102:6: enter_function: entry to 'one_n_nnnn'
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:112:50: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_conflicting_drivers.c:116:4: danger: 'conflicting_driver' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def585]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def586]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:156:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:155:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:156:4: danger: 'result' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def587]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:157:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:155:30: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_info.c:157:4: danger: 'result' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def588]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:91:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:328:1: enter_function: entry to 'get_i2c_sys_info'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:355:7: call_function: calling 'read_i2cN_device_node' from 'get_i2c_sys_info'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def589]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:92:27: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:328:1: enter_function: entry to 'get_i2c_sys_info'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:355:7: call_function: calling 'read_i2cN_device_node' from 'get_i2c_sys_info'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def590]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:95:19: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:328:1: enter_function: entry to 'get_i2c_sys_info'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:355:7: call_function: calling 'read_i2cN_device_node' from 'get_i2c_sys_info'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def591]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:96:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:328:1: enter_function: entry to 'get_i2c_sys_info'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:355:7: call_function: calling 'read_i2cN_device_node' from 'get_i2c_sys_info'
Error: CPPCHECK_WARNING (CWE-476): [#def592]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:350: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def593]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:350:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:350:7: danger: 'result' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def594]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:352:7: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:352:7: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def595]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:353: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def596]
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:354:7: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:348:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: branch_true: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:349:16: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_i2c_sys_info.c:354:7: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def597]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: GCC_ANALYZER_WARNING (CWE-476): [#def598]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:190:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur'
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:189:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:190:4: danger: 'cur' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def599]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def600]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def601]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: GCC_ANALYZER_WARNING (CWE-401): [#def602]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:194:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur'
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:178:21: enter_function: entry to 'one_drm_connector0'
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:189:30: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:194:4: danger: 'cur' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def603]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:198: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: GCC_ANALYZER_WARNING (CWE-401): [#def604]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:208:4: warning[-Wanalyzer-malloc-leak]: leak of 'cbn'
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:201:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:207:34: branch_false: ...to here
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:207:34: acquire_memory: allocated here
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:208:4: danger: 'cbn' leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def605]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: CPPCHECK_WARNING (CWE-476): [#def606]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:209: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def607]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: CPPCHECK_WARNING (CWE-476): [#def608]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:210: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def609]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cbn
Error: CPPCHECK_WARNING (CWE-476): [#def610]
ddcutil-2.2.1/src/sysfs/sysfs_sys_drm_connector.c:211: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: GCC_ANALYZER_WARNING (CWE-775): [#def611]
ddcutil-2.2.1/src/usb/usb_base.c:89:4: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(hiddev_devname, mode)'
ddcutil-2.2.1/src/usb/usb_base.c:89:4: acquire_resource: opened here
ddcutil-2.2.1/src/usb/usb_base.c:89:4: danger: 'open(hiddev_devname, mode)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def612]
ddcutil-2.2.1/src/usb/usb_base.c:107:4: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'file'
ddcutil-2.2.1/src/usb/usb_base.c:89:4: acquire_resource: opened here
ddcutil-2.2.1/src/usb/usb_base.c:98:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_base.c:107:4: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_base.c:107:4: danger: 'file' leaks here; was opened at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def613]
ddcutil-2.2.1/src/usb/usb_base.c:313: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ignored_vid_pids
Error: CPPCHECK_WARNING (CWE-476): [#def614]
ddcutil-2.2.1/src/usb/usb_displays.c:194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vcprec
Error: CPPCHECK_WARNING (CWE-476): [#def615]
ddcutil-2.2.1/src/usb/usb_displays.c:195: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vcprec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def616]
ddcutil-2.2.1/src/usb/usb_displays.c:195:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'vcprec'
ddcutil-2.2.1/src/usb/usb_displays.c:193:35: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb/usb_displays.c:195:4: danger: 'vcprec' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def617]
ddcutil-2.2.1/src/usb/usb_displays.c:196:4: warning[-Wanalyzer-malloc-leak]: leak of 'vcprec'
ddcutil-2.2.1/src/usb/usb_displays.c:193:35: acquire_memory: allocated here
ddcutil-2.2.1/src/usb/usb_displays.c:196:4: danger: 'vcprec' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def618]
ddcutil-2.2.1/src/usb/usb_displays.c:273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: infoptr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def619]
ddcutil-2.2.1/src/usb/usb_displays.c:273:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'infoptr'
ddcutil-2.2.1/src/usb/usb_displays.c:213:50: branch_true: following 'true' branch (when 'report_type != 4')...
ddcutil-2.2.1/src/usb/usb_displays.c:215:33: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:227:14: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:233:15: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:233:14: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:237:26: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:239:39: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:248:17: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:250:18: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:250:17: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:253:29: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:254:41: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:261:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:263:23: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:263:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:265:22: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:272:55: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb/usb_displays.c:273:17: danger: 'infoptr' could be NULL: unchecked value from [(19)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-476): [#def620]
ddcutil-2.2.1/src/usb/usb_displays.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: fptr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def621]
ddcutil-2.2.1/src/usb/usb_displays.c:276:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'fptr'
ddcutil-2.2.1/src/usb/usb_displays.c:213:50: branch_true: following 'true' branch (when 'report_type != 4')...
ddcutil-2.2.1/src/usb/usb_displays.c:215:33: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:227:14: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:233:15: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:233:14: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:237:26: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:239:39: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:248:17: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:250:18: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:250:17: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:253:29: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:254:41: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:261:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:263:23: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:263:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:265:22: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:275:51: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb/usb_displays.c:276:17: danger: 'fptr' could be NULL: unchecked value from [(19)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-476): [#def622]
ddcutil-2.2.1/src/usb/usb_displays.c:279: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: uptr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def623]
ddcutil-2.2.1/src/usb/usb_displays.c:279:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'uptr'
ddcutil-2.2.1/src/usb/usb_displays.c:213:50: branch_true: following 'true' branch (when 'report_type != 4')...
ddcutil-2.2.1/src/usb/usb_displays.c:215:33: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:227:14: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:233:15: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:233:14: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:237:26: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:239:39: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:248:17: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:250:18: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:250:17: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:253:29: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:254:41: branch_true: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:261:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:263:23: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:263:20: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_displays.c:265:22: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_displays.c:278:50: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb/usb_displays.c:279:17: danger: 'uptr' could be NULL: unchecked value from [(19)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/18)
Error: CPPCHECK_WARNING (CWE-476): [#def624]
ddcutil-2.2.1/src/usb/usb_displays.c:425: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: moninfo
Error: CPPCHECK_WARNING (CWE-476): [#def625]
ddcutil-2.2.1/src/usb/usb_displays.c:426: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: moninfo
Error: GCC_ANALYZER_WARNING (CWE-476): [#def626]
ddcutil-2.2.1/src/usb/usb_displays.c:426:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'moninfo'
ddcutil-2.2.1/src/usb/usb_displays.c:421:20: enter_function: entry to 'create_usb_monitor_info'
ddcutil-2.2.1/src/usb/usb_displays.c:424:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb/usb_displays.c:426:4: danger: 'moninfo' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def627]
ddcutil-2.2.1/src/usb/usb_displays.c:430:4: warning[-Wanalyzer-malloc-leak]: leak of 'moninfo'
ddcutil-2.2.1/src/usb/usb_displays.c:421:20: enter_function: entry to 'create_usb_monitor_info'
ddcutil-2.2.1/src/usb/usb_displays.c:424:33: acquire_memory: allocated here
ddcutil-2.2.1/src/usb/usb_displays.c:430:4: danger: 'moninfo' leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def628]
ddcutil-2.2.1/src/usb/usb_displays.c:522: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: CPPCHECK_WARNING (CWE-476): [#def629]
ddcutil-2.2.1/src/usb/usb_displays.c:523: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: CPPCHECK_WARNING (CWE-476): [#def630]
ddcutil-2.2.1/src/usb/usb_displays.c:524: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: CPPCHECK_WARNING (CWE-476): [#def631]
ddcutil-2.2.1/src/usb/usb_displays.c:525: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: boe
Error: GCC_ANALYZER_WARNING (CWE-476): [#def632]
ddcutil-2.2.1/src/usb/usb_displays.c:844:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/usb/usb_displays.c:842:1: enter_function: entry to 'usb_get_parsed_edid_by_dref'
ddcutil-2.2.1/src/usb/usb_displays.c:843:33: call_function: calling 'usb_find_monitor_by_dref' from 'usb_get_parsed_edid_by_dref'
ddcutil-2.2.1/src/usb/usb_displays.c:843:33: return_function: returning to 'usb_get_parsed_edid_by_dref' from 'usb_find_monitor_by_dref'
ddcutil-2.2.1/src/usb/usb_displays.c:844:11: danger: dereference of NULL 'usb_find_monitor_by_dref(dref)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def633]
ddcutil-2.2.1/src/usb/usb_displays.c:851:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/usb/usb_displays.c:849:1: enter_function: entry to 'usb_get_parsed_edid_by_dh'
ddcutil-2.2.1/src/usb/usb_displays.c:850:33: call_function: calling 'usb_find_monitor_by_dh' from 'usb_get_parsed_edid_by_dh'
ddcutil-2.2.1/src/usb/usb_displays.c:850:33: return_function: returning to 'usb_get_parsed_edid_by_dh' from 'usb_find_monitor_by_dh'
ddcutil-2.2.1/src/usb/usb_displays.c:851:11: danger: dereference of NULL 'usb_find_monitor_by_dh(dh)'
Error: CPPCHECK_WARNING (CWE-476): [#def634]
ddcutil-2.2.1/src/usb/usb_edid.c:179: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def635]
ddcutil-2.2.1/src/usb/usb_edid.c:180: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def636]
ddcutil-2.2.1/src/usb/usb_edid.c:181: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def637]
ddcutil-2.2.1/src/usb/usb_edid.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def638]
ddcutil-2.2.1/src/usb/usb_edid.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def639]
ddcutil-2.2.1/src/usb/usb_edid.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def640]
ddcutil-2.2.1/src/usb/usb_edid.c:185: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def641]
ddcutil-2.2.1/src/usb/usb_edid.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def642]
ddcutil-2.2.1/src/usb/usb_vcp.c:491: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: GCC_ANALYZER_WARNING (CWE-476): [#def643]
ddcutil-2.2.1/src/usb/usb_vcp.c:491:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'parsed_response'
ddcutil-2.2.1/src/usb/usb_vcp.c:425:1: enter_function: entry to 'usb_get_nontable_vcp_value'
ddcutil-2.2.1/src/usb/usb_vcp.c:434:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_vcp.c:444:33: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_vcp.c:445:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_vcp.c:447:10: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_vcp.c:453:13: call_function: calling 'usb_get_usage_value_by_report_type_and_ucode' from 'usb_get_nontable_vcp_value'
ddcutil-2.2.1/src/usb/usb_vcp.c:453:13: return_function: returning to 'usb_get_nontable_vcp_value' from 'usb_get_usage_value_by_report_type_and_ucode'
ddcutil-2.2.1/src/usb/usb_vcp.c:490:25: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb/usb_vcp.c:491:7: danger: 'parsed_response' could be NULL: unchecked value from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def644]
ddcutil-2.2.1/src/usb/usb_vcp.c:492: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: CPPCHECK_WARNING (CWE-476): [#def645]
ddcutil-2.2.1/src/usb/usb_vcp.c:493: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: CPPCHECK_WARNING (CWE-476): [#def646]
ddcutil-2.2.1/src/usb/usb_vcp.c:496: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: CPPCHECK_WARNING (CWE-476): [#def647]
ddcutil-2.2.1/src/usb/usb_vcp.c:497: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: CPPCHECK_WARNING (CWE-476): [#def648]
ddcutil-2.2.1/src/usb/usb_vcp.c:498: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: CPPCHECK_WARNING (CWE-476): [#def649]
ddcutil-2.2.1/src/usb/usb_vcp.c:499: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_response
Error: GCC_ANALYZER_WARNING (CWE-401): [#def650]
ddcutil-2.2.1/src/usb/usb_vcp.c:502:4: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_response'
ddcutil-2.2.1/src/usb/usb_vcp.c:425:1: enter_function: entry to 'usb_get_nontable_vcp_value'
ddcutil-2.2.1/src/usb/usb_vcp.c:434:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_vcp.c:444:33: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_vcp.c:445:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb/usb_vcp.c:447:10: branch_false: ...to here
ddcutil-2.2.1/src/usb/usb_vcp.c:453:13: call_function: calling 'usb_get_usage_value_by_report_type_and_ucode' from 'usb_get_nontable_vcp_value'
ddcutil-2.2.1/src/usb/usb_vcp.c:453:13: return_function: returning to 'usb_get_nontable_vcp_value' from 'usb_get_usage_value_by_report_type_and_ucode'
ddcutil-2.2.1/src/usb/usb_vcp.c:490:25: acquire_memory: allocated here
ddcutil-2.2.1/src/usb/usb_vcp.c:502:4: danger: 'parsed_response' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: CPPCHECK_WARNING (CWE-476): [#def651]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:244: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: GCC_ANALYZER_WARNING (CWE-476): [#def652]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:244:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur'
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:240:16: branch_true: following 'true' branch (when 'i < l')...
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:241:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:241:13: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:244:7: danger: 'cur' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def653]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:245: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def654]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:246: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def655]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:247: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def656]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: CPPCHECK_WARNING (CWE-476): [#def657]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:259: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur
Error: GCC_ANALYZER_WARNING (CWE-835): [#def658]
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:452:11: warning[-Wanalyzer-infinite-loop]: infinite loop
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:452:11: danger: infinite loop here
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:452:11: branch_true: when 'report_item_list' is non-NULL: always following 'true' branch...
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:453:11: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/base_hid_report_descriptor.c:453:10: branch_false: if it ever follows 'false' branch, it will always do so...
branch_false: ...to here
Error: CPPCHECK_WARNING (CWE-476): [#def659]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:480: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def660]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:480:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:476:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:479:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:479:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:480:7: danger: 'result' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def661]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:481: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def662]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def663]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def664]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:822:24: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def665]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: warning[-Wanalyzer-malloc-leak]: leak of 'hf'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:692:37: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def666]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def667]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:476:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:479:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:479:16: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:482:7: danger: 'result' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def668]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:492:24: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def669]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:492:24: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def670]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:492:24: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:822:24: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def671]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:492:24: warning[-Wanalyzer-malloc-leak]: leak of 'hf'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:692:37: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def672]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:492:24: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def673]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:493:4: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:493:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:493:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:822:24: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def676]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:493:4: warning[-Wanalyzer-malloc-leak]: leak of 'hf'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:692:37: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def677]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:493:4: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def678]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:499:35: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def679]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:499:35: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[collection_stack_cur]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def680]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:499:35: warning[-Wanalyzer-malloc-leak]: leak of 'cur_collection'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:656:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def681]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:499:35: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:499:35: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def683]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:499:35: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:500:4: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def685]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:500:4: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[collection_stack_cur]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:500:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur_collection'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:656:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:500:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def688]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:500:4: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def689]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:500:4: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
Error: CPPCHECK_WARNING (CWE-476): [#def690]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_descriptor
Error: GCC_ANALYZER_WARNING (CWE-476): [#def691]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:4: danger: 'parsed_descriptor' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def692]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:626: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_descriptor
Error: CPPCHECK_WARNING (CWE-476): [#def693]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:626: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_descriptor->root_collection
Error: GCC_ANALYZER_WARNING (CWE-476): [#def694]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:626:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'calloc(1, 32)'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:626:4: danger: 'calloc(1, 32)' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def695]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:627: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_descriptor
Error: CPPCHECK_WARNING (CWE-476): [#def696]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:631: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_descriptor
Error: CPPCHECK_WARNING (CWE-476): [#def697]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:657: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_collection
Error: GCC_ANALYZER_WARNING (CWE-476): [#def698]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:657:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_collection'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:656:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:657:13: danger: 'cur_collection' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def699]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:658: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_collection
Error: GCC_ANALYZER_WARNING (CWE-476): [#def700]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:658:42: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:658:42: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def701]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:17: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def702]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_collection
Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: danger: 'collection_stack[0]' leaks here; was allocated at [(2)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[collection_stack_cur]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: danger: 'collection_stack[collection_stack_cur]' leaks here; was allocated at [(1)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: warning[-Wanalyzer-malloc-leak]: leak of 'cur_collection'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:656:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: danger: 'cur_collection' leaks here; was allocated at [(7)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: danger: 'cur_globals' leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def707]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: danger: 'cur_locals' leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:679:39: danger: 'parsed_descriptor' leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def709]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:697: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: hf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def710]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:697:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'hf'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:692:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:697:13: danger: 'hf' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def711]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:698:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:698:22: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def712]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:734:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:660:16: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:665:16: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: call_function: calling 'add_hid_collection_child' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:682:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_hid_collection_child'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:683:13: branch_false: following 'false' branch (when 'collection_stack_cur <= 8')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:684:13: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: call_function: calling 'free_cur_report_locals' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:821:10: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'free_cur_report_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:822:24: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: call_function: calling 'find_hid_report_or_new' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:699:38: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'find_hid_report_or_new'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: call_function: calling 'add_report_field' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:705:13: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'add_report_field'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:734:20: danger: 'cur_locals' could be NULL: unchecked value from [(31)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def713]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:830:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:830:15: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def714]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:833:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:833:46: call_function: calling 'maybe_signed_data' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:833:46: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'maybe_signed_data'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:833:15: danger: 'cur_globals' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def715]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:836:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:836:46: call_function: calling 'maybe_signed_data' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:836:46: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'maybe_signed_data'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:836:15: danger: 'cur_globals' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def716]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:839:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:839:47: call_function: calling 'maybe_signed_data' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:839:47: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'maybe_signed_data'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:839:15: danger: 'cur_globals' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def717]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:842:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:613:25: enter_function: entry to 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:842:47: call_function: calling 'maybe_signed_data' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:842:47: return_function: returning to 'parse_hid_report_desc_from_item_list' from 'maybe_signed_data'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:842:15: danger: 'cur_globals' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/1)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def718]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:845:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:845:15: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def719]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:848:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:848:15: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def720]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:851:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:851:15: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def721]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:854:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:854:15: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def722]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:857:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:857:15: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def723]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:863: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cur_globals
Error: GCC_ANALYZER_WARNING (CWE-476): [#def724]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:863:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:862:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:863:15: danger: 'cur_globals' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def725]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:867:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:867:20: danger: 'cur_globals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def726]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:893:19: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:893:19: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[0]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:981:25: enter_function: entry to 'parse_hid_report_desc'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:988:37: call_function: calling 'parse_hid_report_desc_from_item_list' from 'parse_hid_report_desc'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: warning[-Wanalyzer-malloc-leak]: leak of 'collection_stack[collection_stack_cur]'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:625:41: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:893:18: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: danger: 'collection_stack[collection_stack_cur]' leaks here; was allocated at [(1)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: warning[-Wanalyzer-malloc-leak]: leak of 'cur_globals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:620:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:893:18: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: danger: 'cur_globals' leaks here; was allocated at [(1)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: warning[-Wanalyzer-malloc-leak]: leak of 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:893:18: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: danger: 'cur_locals' leaks here; was allocated at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_descriptor'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:624:48: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:893:18: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:894:39: danger: 'parsed_descriptor' leaks here; was allocated at [(1)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def732]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:918:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:918:14: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def733]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:921:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:921:15: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def734]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:928:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:928:15: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def735]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:931:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:931:15: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/72/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def736]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:938:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:938:15: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/73/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def737]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:941:15: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'cur_locals'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:621:39: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:635:10: branch_true: following 'true' branch (when 'item' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:647:15: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:941:15: danger: 'cur_locals' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/74/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:989:4: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:981:25: enter_function: entry to 'parse_hid_report_desc'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:988:37: call_function: calling 'parse_hid_report_desc_from_item_list' from 'parse_hid_report_desc'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:988:37: return_function: returning to 'parse_hid_report_desc' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:989:4: danger: '<unknown>' leaks here; was allocated at [(4)](sarif:/runs/0/results/76/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def739]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:989:4: warning[-Wanalyzer-malloc-leak]: leak of 'parse_hid_report_desc_from_item_list(tokenize_hid_report_descriptor(b, desclen))'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:981:25: enter_function: entry to 'parse_hid_report_desc'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:988:37: call_function: calling 'parse_hid_report_desc_from_item_list' from 'parse_hid_report_desc'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:988:37: return_function: returning to 'parse_hid_report_desc' from 'parse_hid_report_desc_from_item_list'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:989:4: danger: 'parse_hid_report_desc_from_item_list(tokenize_hid_report_descriptor(b, desclen))' leaks here; was allocated at [(4)](sarif:/runs/0/results/75/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def740]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1169: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: code_rpt
Error: GCC_ANALYZER_WARNING (CWE-476): [#def741]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1169:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'code_rpt'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1136:13: enter_function: entry to 'get_vcp_code_reports'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1143:34: call_function: calling 'get_monitor_application_collection' from 'get_vcp_code_reports'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1143:34: return_function: returning to 'get_vcp_code_reports' from 'get_monitor_application_collection'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1149:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1150:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1151:36: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1152:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1153:17: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1153:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1157:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1158:20: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1157:20: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1165:23: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1165:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1166:46: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1167:25: branch_true: following 'true' branch (when 'vcp_feature_code != 0')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1168:54: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1168:54: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1169:25: danger: 'code_rpt' could be NULL: unchecked value from [(23)](sarif:/runs/0/results/77/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-476): [#def742]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: code_rpt
Error: GCC_ANALYZER_WARNING (CWE-401): [#def743]
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1171:25: warning[-Wanalyzer-malloc-leak]: leak of 'code_rpt'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1136:13: enter_function: entry to 'get_vcp_code_reports'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1143:34: call_function: calling 'get_monitor_application_collection' from 'get_vcp_code_reports'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1143:34: return_function: returning to 'get_vcp_code_reports' from 'get_monitor_application_collection'
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1149:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1150:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1151:36: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1152:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1153:17: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1153:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1157:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1158:20: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1157:20: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1165:23: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1165:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1166:46: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1167:25: branch_true: following 'true' branch (when 'vcp_feature_code != 0')...
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1168:54: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1168:54: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/hid_report_descriptor.c:1171:25: danger: 'code_rpt' leaks here; was allocated at [(23)](sarif:/runs/0/results/78/codeFlows/0/threadFlows/0/locations/22)
Error: CPPCHECK_WARNING (CWE-476): [#def744]
ddcutil-2.2.1/src/usb_util/hiddev_reports.c:582: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def745]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:560: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def746]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:560:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:519:7: branch_false: following 'false' branch (when 'rc == 0')...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:540:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:541:34: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:548:13: branch_false: following 'false' branch (when 'rc == 0')...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:552:14: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:558:7: branch_true: following 'true' branch (when 'is_matched != 0')...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:559:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:559:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hiddev_util.c:560:7: danger: 'result' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-476): [#def747]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:640: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def748]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:640:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:587:1: enter_function: entry to 'hiddev_find_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:605:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:609:7: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:611:10: branch_false: following 'false' branch (when 'reportinfo_rc == 0')...
branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:617:26: branch_true: following 'true' branch (when 'field_index_found == -1')...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:620:24: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:620:24: call_function: calling 'test_field_ucode' from 'hiddev_find_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:620:24: return_function: returning to 'hiddev_find_report' from 'test_field_ucode'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:621:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:622:34: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:605:11: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:635:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:635:7: branch_true: following 'true' branch (when 'finfo_found' is non-NULL)...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:637:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:637:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/usb_util/hiddev_util.c:640:7: danger: 'result' could be NULL: unchecked value from [(21)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/20)
Error: CPPCHECK_WARNING (CWE-476): [#def749]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:641: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def750]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:642: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def751]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:643: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def752]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:746:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:746:10: warning[-Wanalyzer-malloc-leak]: leak of 'locate_edid_report(fd)'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:749:13: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:749:13: warning[-Wanalyzer-malloc-leak]: leak of 'locate_edid_report(fd)'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def756]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:751:7: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def757]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:751:7: warning[-Wanalyzer-malloc-leak]: leak of 'locate_edid_report(fd)'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def758]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:800:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def759]
ddcutil-2.2.1/src/usb_util/hiddev_util.c:800:10: warning[-Wanalyzer-malloc-leak]: leak of 'locate_edid_report(fd)'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:906:10: enter_function: entry to 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: call_function: calling 'locate_edid_report' from 'hiddev_get_edid'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:912:37: return_function: returning to 'hiddev_get_edid' from 'locate_edid_report'
ddcutil-2.2.1/src/usb_util/hiddev_util.c:913:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/hiddev_util.c:914:16: call_function: calling 'hiddev_get_multibyte_report_value_by_hid_field_locator' from 'hiddev_get_edid'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def760]
ddcutil-2.2.1/src/usb_util/libusb_util.c:254:16: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def761]
ddcutil-2.2.1/src/usb_util/libusb_util.c:290:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def762]
ddcutil-2.2.1/src/usb_util/libusb_util.c:294:14: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def763]
ddcutil-2.2.1/src/usb_util/libusb_util.c:296:8: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def764]
ddcutil-2.2.1/src/usb_util/libusb_util.c:303:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def765]
ddcutil-2.2.1/src/usb_util/libusb_util.c:307:16: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def766]
ddcutil-2.2.1/src/usb_util/libusb_util.c:309:10: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:501:18: enter_function: entry to 'filter_possible_monitor_devs'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:531:7: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:537:23: call_function: calling 'possible_monitor_dev' from 'filter_possible_monitor_devs'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def767]
ddcutil-2.2.1/src/usb_util/libusb_util.c:346:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: call_function: calling 'alt_possible_monitor_dev' from 'get_possible_monitors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def768]
ddcutil-2.2.1/src/usb_util/libusb_util.c:347:25: warning[-Wanalyzer-malloc-leak]: leak of 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: call_function: calling 'alt_possible_monitor_dev' from 'get_possible_monitors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def769]
ddcutil-2.2.1/src/usb_util/libusb_util.c:352:13: warning[-Wanalyzer-malloc-leak]: leak of 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: call_function: calling 'alt_possible_monitor_dev' from 'get_possible_monitors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def770]
ddcutil-2.2.1/src/usb_util/libusb_util.c:354:7: warning[-Wanalyzer-malloc-leak]: leak of 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: call_function: calling 'alt_possible_monitor_dev' from 'get_possible_monitors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
ddcutil-2.2.1/src/usb_util/libusb_util.c:361:9: warning[-Wanalyzer-malloc-leak]: leak of 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: call_function: calling 'alt_possible_monitor_dev' from 'get_possible_monitors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
ddcutil-2.2.1/src/usb_util/libusb_util.c:363:7: warning[-Wanalyzer-malloc-leak]: leak of 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:474:13: call_function: calling 'alt_possible_monitor_dev' from 'get_possible_monitors'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
ddcutil-2.2.1/src/usb_util/libusb_util.c:380:13: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:380:13: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
ddcutil-2.2.1/src/usb_util/libusb_util.c:381:13: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:381:13: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
ddcutil-2.2.1/src/usb_util/libusb_util.c:392:21: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:392:21: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def778]
ddcutil-2.2.1/src/usb_util/libusb_util.c:394:19: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:394:19: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:394:19: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def779]
ddcutil-2.2.1/src/usb_util/libusb_util.c:399:24: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:399:24: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def780]
ddcutil-2.2.1/src/usb_util/libusb_util.c:401:22: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:400:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:401:22: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:401:22: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def781]
ddcutil-2.2.1/src/usb_util/libusb_util.c:409:22: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_possible_monitor_device()'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:409:22: danger: 'new_possible_monitor_device()' could be NULL: unchecked value from [(18)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def782]
ddcutil-2.2.1/src/usb_util/libusb_util.c:429:52: warning[-Wanalyzer-malloc-leak]: leak of 'new_possible_monitor_device()'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:429:52: danger: 'new_possible_monitor_device()' leaks here; was allocated at [(18)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
ddcutil-2.2.1/src/usb_util/libusb_util.c:430:52: warning[-Wanalyzer-malloc-leak]: leak of 'new_possible_monitor_device()'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:430:52: danger: 'new_possible_monitor_device()' leaks here; was allocated at [(18)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def784]
ddcutil-2.2.1/src/usb_util/libusb_util.c:431:52: warning[-Wanalyzer-malloc-leak]: leak of 'new_possible_monitor_device()'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:431:52: danger: 'new_possible_monitor_device()' leaks here; was allocated at [(18)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def785]
ddcutil-2.2.1/src/usb_util/libusb_util.c:438:19: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:438:19: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def786]
ddcutil-2.2.1/src/usb_util/libusb_util.c:444:4: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/usb_util/libusb_util.c:334:1: enter_function: entry to 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:353:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:357:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:362:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:372:54: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:376:63: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:378:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:379:13: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:383:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:387:16: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:393:19: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:398:19: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:403:22: branch_false: following 'false' branch (when 'new_node' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: call_function: calling 'new_possible_monitor_device' from 'alt_possible_monitor_dev'
ddcutil-2.2.1/src/usb_util/libusb_util.c:408:33: return_function: returning to 'alt_possible_monitor_dev' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:375:25: branch_false: following 'false' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:444:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:444:4: danger: 'new_node' leaks here; was allocated at [(18)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/17)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def787]
ddcutil-2.2.1/src/usb_util/libusb_util.c:482:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'last_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:460:1: enter_function: entry to 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: call_function: calling 'new_possible_monitor_device' from 'get_possible_monitors'
ddcutil-2.2.1/src/usb_util/libusb_util.c:468:44: return_function: returning to 'get_possible_monitors' from 'new_possible_monitor_device'
ddcutil-2.2.1/src/usb_util/libusb_util.c:472:11: branch_false: following 'false' branch (when 'dev' is NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:482:4: branch_false: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:482:4: danger: 'new_possible_monitor_device()' could be NULL: unchecked value from [(4)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def788]
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: danger: 'result' leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def789]
ddcutil-2.2.1/src/usb_util/libusb_util.c:517:31: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:517:31: danger: 'result' leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def790]
ddcutil-2.2.1/src/usb_util/libusb_util.c:526:16: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:526:16: danger: 'result' leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def791]
ddcutil-2.2.1/src/usb_util/libusb_util.c:528:10: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/usb_util/libusb_util.c:511:30: acquire_memory: allocated here
ddcutil-2.2.1/src/usb_util/libusb_util.c:515:11: branch_true: following 'true' branch (when 'dev' is non-NULL)...
ddcutil-2.2.1/src/usb_util/libusb_util.c:516:31: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:527:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/usb_util/libusb_util.c:528:10: branch_true: ...to here
ddcutil-2.2.1/src/usb_util/libusb_util.c:528:10: danger: 'result' leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def792]
ddcutil-2.2.1/src/util/backtrace.c:69: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def793]
ddcutil-2.2.1/src/util/backtrace.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-688): [#def794]
ddcutil-2.2.1/src/util/backtrace.c:73:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'result' where non-null expected
ddcutil-2.2.1/src/util/backtrace.c:146:13: enter_function: entry to 'get_backtrace'
ddcutil-2.2.1/src/util/backtrace.c:163:7: branch_false: following 'false' branch (when 'strings' is non-NULL)...
ddcutil-2.2.1/src/util/backtrace.c:168:38: branch_false: ...to here
ddcutil-2.2.1/src/util/backtrace.c:171:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/backtrace.c:172:13: branch_true: ...to here
ddcutil-2.2.1/src/util/backtrace.c:172:13: branch_false: following 'false' branch (when 'j >= stack_adjust')...
ddcutil-2.2.1/src/util/backtrace.c:178:48: branch_false: ...to here
ddcutil-2.2.1/src/util/backtrace.c:178:24: call_function: calling 'extract_function' from 'get_backtrace'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def795]
ddcutil-2.2.1/src/util/backtrace.c:181:13: warning[-Wanalyzer-malloc-leak]: leak of 'extract_function(*<unknown>, 1)'
ddcutil-2.2.1/src/util/backtrace.c:146:13: enter_function: entry to 'get_backtrace'
ddcutil-2.2.1/src/util/backtrace.c:163:7: branch_false: following 'false' branch (when 'strings' is non-NULL)...
ddcutil-2.2.1/src/util/backtrace.c:168:38: branch_false: ...to here
ddcutil-2.2.1/src/util/backtrace.c:171:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/backtrace.c:172:13: branch_true: ...to here
ddcutil-2.2.1/src/util/backtrace.c:172:13: branch_false: following 'false' branch (when 'j >= stack_adjust')...
ddcutil-2.2.1/src/util/backtrace.c:178:48: branch_false: ...to here
ddcutil-2.2.1/src/util/backtrace.c:178:24: call_function: calling 'extract_function' from 'get_backtrace'
ddcutil-2.2.1/src/util/backtrace.c:178:24: return_function: returning to 'get_backtrace' from 'extract_function'
ddcutil-2.2.1/src/util/backtrace.c:181:13: danger: 'extract_function(*<unknown>, 1)' leaks here; was allocated at [(16)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/15)
Error: CPPCHECK_WARNING (CWE-476): [#def796]
ddcutil-2.2.1/src/util/data_structures.c:57: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def797]
ddcutil-2.2.1/src/util/data_structures.c:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def798]
ddcutil-2.2.1/src/util/data_structures.c:58:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'buffer'
ddcutil-2.2.1/src/util/data_structures.c:56:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/data_structures.c:58:4: danger: 'buffer' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def799]
ddcutil-2.2.1/src/util/data_structures.c:59: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def800]
ddcutil-2.2.1/src/util/data_structures.c:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: CPPCHECK_WARNING (CWE-476): [#def801]
ddcutil-2.2.1/src/util/data_structures.c:61: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buffer
Error: GCC_ANALYZER_WARNING (CWE-476): [#def802]
ddcutil-2.2.1/src/util/data_structures.c:296:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL '*buffer.bytes + (sizetype)*buffer.len'
ddcutil-2.2.1/src/util/data_structures.c:1378:10: enter_function: entry to 'bs256_to_buffer'
ddcutil-2.2.1/src/util/data_structures.c:1379:21: call_function: calling 'bs256_count' from 'bs256_to_buffer'
ddcutil-2.2.1/src/util/data_structures.c:1379:21: return_function: returning to 'bs256_to_buffer' from 'bs256_count'
ddcutil-2.2.1/src/util/data_structures.c:1380:19: call_function: calling 'buffer_new' from 'bs256_to_buffer'
ddcutil-2.2.1/src/util/data_structures.c:1380:19: return_function: returning to 'bs256_to_buffer' from 'buffer_new'
ddcutil-2.2.1/src/util/data_structures.c:1381:34: branch_true: following 'true' branch (when 'flagno != 256')...
ddcutil-2.2.1/src/util/data_structures.c:1382:12: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1384:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/data_structures.c:1385:10: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1385:10: call_function: calling 'buffer_add' from 'bs256_to_buffer'
Error: CPPCHECK_WARNING (CWE-476): [#def803]
ddcutil-2.2.1/src/util/data_structures.c:382: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csb
Error: GCC_ANALYZER_WARNING (CWE-476): [#def804]
ddcutil-2.2.1/src/util/data_structures.c:382:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'csb'
ddcutil-2.2.1/src/util/data_structures.c:381:35: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/data_structures.c:382:4: danger: 'csb' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def805]
ddcutil-2.2.1/src/util/data_structures.c:383: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csb
Error: CPPCHECK_WARNING (CWE-476): [#def806]
ddcutil-2.2.1/src/util/data_structures.c:384: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: csb
Error: GCC_ANALYZER_WARNING (CWE-688): [#def807]
ddcutil-2.2.1/src/util/data_structures.c:697:63: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
ddcutil-2.2.1/src/util/data_structures.c:687:8: enter_function: entry to 'vnt_interpret_flags_t'
ddcutil-2.2.1/src/util/data_structures.c:696:21: call_function: calling 'vnt_interpret_flags' from 'vnt_interpret_flags_t'
ddcutil-2.2.1/src/util/data_structures.c:696:21: return_function: returning to 'vnt_interpret_flags_t' from 'vnt_interpret_flags'
ddcutil-2.2.1/src/util/data_structures.c:697:63: danger: argument 1 ('vnt_interpret_flags(flags_val, bitname_table, use_title, sepstr)') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def808]
ddcutil-2.2.1/src/util/data_structures.c:777:23: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/util/data_structures.c:1899:6: enter_function: entry to 'bva_store_bytehex_list'
ddcutil-2.2.1/src/util/data_structures.c:1900:11: call_function: calling 'store_bytehex_list' from 'bva_store_bytehex_list'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def809]
ddcutil-2.2.1/src/util/data_structures.c:777:23: warning[-Wanalyzer-malloc-leak]: leak of 'curpos'
ddcutil-2.2.1/src/util/data_structures.c:1899:6: enter_function: entry to 'bva_store_bytehex_list'
ddcutil-2.2.1/src/util/data_structures.c:1900:11: call_function: calling 'store_bytehex_list' from 'bva_store_bytehex_list'
Error: GCC_ANALYZER_WARNING (CWE-688): [#def810]
ddcutil-2.2.1/src/util/data_structures.c:921:47: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'buf' where non-null expected
ddcutil-2.2.1/src/util/data_structures.c:909:4: branch_false: following 'false' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:911:7: branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:917:17: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/data_structures.c:918:22: branch_true: following 'true' branch (when 'ndx < len')...
ddcutil-2.2.1/src/util/data_structures.c:919:23: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:919:23: branch_false: following 'false' branch (when 'ndx == 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:920:10: branch_true: following 'true' branch (when 'as_hex != 0')...
ddcutil-2.2.1/src/util/data_structures.c:921:83: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:921:47: danger: argument 1 ('buf') from [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def811]
ddcutil-2.2.1/src/util/data_structures.c:923:47: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'buf' where non-null expected
ddcutil-2.2.1/src/util/data_structures.c:909:4: branch_false: following 'false' branch (when 'bva' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:911:7: branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:917:17: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/data_structures.c:918:22: branch_true: following 'true' branch (when 'ndx < len')...
ddcutil-2.2.1/src/util/data_structures.c:919:23: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:919:23: branch_false: following 'false' branch (when 'ndx == 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:920:10: branch_false: following 'false' branch (when 'as_hex == 0')...
ddcutil-2.2.1/src/util/data_structures.c:923:81: branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:923:47: danger: argument 1 ('buf') from [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def812]
ddcutil-2.2.1/src/util/data_structures.c:1407: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def813]
ddcutil-2.2.1/src/util/data_structures.c:1408: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def814]
ddcutil-2.2.1/src/util/data_structures.c:1408:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/util/data_structures.c:1406:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/data_structures.c:1408:4: danger: 'result' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def815]
ddcutil-2.2.1/src/util/data_structures.c:1409: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-758): [#def816]
ddcutil-2.2.1/src/util/data_structures.c:1613: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-758): [#def817]
ddcutil-2.2.1/src/util/data_structures.c:1628: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
Error: CPPCHECK_WARNING (CWE-476): [#def818]
ddcutil-2.2.1/src/util/data_structures.c:1850: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def819]
ddcutil-2.2.1/src/util/data_structures.c:1851: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-401): [#def820]
ddcutil-2.2.1/src/util/data_structures.c:1863:18: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/util/data_structures.c:1849:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1861:10: branch_true: following 'true' branch (when 'ln == 2')...
ddcutil-2.2.1/src/util/data_structures.c:1863:18: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1863:18: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def821]
ddcutil-2.2.1/src/util/data_structures.c:1863:18: warning[-Wanalyzer-malloc-leak]: leak of 'curpos'
ddcutil-2.2.1/src/util/data_structures.c:1849:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1861:10: branch_true: following 'true' branch (when 'ln == 2')...
ddcutil-2.2.1/src/util/data_structures.c:1863:18: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1863:18: danger: 'curpos' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
ddcutil-2.2.1/src/util/data_structures.c:1874:18: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/util/data_structures.c:1849:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1861:10: branch_false: following 'false' branch (when 'ln != 2')...
ddcutil-2.2.1/src/util/data_structures.c:1865:15: branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1865:15: branch_true: following 'true' branch (when 'ln == 1')...
ddcutil-2.2.1/src/util/data_structures.c:1871:10: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1874:18: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def823]
ddcutil-2.2.1/src/util/data_structures.c:1874:18: warning[-Wanalyzer-malloc-leak]: leak of 'curpos'
ddcutil-2.2.1/src/util/data_structures.c:1849:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1861:10: branch_false: following 'false' branch (when 'ln != 2')...
ddcutil-2.2.1/src/util/data_structures.c:1865:15: branch_false: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1865:15: branch_true: following 'true' branch (when 'ln == 1')...
ddcutil-2.2.1/src/util/data_structures.c:1871:10: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1874:18: danger: 'curpos' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def824]
ddcutil-2.2.1/src/util/data_structures.c:1882:10: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/util/data_structures.c:1849:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1876:10: branch_true: following 'true' branch (when 'hexok != 0')...
ddcutil-2.2.1/src/util/data_structures.c:1882:10: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1882:10: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def825]
ddcutil-2.2.1/src/util/data_structures.c:1882:10: warning[-Wanalyzer-malloc-leak]: leak of 'curpos'
ddcutil-2.2.1/src/util/data_structures.c:1849:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/data_structures.c:1856:12: branch_true: following 'true' branch (when 'nexttok' is non-NULL)...
ddcutil-2.2.1/src/util/data_structures.c:1859:16: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1876:10: branch_true: following 'true' branch (when 'hexok != 0')...
ddcutil-2.2.1/src/util/data_structures.c:1882:10: branch_true: ...to here
ddcutil-2.2.1/src/util/data_structures.c:1882:10: danger: 'curpos' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def826]
ddcutil-2.2.1/src/util/ddcutil_config_file.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: combined
Error: GCC_ANALYZER_WARNING (CWE-476): [#def827]
ddcutil-2.2.1/src/util/ddcutil_config_file.c:184:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'combined'
ddcutil-2.2.1/src/util/ddcutil_config_file.c:163:5: enter_function: entry to 'merge_command_tokens'
ddcutil-2.2.1/src/util/ddcutil_config_file.c:173:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/ddcutil_config_file.c:174:4: branch_false: ...to here
ddcutil-2.2.1/src/util/ddcutil_config_file.c:174:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/ddcutil_config_file.c:176:4: branch_false: ...to here
ddcutil-2.2.1/src/util/ddcutil_config_file.c:179:7: branch_true: following 'true' branch (when 'config_token_ct > 0')...
ddcutil-2.2.1/src/util/ddcutil_config_file.c:180:20: branch_true: ...to here
ddcutil-2.2.1/src/util/ddcutil_config_file.c:182:26: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/ddcutil_config_file.c:184:7: danger: 'combined' could be NULL: unchecked value from [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def828]
ddcutil-2.2.1/src/util/ddcutil_config_file.c:185: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: combined
Error: CPPCHECK_WARNING (CWE-476): [#def829]
ddcutil-2.2.1/src/util/ddcutil_config_file.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: combined
Error: GCC_ANALYZER_WARNING (CWE-404): [#def830]
ddcutil-2.2.1/src/util/debug_util.c:91:23: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/util/debug_util.c:88:7: branch_true: following 'true' branch (when 'debug_flag != 0')...
ddcutil-2.2.1/src/util/debug_util.c:90:7: branch_true: ...to here
ddcutil-2.2.1/src/util/debug_util.c:90:7: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/util/debug_util.c:91:23: danger: missing call to 'va_end' to match 'va_start' at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def831]
ddcutil-2.2.1/src/util/device_id_util.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_entry
Error: CPPCHECK_WARNING (CWE-476): [#def832]
ddcutil-2.2.1/src/util/device_id_util.c:137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_entry
Error: GCC_ANALYZER_WARNING (CWE-401): [#def833]
ddcutil-2.2.1/src/util/drm_card_connector_util.c:137:4: warning[-Wanalyzer-malloc-leak]: leak of 'accumulator'
ddcutil-2.2.1/src/util/drm_card_connector_util.c:136:39: acquire_memory: allocated here
ddcutil-2.2.1/src/util/drm_card_connector_util.c:137:4: danger: 'accumulator' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def834]
ddcutil-2.2.1/src/util/drm_card_connector_util.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: accumulator
Error: CPPCHECK_WARNING (CWE-457): [#def835]
ddcutil-2.2.1/src/util/drm_card_connector_util.c:171: error[uninitvar]: Uninitialized variable: t0
Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
ddcutil-2.2.1/src/util/edid.c:62:8: warning[-Wanalyzer-malloc-leak]: leak of 'create_parsed_edid(edidbytes)'
ddcutil-2.2.1/src/util/edid.c:297:15: enter_function: entry to 'create_parsed_edid2'
ddcutil-2.2.1/src/util/edid.c:298:25: call_function: calling 'create_parsed_edid' from 'create_parsed_edid2'
ddcutil-2.2.1/src/util/edid.c:298:25: return_function: returning to 'create_parsed_edid2' from 'create_parsed_edid'
ddcutil-2.2.1/src/util/edid.c:299:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/edid.c:300:7: branch_true: ...to here
ddcutil-2.2.1/src/util/edid.c:62:8: danger: 'create_parsed_edid(edidbytes)' leaks here; was allocated at [(20)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/19)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
ddcutil-2.2.1/src/util/edid.c:199:13: warning[-Wanalyzer-malloc-leak]: leak of 'parsed_edid'
ddcutil-2.2.1/src/util/edid.c:223:15: enter_function: entry to 'create_parsed_edid'
ddcutil-2.2.1/src/util/edid.c:231:18: acquire_memory: allocated here
ddcutil-2.2.1/src/util/edid.c:236:4: call_function: calling 'get_edid_mfg_id_in_buffer' from 'create_parsed_edid'
ddcutil-2.2.1/src/util/edid.c:236:4: return_function: returning to 'create_parsed_edid' from 'get_edid_mfg_id_in_buffer'
ddcutil-2.2.1/src/util/edid.c:248:4: call_function: calling 'get_edid_descriptor_strings' from 'create_parsed_edid'
Error: CPPCHECK_WARNING (CWE-476): [#def838]
ddcutil-2.2.1/src/util/edid.c:233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def839]
ddcutil-2.2.1/src/util/edid.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def840]
ddcutil-2.2.1/src/util/edid.c:238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def841]
ddcutil-2.2.1/src/util/edid.c:241: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def842]
ddcutil-2.2.1/src/util/edid.c:241:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'parsed_edid'
ddcutil-2.2.1/src/util/edid.c:223:15: enter_function: entry to 'create_parsed_edid'
ddcutil-2.2.1/src/util/edid.c:231:18: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/edid.c:236:4: call_function: calling 'get_edid_mfg_id_in_buffer' from 'create_parsed_edid'
ddcutil-2.2.1/src/util/edid.c:236:4: return_function: returning to 'create_parsed_edid' from 'get_edid_mfg_id_in_buffer'
ddcutil-2.2.1/src/util/edid.c:241:4: danger: 'parsed_edid' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def843]
ddcutil-2.2.1/src/util/edid.c:243: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def844]
ddcutil-2.2.1/src/util/edid.c:250: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def845]
ddcutil-2.2.1/src/util/edid.c:251: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def846]
ddcutil-2.2.1/src/util/edid.c:252: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def847]
ddcutil-2.2.1/src/util/edid.c:255: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def848]
ddcutil-2.2.1/src/util/edid.c:256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def849]
ddcutil-2.2.1/src/util/edid.c:257: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def850]
ddcutil-2.2.1/src/util/edid.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def851]
ddcutil-2.2.1/src/util/edid.c:259: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def852]
ddcutil-2.2.1/src/util/edid.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def853]
ddcutil-2.2.1/src/util/edid.c:262: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def854]
ddcutil-2.2.1/src/util/edid.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def855]
ddcutil-2.2.1/src/util/edid.c:264: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def856]
ddcutil-2.2.1/src/util/edid.c:265: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def857]
ddcutil-2.2.1/src/util/edid.c:266: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def858]
ddcutil-2.2.1/src/util/edid.c:267: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def859]
ddcutil-2.2.1/src/util/edid.c:270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def860]
ddcutil-2.2.1/src/util/edid.c:272: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def861]
ddcutil-2.2.1/src/util/edid.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: CPPCHECK_WARNING (CWE-476): [#def862]
ddcutil-2.2.1/src/util/edid.c:277: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: parsed_edid
Error: GCC_ANALYZER_WARNING (CWE-476): [#def863]
ddcutil-2.2.1/src/util/edid.c:377:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/util/edid.c:370:19: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/edid.c:373:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/edid.c:376:10: branch_true: ...to here
ddcutil-2.2.1/src/util/edid.c:376:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/edid.c:377:17: branch_true: ...to here
ddcutil-2.2.1/src/util/edid.c:377:10: danger: 'result + (sizetype)respos' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def864]
ddcutil-2.2.1/src/util/edid.c:380:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'result' where non-null expected
ddcutil-2.2.1/src/util/edid.c:370:19: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/edid.c:373:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/edid.c:376:10: branch_true: ...to here
ddcutil-2.2.1/src/util/edid.c:376:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/edid.c:380:44: branch_false: ...to here
ddcutil-2.2.1/src/util/edid.c:380:10: danger: argument 1 ('result + (sizetype)respos') from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-476): [#def865]
ddcutil-2.2.1/src/util/edid.c:385:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/util/edid.c:370:19: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/edid.c:373:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/edid.c:385:10: branch_false: ...to here
ddcutil-2.2.1/src/util/edid.c:385:4: danger: 'result + (sizetype)respos' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def866]
ddcutil-2.2.1/src/util/edid.c:406:17: warning[-Wanalyzer-malloc-leak]: leak of 'base_asciify(s)'
ddcutil-2.2.1/src/util/edid.c:401:8: enter_function: entry to 'base_asciify_t'
ddcutil-2.2.1/src/util/edid.c:405:21: call_function: calling 'base_asciify' from 'base_asciify_t'
ddcutil-2.2.1/src/util/edid.c:405:21: return_function: returning to 'base_asciify_t' from 'base_asciify'
ddcutil-2.2.1/src/util/edid.c:406:17: danger: 'base_asciify(s)' leaks here; was allocated at [(4)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def867]
ddcutil-2.2.1/src/util/error_info.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: GCC_ANALYZER_WARNING (CWE-476): [#def868]
ddcutil-2.2.1/src/util/error_info.c:294:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new'
ddcutil-2.2.1/src/util/error_info.c:555:14: enter_function: entry to 'errinfo_new_with_causes_gptr'
ddcutil-2.2.1/src/util/error_info.c:567:26: call_function: calling 'errinfo_newv' from 'errinfo_new_with_causes_gptr'
ddcutil-2.2.1/src/util/error_info.c:567:26: return_function: returning to 'errinfo_new_with_causes_gptr' from 'errinfo_newv'
ddcutil-2.2.1/src/util/error_info.c:569:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/error_info.c:570:49: branch_true: ...to here
ddcutil-2.2.1/src/util/error_info.c:570:10: call_function: calling 'errinfo_copy' from 'errinfo_new_with_causes_gptr'
Error: CPPCHECK_WARNING (CWE-476): [#def869]
ddcutil-2.2.1/src/util/error_info.c:295: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: CPPCHECK_WARNING (CWE-476): [#def870]
ddcutil-2.2.1/src/util/error_info.c:300: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: CPPCHECK_WARNING (CWE-476): [#def871]
ddcutil-2.2.1/src/util/error_info.c:301: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: CPPCHECK_WARNING (CWE-476): [#def872]
ddcutil-2.2.1/src/util/error_info.c:302: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: CPPCHECK_WARNING (CWE-476): [#def873]
ddcutil-2.2.1/src/util/error_info.c:308: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: CPPCHECK_WARNING (CWE-476): [#def874]
ddcutil-2.2.1/src/util/error_info.c:309: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new
Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
ddcutil-2.2.1/src/util/error_info.c:329:4: warning[-Wanalyzer-malloc-leak]: leak of 'errinfo_newv(status_code, func, detail, & ap)'
ddcutil-2.2.1/src/util/error_info.c:524:1: enter_function: entry to 'errinfo_new_with_causes'
ddcutil-2.2.1/src/util/error_info.c:534:26: call_function: calling 'errinfo_newv' from 'errinfo_new_with_causes'
ddcutil-2.2.1/src/util/error_info.c:534:26: return_function: returning to 'errinfo_new_with_causes' from 'errinfo_newv'
ddcutil-2.2.1/src/util/error_info.c:536:22: branch_true: following 'true' branch (when 'ndx < cause_ct')...
ddcutil-2.2.1/src/util/error_info.c:537:39: branch_true: ...to here
ddcutil-2.2.1/src/util/error_info.c:537:7: call_function: calling 'errinfo_add_cause' from 'errinfo_new_with_causes'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
ddcutil-2.2.1/src/util/error_info.c:330:4: warning[-Wanalyzer-malloc-leak]: leak of 'errinfo_newv(status_code, func, detail, & ap)'
ddcutil-2.2.1/src/util/error_info.c:524:1: enter_function: entry to 'errinfo_new_with_causes'
ddcutil-2.2.1/src/util/error_info.c:534:26: call_function: calling 'errinfo_newv' from 'errinfo_new_with_causes'
ddcutil-2.2.1/src/util/error_info.c:534:26: return_function: returning to 'errinfo_new_with_causes' from 'errinfo_newv'
ddcutil-2.2.1/src/util/error_info.c:536:22: branch_true: following 'true' branch (when 'ndx < cause_ct')...
ddcutil-2.2.1/src/util/error_info.c:537:39: branch_true: ...to here
ddcutil-2.2.1/src/util/error_info.c:537:7: call_function: calling 'errinfo_add_cause' from 'errinfo_new_with_causes'
Error: CPPCHECK_WARNING (CWE-476): [#def877]
ddcutil-2.2.1/src/util/error_info.c:350: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_causes
Error: CPPCHECK_WARNING (CWE-476): [#def878]
ddcutil-2.2.1/src/util/error_info.c:399: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: erec
Error: CPPCHECK_WARNING (CWE-476): [#def879]
ddcutil-2.2.1/src/util/error_info.c:400: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: erec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def880]
ddcutil-2.2.1/src/util/error_info.c:400:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'erec'
ddcutil-2.2.1/src/util/error_info.c:555:14: enter_function: entry to 'errinfo_new_with_causes_gptr'
ddcutil-2.2.1/src/util/error_info.c:567:26: call_function: calling 'errinfo_newv' from 'errinfo_new_with_causes_gptr'
Error: CPPCHECK_WARNING (CWE-476): [#def881]
ddcutil-2.2.1/src/util/error_info.c:401: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: erec
Error: CPPCHECK_WARNING (CWE-476): [#def882]
ddcutil-2.2.1/src/util/error_info.c:402: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: erec
Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
ddcutil-2.2.1/src/util/error_info.c:405:22: warning[-Wanalyzer-malloc-leak]: leak of 'erec'
ddcutil-2.2.1/src/util/error_info.c:555:14: enter_function: entry to 'errinfo_new_with_causes_gptr'
ddcutil-2.2.1/src/util/error_info.c:567:26: call_function: calling 'errinfo_newv' from 'errinfo_new_with_causes_gptr'
Error: GCC_ANALYZER_WARNING (CWE-404): [#def884]
ddcutil-2.2.1/src/util/error_info.c:405:22: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/util/error_info.c:555:14: enter_function: entry to 'errinfo_new_with_causes_gptr'
ddcutil-2.2.1/src/util/error_info.c:566:4: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/util/error_info.c:567:26: call_function: calling 'errinfo_newv' from 'errinfo_new_with_causes_gptr'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def885]
ddcutil-2.2.1/src/util/file_util.c:96:37: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:88:16: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:89:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:96:37: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:96:37: danger: 'fopen(fn, "r")' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
ddcutil-2.2.1/src/util/file_util.c:96:37: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:88:16: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:89:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:96:37: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:96:37: danger: 'fopen(fn, "r")' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def887]
ddcutil-2.2.1/src/util/file_util.c:224:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:204:4: branch_false: following 'false' branch (when 'fn' is non-NULL)...
ddcutil-2.2.1/src/util/file_util.c:215:15: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:215:15: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:215:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_true: following 'true' branch (when 'est_size <= 0')...
ddcutil-2.2.1/src/util/file_util.c:224:17: branch_true: ...to here
ddcutil-2.2.1/src/util/file_util.c:224:17: danger: 'fopen(fn, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
ddcutil-2.2.1/src/util/file_util.c:224:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:204:4: branch_false: following 'false' branch (when 'fn' is non-NULL)...
ddcutil-2.2.1/src/util/file_util.c:215:15: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:215:15: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:215:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_true: following 'true' branch (when 'est_size <= 0')...
ddcutil-2.2.1/src/util/file_util.c:224:17: branch_true: ...to here
ddcutil-2.2.1/src/util/file_util.c:224:17: danger: 'fopen(fn, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def889]
ddcutil-2.2.1/src/util/file_util.c:226:17: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:204:4: branch_false: following 'false' branch (when 'fn' is non-NULL)...
ddcutil-2.2.1/src/util/file_util.c:215:15: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:215:15: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:215:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: following 'false' branch (when 'est_size > 0')...
ddcutil-2.2.1/src/util/file_util.c:226:17: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:226:17: danger: 'fopen(fn, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def890]
ddcutil-2.2.1/src/util/file_util.c:226:17: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:204:4: branch_false: following 'false' branch (when 'fn' is non-NULL)...
ddcutil-2.2.1/src/util/file_util.c:215:15: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:215:15: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:215:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: following 'false' branch (when 'est_size > 0')...
ddcutil-2.2.1/src/util/file_util.c:226:17: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:226:17: danger: 'fopen(fn, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def891]
ddcutil-2.2.1/src/util/file_util.c:232:7: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:204:4: branch_false: following 'false' branch (when 'fn' is non-NULL)...
ddcutil-2.2.1/src/util/file_util.c:215:15: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:215:15: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:215:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:230:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/file_util.c:231:7: branch_true: ...to here
ddcutil-2.2.1/src/util/file_util.c:231:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:232:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:232:7: danger: 'fopen(fn, "r")' leaks here; was opened at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def892]
ddcutil-2.2.1/src/util/file_util.c:232:7: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(fn, "r")'
ddcutil-2.2.1/src/util/file_util.c:204:4: branch_false: following 'false' branch (when 'fn' is non-NULL)...
ddcutil-2.2.1/src/util/file_util.c:215:15: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:215:15: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:215:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:223:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:230:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/file_util.c:231:7: branch_true: ...to here
ddcutil-2.2.1/src/util/file_util.c:231:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:232:7: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:232:7: danger: 'fopen(fn, "r")' leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def893]
ddcutil-2.2.1/src/util/file_util.c:270:6: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:270:6: danger: 'fopen(filename, "rb")' leaks here; was opened at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def894]
ddcutil-2.2.1/src/util/file_util.c:270:6: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:270:6: danger: 'fopen(filename, "rb")' leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def895]
ddcutil-2.2.1/src/util/file_util.c:271:15: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:271:15: danger: 'fopen(filename, "rb")' leaks here; was opened at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def896]
ddcutil-2.2.1/src/util/file_util.c:271:15: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:271:15: danger: 'fopen(filename, "rb")' leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def897]
ddcutil-2.2.1/src/util/file_util.c:279:6: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:272:9: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:279:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:279:6: danger: 'fopen(filename, "rb")' leaks here; was opened at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def898]
ddcutil-2.2.1/src/util/file_util.c:279:6: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:272:9: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:279:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:279:6: danger: 'fopen(filename, "rb")' leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def899]
ddcutil-2.2.1/src/util/file_util.c:280:23: warning[-Wanalyzer-file-leak]: leak of FILE 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_resource: opened here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:272:9: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:279:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:280:23: danger: 'fopen(filename, "rb")' leaks here; was opened at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
ddcutil-2.2.1/src/util/file_util.c:280:23: warning[-Wanalyzer-malloc-leak]: leak of 'fopen(filename, "rb")'
ddcutil-2.2.1/src/util/file_util.c:262:16: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:263:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:270:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:272:9: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/file_util.c:279:6: branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:280:23: danger: 'fopen(filename, "rb")' leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def901]
ddcutil-2.2.1/src/util/file_util.c:411:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'result' where non-null expected
ddcutil-2.2.1/src/util/file_util.c:404:20: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/file_util.c:411:17: danger: argument 2 ('result') from [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def902]
ddcutil-2.2.1/src/util/file_util.c:496:22: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
ddcutil-2.2.1/src/util/file_util.c:491:8: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:492:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:496:22: danger: 'opendir(dirname)' leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def903]
ddcutil-2.2.1/src/util/file_util.c:525:22: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
ddcutil-2.2.1/src/util/file_util.c:520:8: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:521:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:525:22: danger: 'opendir(dirname)' leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def904]
ddcutil-2.2.1/src/util/file_util.c:568:22: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
ddcutil-2.2.1/src/util/file_util.c:563:8: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:564:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:568:22: danger: 'opendir(dirname)' leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def905]
ddcutil-2.2.1/src/util/file_util.c:615:22: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
ddcutil-2.2.1/src/util/file_util.c:610:8: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:611:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:615:22: danger: 'opendir(dirname)' leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def906]
ddcutil-2.2.1/src/util/file_util.c:676:22: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
ddcutil-2.2.1/src/util/file_util.c:671:8: acquire_memory: allocated here
ddcutil-2.2.1/src/util/file_util.c:672:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/file_util.c:676:22: danger: 'opendir(dirname)' leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def907]
ddcutil-2.2.1/src/util/glib_string_util.c:42: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pieces
Error: GCC_ANALYZER_WARNING (CWE-476): [#def908]
ddcutil-2.2.1/src/util/glib_string_util.c:42:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pieces'
ddcutil-2.2.1/src/util/glib_string_util.c:35:7: branch_true: following 'true' branch (when 'strings' is non-NULL)...
ddcutil-2.2.1/src/util/glib_string_util.c:36:16: branch_true: ...to here
ddcutil-2.2.1/src/util/glib_string_util.c:39:24: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/glib_string_util.c:41:19: branch_true: following 'true' branch (when 'ndx < ct')...
ddcutil-2.2.1/src/util/glib_string_util.c:42:24: branch_true: ...to here
ddcutil-2.2.1/src/util/glib_string_util.c:42:10: danger: 'pieces + (long unsigned int)ndx * 8' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def909]
ddcutil-2.2.1/src/util/glib_string_util.c:46:19: warning[-Wanalyzer-malloc-leak]: leak of 'pieces'
ddcutil-2.2.1/src/util/glib_string_util.c:35:7: branch_true: following 'true' branch (when 'strings' is non-NULL)...
ddcutil-2.2.1/src/util/glib_string_util.c:36:16: branch_true: ...to here
ddcutil-2.2.1/src/util/glib_string_util.c:39:24: acquire_memory: allocated here
ddcutil-2.2.1/src/util/glib_string_util.c:41:19: branch_false: following 'false' branch (when 'ndx >= ct')...
ddcutil-2.2.1/src/util/glib_string_util.c:46:19: branch_false: ...to here
ddcutil-2.2.1/src/util/glib_string_util.c:46:19: danger: 'pieces' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def910]
ddcutil-2.2.1/src/util/libdrm_aux_util.c:174:28: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(devname, 2)'
ddcutil-2.2.1/src/util/libdrm_aux_util.c:163:15: acquire_resource: opened here
ddcutil-2.2.1/src/util/libdrm_aux_util.c:164:8: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/libdrm_aux_util.c:169:13: branch_false: ...to here
ddcutil-2.2.1/src/util/libdrm_aux_util.c:174:28: danger: 'open(devname, 2)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-401): [#def911]
ddcutil-2.2.1/src/util/libdrm_util.c:225: error[memleakOnRealloc]: Common realloc mistake: 'buf' nulled but not freed upon failure
Error: GCC_ANALYZER_WARNING (CWE-476): [#def912]
ddcutil-2.2.1/src/util/libdrm_util.c:229:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/util/libdrm_util.c:715:6: enter_function: entry to 'summarize_drm_modeProperty'
ddcutil-2.2.1/src/util/libdrm_util.c:716:4: call_function: calling 'interpret_property_flags' from 'summarize_drm_modeProperty'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def913]
ddcutil-2.2.1/src/util/libdrm_util.c:239:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/util/libdrm_util.c:715:6: enter_function: entry to 'summarize_drm_modeProperty'
ddcutil-2.2.1/src/util/libdrm_util.c:716:4: call_function: calling 'interpret_property_flags' from 'summarize_drm_modeProperty'
Error: GCC_ANALYZER_WARNING (CWE-775): [#def914]
ddcutil-2.2.1/src/util/linux_util.c:54:7: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(filename, 0)'
ddcutil-2.2.1/src/util/linux_util.c:53:13: acquire_resource: opened here
ddcutil-2.2.1/src/util/linux_util.c:54:7: danger: 'open(filename, 0)' leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING: [#def915]
ddcutil-2.2.1/src/util/linux_util.c:56:11: warning[-Wanalyzer-fd-use-without-check]: 'read' on possibly invalid file descriptor 'open(filename, 0)'
ddcutil-2.2.1/src/util/linux_util.c:53:13: acquire_resource: opened here
ddcutil-2.2.1/src/util/linux_util.c:54:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/linux_util.c:56:11: branch_true: ...to here
ddcutil-2.2.1/src/util/linux_util.c:56:11: danger: 'open(filename, 0)' could be invalid: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-775): [#def916]
ddcutil-2.2.1/src/util/linux_util.c:61:1: warning[-Wanalyzer-fd-leak]: leak of file descriptor 'open(filename, 0)'
ddcutil-2.2.1/src/util/linux_util.c:53:13: acquire_resource: opened here
ddcutil-2.2.1/src/util/linux_util.c:54:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/linux_util.c:56:11: branch_true: ...to here
ddcutil-2.2.1/src/util/linux_util.c:61:1: danger: 'open(filename, 0)' leaks here; was opened at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def917]
ddcutil-2.2.1/src/util/linux_util.c:155:4: warning[-Wanalyzer-malloc-leak]: leak of 'module_name1'
ddcutil-2.2.1/src/util/linux_util.c:151:4: branch_false: following 'false' branch (when 'rc == 0')...
ddcutil-2.2.1/src/util/linux_util.c:153:26: branch_false: ...to here
ddcutil-2.2.1/src/util/linux_util.c:153:26: acquire_memory: allocated here
ddcutil-2.2.1/src/util/linux_util.c:155:4: danger: 'module_name1' leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def918]
ddcutil-2.2.1/src/util/linux_util.c:155:4: warning[-Wanalyzer-malloc-leak]: leak of 'module_name2'
ddcutil-2.2.1/src/util/linux_util.c:151:4: branch_false: following 'false' branch (when 'rc == 0')...
ddcutil-2.2.1/src/util/linux_util.c:153:26: branch_false: ...to here
ddcutil-2.2.1/src/util/linux_util.c:154:26: acquire_memory: allocated here
ddcutil-2.2.1/src/util/linux_util.c:155:4: danger: 'module_name2' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def919]
ddcutil-2.2.1/src/util/linux_util.c:156:4: warning[-Wanalyzer-malloc-leak]: leak of 'module_name2'
ddcutil-2.2.1/src/util/linux_util.c:151:4: branch_false: following 'false' branch (when 'rc == 0')...
ddcutil-2.2.1/src/util/linux_util.c:153:26: branch_false: ...to here
ddcutil-2.2.1/src/util/linux_util.c:154:26: acquire_memory: allocated here
ddcutil-2.2.1/src/util/linux_util.c:156:4: danger: 'module_name2' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def920]
ddcutil-2.2.1/src/util/multi_level_map.c:60: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mlm
Error: GCC_ANALYZER_WARNING (CWE-476): [#def921]
ddcutil-2.2.1/src/util/multi_level_map.c:60:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'mlm'
ddcutil-2.2.1/src/util/multi_level_map.c:54:19: enter_function: entry to 'mlm_create'
ddcutil-2.2.1/src/util/multi_level_map.c:59:29: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/multi_level_map.c:60:4: danger: 'mlm' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def922]
ddcutil-2.2.1/src/util/multi_level_map.c:61: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mlm
Error: CPPCHECK_WARNING (CWE-476): [#def923]
ddcutil-2.2.1/src/util/multi_level_map.c:65: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: mlm
Error: GCC_ANALYZER_WARNING (CWE-401): [#def924]
ddcutil-2.2.1/src/util/multi_level_map.c:65:16: warning[-Wanalyzer-malloc-leak]: leak of 'mlm'
ddcutil-2.2.1/src/util/multi_level_map.c:54:19: enter_function: entry to 'mlm_create'
ddcutil-2.2.1/src/util/multi_level_map.c:59:29: acquire_memory: allocated here
ddcutil-2.2.1/src/util/multi_level_map.c:65:16: danger: 'mlm' leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def925]
ddcutil-2.2.1/src/util/multi_level_map.c:83: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_node
Error: GCC_ANALYZER_WARNING (CWE-476): [#def926]
ddcutil-2.2.1/src/util/multi_level_map.c:83:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_node'
ddcutil-2.2.1/src/util/multi_level_map.c:82:26: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/multi_level_map.c:83:4: danger: 'new_node' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def927]
ddcutil-2.2.1/src/util/multi_level_map.c:84: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_node
Error: CPPCHECK_WARNING (CWE-476): [#def928]
ddcutil-2.2.1/src/util/multi_level_map.c:85: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_node
Error: GCC_ANALYZER_WARNING (CWE-401): [#def929]
ddcutil-2.2.1/src/util/multi_level_map.c:89:7: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/util/multi_level_map.c:82:26: acquire_memory: allocated here
ddcutil-2.2.1/src/util/multi_level_map.c:87:7: branch_true: following 'true' branch (when 'parent' is NULL)...
ddcutil-2.2.1/src/util/multi_level_map.c:88:7: branch_true: ...to here
ddcutil-2.2.1/src/util/multi_level_map.c:89:7: danger: 'new_node' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def930]
ddcutil-2.2.1/src/util/multi_level_map.c:95:29: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/util/multi_level_map.c:82:26: acquire_memory: allocated here
ddcutil-2.2.1/src/util/multi_level_map.c:87:7: branch_false: following 'false' branch (when 'parent' is non-NULL)...
ddcutil-2.2.1/src/util/multi_level_map.c:92:25: branch_false: ...to here
ddcutil-2.2.1/src/util/multi_level_map.c:93:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/multi_level_map.c:94:47: branch_true: ...to here
ddcutil-2.2.1/src/util/multi_level_map.c:95:29: danger: 'new_node' leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def931]
ddcutil-2.2.1/src/util/multi_level_map.c:97:7: warning[-Wanalyzer-malloc-leak]: leak of 'new_node'
ddcutil-2.2.1/src/util/multi_level_map.c:82:26: acquire_memory: allocated here
ddcutil-2.2.1/src/util/multi_level_map.c:87:7: branch_false: following 'false' branch (when 'parent' is non-NULL)...
ddcutil-2.2.1/src/util/multi_level_map.c:92:25: branch_false: ...to here
ddcutil-2.2.1/src/util/multi_level_map.c:93:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/multi_level_map.c:97:7: branch_false: ...to here
ddcutil-2.2.1/src/util/multi_level_map.c:97:7: danger: 'new_node' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def932]
ddcutil-2.2.1/src/util/regex_util.c:164:16: warning[-Wanalyzer-malloc-leak]: leak of 're'
ddcutil-2.2.1/src/util/regex_util.c:160:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/regex_util.c:161:12: branch_true: ...to here
ddcutil-2.2.1/src/util/regex_util.c:161:12: acquire_memory: allocated here
ddcutil-2.2.1/src/util/regex_util.c:164:16: danger: 're' leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def933]
ddcutil-2.2.1/src/util/regex_util.c:196:16: warning[-Wanalyzer-malloc-leak]: leak of 're'
ddcutil-2.2.1/src/util/regex_util.c:192:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/regex_util.c:193:12: branch_true: ...to here
ddcutil-2.2.1/src/util/regex_util.c:193:12: acquire_memory: allocated here
ddcutil-2.2.1/src/util/regex_util.c:196:16: danger: 're' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
ddcutil-2.2.1/src/util/report_util.c:813:16: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/util/report_util.c:811:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/report_util.c:813:16: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def935]
ddcutil-2.2.1/src/util/report_util.c:815: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-476): [#def936]
ddcutil-2.2.1/src/util/report_util.c:901:23: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/util/report_util.c:894:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/report_util.c:895:4: branch_false: ...to here
ddcutil-2.2.1/src/util/report_util.c:898:16: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/report_util.c:899:61: branch_true: ...to here
ddcutil-2.2.1/src/util/report_util.c:901:23: danger: dereference of NULL 'find_flag_info_in_dictionary(*<unknown>, pdict)'
Error: CPPCHECK_WARNING (CWE-476): [#def937]
ddcutil-2.2.1/src/util/simple_ini_file.c:269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ini_file
Error: CPPCHECK_WARNING (CWE-476): [#def938]
ddcutil-2.2.1/src/util/simple_ini_file.c:270: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ini_file
Error: GCC_ANALYZER_WARNING (CWE-476): [#def939]
ddcutil-2.2.1/src/util/simple_ini_file.c:270:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'ini_file'
ddcutil-2.2.1/src/util/simple_ini_file.c:143:5: enter_function: entry to 'ini_file_load'
ddcutil-2.2.1/src/util/simple_ini_file.c:149:4: branch_false: following 'false' branch (when 'ini_file_name' is non-NULL)...
ddcutil-2.2.1/src/util/simple_ini_file.c:152:4: branch_false: ...to here
ddcutil-2.2.1/src/util/simple_ini_file.c:160:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/simple_ini_file.c:169:23: branch_false: ...to here
ddcutil-2.2.1/src/util/simple_ini_file.c:238:10: branch_false: following 'false' branch (when 'cur_segment' is NULL)...
ddcutil-2.2.1/src/util/simple_ini_file.c:240:10: branch_false: ...to here
ddcutil-2.2.1/src/util/simple_ini_file.c:240:10: branch_false: following 'false' branch (when 'error_ct <= 0')...
ddcutil-2.2.1/src/util/simple_ini_file.c:265:4: branch_false: ...to here
ddcutil-2.2.1/src/util/simple_ini_file.c:265:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/simple_ini_file.c:267:7: branch_false: ...to here
ddcutil-2.2.1/src/util/simple_ini_file.c:267:7: branch_true: following 'true' branch (when 'result == 0')...
ddcutil-2.2.1/src/util/simple_ini_file.c:268:36: branch_true: ...to here
ddcutil-2.2.1/src/util/simple_ini_file.c:268:36: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/simple_ini_file.c:270:30: call_function: inlined call to 'g_strdup_inline' from 'ini_file_load'
ddcutil-2.2.1/src/util/simple_ini_file.c:270:7: danger: 'ini_file' could be NULL: unchecked value from [(14)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/13)
Error: CPPCHECK_WARNING (CWE-476): [#def940]
ddcutil-2.2.1/src/util/simple_ini_file.c:271: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ini_file
Error: CPPCHECK_WARNING (CWE-476): [#def941]
ddcutil-2.2.1/src/util/string_util.c:346: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def942]
ddcutil-2.2.1/src/util/string_util.c:347: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def943]
ddcutil-2.2.1/src/util/string_util.c:396: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def944]
ddcutil-2.2.1/src/util/string_util.c:396:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/util/string_util.c:383:8: branch_false: following 'false' branch (when 'sepstr' is NULL)...
ddcutil-2.2.1/src/util/string_util.c:385:17: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:395:20: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:396:4: danger: 'result' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-682): [#def945]
ddcutil-2.2.1/src/util/string_util.c:407: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def946]
ddcutil-2.2.1/src/util/string_util.c:418:7: warning[-Wanalyzer-malloc-leak]: leak of 'buf'
ddcutil-2.2.1/src/util/string_util.c:415:17: acquire_memory: allocated here
ddcutil-2.2.1/src/util/string_util.c:417:21: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:418:78: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:418:7: branch_false: following 'false' branch (when 'next <= 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:418:7: danger: 'buf' leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def947]
ddcutil-2.2.1/src/util/string_util.c:481:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'workstruct'
ddcutil-2.2.1/src/util/string_util.c:461:30: enter_function: entry to 'strsplit'
ddcutil-2.2.1/src/util/string_util.c:468:24: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:470:7: branch_true: following 'true' branch (when 'str_to_split' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:471:33: call_function: inlined call to 'g_strdup_inline' from 'strsplit'
ddcutil-2.2.1/src/util/string_util.c:477:14: branch_true: following 'true' branch (when 'token' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:480:14: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:480:13: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:481:24: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:481:37: call_function: inlined call to 'g_strdup_inline' from 'strsplit'
ddcutil-2.2.1/src/util/string_util.c:481:13: danger: 'workstruct + (long unsigned int)piecect * 8' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def948]
ddcutil-2.2.1/src/util/string_util.c:491: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: CPPCHECK_WARNING (CWE-476): [#def949]
ddcutil-2.2.1/src/util/string_util.c:491: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: workstruct
Error: GCC_ANALYZER_WARNING (CWE-688): [#def950]
ddcutil-2.2.1/src/util/string_util.c:538:47: warning[-Wanalyzer-null-argument]: use of NULL 'str_to_split' where non-null expected
ddcutil-2.2.1/src/util/string_util.c:525:1: enter_function: entry to 'strsplit_maxlength'
ddcutil-2.2.1/src/util/string_util.c:538:47: danger: argument 1 ('str_to_split') NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def951]
ddcutil-2.2.1/src/util/string_util.c:565:7: warning[-Wanalyzer-malloc-leak]: leak of 'piece'
ddcutil-2.2.1/src/util/string_util.c:541:11: branch_true: following 'true' branch (when 'start < str_to_split2_end')...
ddcutil-2.2.1/src/util/string_util.c:544:20: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:564:22: acquire_memory: allocated here
ddcutil-2.2.1/src/util/string_util.c:565:7: danger: 'piece' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def952]
ddcutil-2.2.1/src/util/string_util.c:572:4: warning[-Wanalyzer-malloc-leak]: leak of 'g_ptr_array_to_ntsa(g_ptr_array_sized_new(20), 1)'
ddcutil-2.2.1/src/util/string_util.c:525:1: enter_function: entry to 'strsplit_maxlength'
ddcutil-2.2.1/src/util/string_util.c:541:11: branch_false: following 'false' branch (when 'start >= str_to_split2_end')...
ddcutil-2.2.1/src/util/string_util.c:571:42: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:571:42: call_function: calling 'g_ptr_array_to_ntsa' from 'strsplit_maxlength'
ddcutil-2.2.1/src/util/string_util.c:571:42: return_function: returning to 'strsplit_maxlength' from 'g_ptr_array_to_ntsa'
ddcutil-2.2.1/src/util/string_util.c:572:4: danger: 'g_ptr_array_to_ntsa(g_ptr_array_sized_new(20), 1)' leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def953]
ddcutil-2.2.1/src/util/string_util.c:573:4: warning[-Wanalyzer-malloc-leak]: leak of 'g_ptr_array_to_ntsa(g_ptr_array_sized_new(20), 1)'
ddcutil-2.2.1/src/util/string_util.c:525:1: enter_function: entry to 'strsplit_maxlength'
ddcutil-2.2.1/src/util/string_util.c:541:11: branch_false: following 'false' branch (when 'start >= str_to_split2_end')...
ddcutil-2.2.1/src/util/string_util.c:571:42: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:571:42: call_function: calling 'g_ptr_array_to_ntsa' from 'strsplit_maxlength'
ddcutil-2.2.1/src/util/string_util.c:571:42: return_function: returning to 'strsplit_maxlength' from 'g_ptr_array_to_ntsa'
ddcutil-2.2.1/src/util/string_util.c:573:4: danger: 'g_ptr_array_to_ntsa(g_ptr_array_sized_new(20), 1)' leaks here; was allocated at [(8)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def954]
ddcutil-2.2.1/src/util/string_util.c:654:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'to'
ddcutil-2.2.1/src/util/string_util.c:641:30: enter_function: entry to 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:646:4: branch_false: following 'false' branch (when 'a1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: following 'false' branch (when 'a2' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:648:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:648:13: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:13: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:648:31: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:31: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:649:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:652:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:653:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:653:10: branch_true: following 'true' branch (when 'dup != 0')...
ddcutil-2.2.1/src/util/string_util.c:654:16: call_function: inlined call to 'g_strdup_inline' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:654:10: danger: 'to' could be NULL: unchecked value from [(16)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def955]
ddcutil-2.2.1/src/util/string_util.c:656:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'to'
ddcutil-2.2.1/src/util/string_util.c:641:30: enter_function: entry to 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:646:4: branch_false: following 'false' branch (when 'a1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: following 'false' branch (when 'a2' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:648:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:648:13: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:13: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:648:31: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:31: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:649:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:652:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:653:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:653:10: branch_false: following 'false' branch (when 'dup == 0')...
ddcutil-2.2.1/src/util/string_util.c:656:10: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:656:10: danger: 'to' could be NULL: unchecked value from [(16)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def956]
ddcutil-2.2.1/src/util/string_util.c:663:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'to'
ddcutil-2.2.1/src/util/string_util.c:641:30: enter_function: entry to 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:646:4: branch_false: following 'false' branch (when 'a1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: following 'false' branch (when 'a2' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:648:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:648:13: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:13: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:648:31: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:31: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:649:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:652:11: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:661:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:662:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:662:10: branch_true: following 'true' branch (when 'dup != 0')...
ddcutil-2.2.1/src/util/string_util.c:663:16: call_function: inlined call to 'g_strdup_inline' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:663:10: danger: 'to' could be NULL: unchecked value from [(16)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def957]
ddcutil-2.2.1/src/util/string_util.c:665:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'to'
ddcutil-2.2.1/src/util/string_util.c:641:30: enter_function: entry to 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:646:4: branch_false: following 'false' branch (when 'a1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:647:4: branch_false: following 'false' branch (when 'a2' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:648:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:648:13: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:13: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:648:31: call_function: calling 'ntsa_length' from 'ntsa_join'
ddcutil-2.2.1/src/util/string_util.c:648:31: return_function: returning to 'ntsa_join' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:649:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:652:11: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:661:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:662:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:662:10: branch_false: following 'false' branch (when 'dup == 0')...
ddcutil-2.2.1/src/util/string_util.c:665:10: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:665:10: danger: 'to' could be NULL: unchecked value from [(16)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/15)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def958]
ddcutil-2.2.1/src/util/string_util.c:692:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'to'
ddcutil-2.2.1/src/util/string_util.c:683:30: enter_function: entry to 'ntsa_copy'
ddcutil-2.2.1/src/util/string_util.c:685:4: branch_false: following 'false' branch (when 'a1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:686:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:686:13: call_function: calling 'ntsa_length' from 'ntsa_copy'
ddcutil-2.2.1/src/util/string_util.c:686:13: return_function: returning to 'ntsa_copy' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:687:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:690:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:691:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:691:10: branch_true: following 'true' branch (when 'dup != 0')...
ddcutil-2.2.1/src/util/string_util.c:692:16: call_function: inlined call to 'g_strdup_inline' from 'ntsa_copy'
ddcutil-2.2.1/src/util/string_util.c:692:10: danger: 'to' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/8)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def959]
ddcutil-2.2.1/src/util/string_util.c:694:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'to'
ddcutil-2.2.1/src/util/string_util.c:683:30: enter_function: entry to 'ntsa_copy'
ddcutil-2.2.1/src/util/string_util.c:685:4: branch_false: following 'false' branch (when 'a1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:686:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:686:13: call_function: calling 'ntsa_length' from 'ntsa_copy'
ddcutil-2.2.1/src/util/string_util.c:686:13: return_function: returning to 'ntsa_copy' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:687:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:690:11: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:691:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:691:10: branch_false: following 'false' branch (when 'dup == 0')...
ddcutil-2.2.1/src/util/string_util.c:694:10: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:694:10: danger: 'to' could be NULL: unchecked value from [(9)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/8)
Error: CPPCHECK_WARNING (CWE-682): [#def960]
ddcutil-2.2.1/src/util/string_util.c:711: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def961]
ddcutil-2.2.1/src/util/string_util.c:711: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: to++
Error: GCC_ANALYZER_WARNING (CWE-476): [#def962]
ddcutil-2.2.1/src/util/string_util.c:711:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_array'
ddcutil-2.2.1/src/util/string_util.c:702:31: enter_function: entry to 'ntsa_prepend'
ddcutil-2.2.1/src/util/string_util.c:707:17: call_function: calling 'ntsa_length' from 'ntsa_prepend'
ddcutil-2.2.1/src/util/string_util.c:707:17: return_function: returning to 'ntsa_prepend' from 'ntsa_length'
ddcutil-2.2.1/src/util/string_util.c:709:45: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:711:4: danger: 'new_array' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/6)
Error: CPPCHECK_WARNING (CWE-476): [#def963]
ddcutil-2.2.1/src/util/string_util.c:726: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: new_array
Error: CPPCHECK_WARNING (CWE-476): [#def964]
ddcutil-2.2.1/src/util/string_util.c:826: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ntsa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def965]
ddcutil-2.2.1/src/util/string_util.c:826:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'ntsa'
ddcutil-2.2.1/src/util/string_util.c:818:1: enter_function: entry to 'g_ptr_array_to_ntsa'
ddcutil-2.2.1/src/util/string_util.c:822:4: branch_false: following 'false' branch (when 'gparray' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:823:47: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:823:40: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:824:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:825:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:825:10: branch_true: following 'true' branch (when 'duplicate != 0')...
ddcutil-2.2.1/src/util/string_util.c:826:22: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:826:10: danger: 'ntsa + (long unsigned int)ndx * 8' could be NULL: unchecked value from [(4)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/3)
Error: CPPCHECK_WARNING (CWE-476): [#def966]
ddcutil-2.2.1/src/util/string_util.c:828: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ntsa
Error: GCC_ANALYZER_WARNING (CWE-476): [#def967]
ddcutil-2.2.1/src/util/string_util.c:828:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'ntsa'
ddcutil-2.2.1/src/util/string_util.c:822:4: branch_false: following 'false' branch (when 'gparray' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:823:47: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:823:40: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:824:22: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:825:10: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:825:10: branch_false: following 'false' branch (when 'duplicate == 0')...
ddcutil-2.2.1/src/util/string_util.c:828:22: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:828:10: danger: 'ntsa + (long unsigned int)ndx * 8' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def968]
ddcutil-2.2.1/src/util/string_util.c:912: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-688): [#def969]
ddcutil-2.2.1/src/util/string_util.c:912:5: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'result' where non-null expected
ddcutil-2.2.1/src/util/string_util.c:909:5: branch_false: following 'false' branch (when 's1' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:910:5: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:910:5: branch_false: following 'false' branch (when 's2' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:911:28: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:911:21: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:912:5: danger: argument 1 ('result') from [(5)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/4) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-682): [#def970]
ddcutil-2.2.1/src/util/string_util.c:913: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def971]
ddcutil-2.2.1/src/util/string_util.c:931: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: strbuf
Error: CPPCHECK_WARNING (CWE-682): [#def972]
ddcutil-2.2.1/src/util/string_util.c:932: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
Error: CPPCHECK_WARNING (CWE-476): [#def973]
ddcutil-2.2.1/src/util/string_util.c:1037: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: work
Error: GCC_ANALYZER_WARNING (CWE-476): [#def974]
ddcutil-2.2.1/src/util/string_util.c:1037:26: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'work'
ddcutil-2.2.1/src/util/string_util.c:1027:7: branch_true: following 'true' branch (when 'sval' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:1028:12: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1028:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:1031:14: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1031:13: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1036:20: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1036:20: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:1037:26: danger: 'work' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def975]
ddcutil-2.2.1/src/util/string_util.c:1193:13: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/util/string_util.c:1186:6: enter_function: entry to 'any_one_byte_hex_string_to_byte_in_buf'
ddcutil-2.2.1/src/util/string_util.c:1189:17: call_function: calling 'strdup_uc' from 'any_one_byte_hex_string_to_byte_in_buf'
ddcutil-2.2.1/src/util/string_util.c:1189:17: return_function: returning to 'any_one_byte_hex_string_to_byte_in_buf' from 'strdup_uc'
ddcutil-2.2.1/src/util/string_util.c:1191:8: call_function: calling 'str_starts_with' from 'any_one_byte_hex_string_to_byte_in_buf'
ddcutil-2.2.1/src/util/string_util.c:1191:8: return_function: returning to 'any_one_byte_hex_string_to_byte_in_buf' from 'str_starts_with'
ddcutil-2.2.1/src/util/string_util.c:1191:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1193:13: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1193:13: danger: dereference of NULL 'strdup_uc(s)'
Error: GCC_ANALYZER_WARNING (CWE-476): [#def976]
ddcutil-2.2.1/src/util/string_util.c:1254:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'b'
ddcutil-2.2.1/src/util/string_util.c:1239:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1241:9: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1243:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:1248:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:1253:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/string_util.c:1254:15: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1254:10: danger: 'b' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def977]
ddcutil-2.2.1/src/util/string_util.c:1409:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'buffer'
ddcutil-2.2.1/src/util/string_util.c:1393:7: branch_true: following 'true' branch (when 'len == 0')...
branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1398:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_true: following 'true' branch (when 'bufsz == 0')...
ddcutil-2.2.1/src/util/string_util.c:1400:16: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1400:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:1408:7: branch_true: following 'true' branch (when 'len == 0')...
ddcutil-2.2.1/src/util/string_util.c:1409:7: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1409:7: danger: 'buffer' could be NULL: unchecked value from [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-688): [#def978]
ddcutil-2.2.1/src/util/string_util.c:1412:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'buffer' where non-null expected
ddcutil-2.2.1/src/util/string_util.c:1384:7: branch_false: following 'false' branch (when 'sepstr' is NULL)...
ddcutil-2.2.1/src/util/string_util.c:1387:29: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1393:7: branch_false: following 'false' branch (when 'len != 0')...
ddcutil-2.2.1/src/util/string_util.c:1396:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1398:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_true: following 'true' branch (when 'bufsz == 0')...
ddcutil-2.2.1/src/util/string_util.c:1400:16: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1400:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:1408:7: branch_false: following 'false' branch (when 'len != 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1410:14: branch_true: following 'true' branch (when 'i < len')...
ddcutil-2.2.1/src/util/string_util.c:1412:45: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1412:7: danger: argument 1 ('buffer + (sizetype)(i * incr1)') from [(9)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-688): [#def979]
ddcutil-2.2.1/src/util/string_util.c:1418:4: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'buffer' where non-null expected
ddcutil-2.2.1/src/util/string_util.c:1384:7: branch_false: following 'false' branch (when 'sepstr' is NULL)...
ddcutil-2.2.1/src/util/string_util.c:1387:29: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1393:7: branch_false: following 'false' branch (when 'len != 0')...
ddcutil-2.2.1/src/util/string_util.c:1396:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1398:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_true: following 'true' branch (when 'bufsz == 0')...
ddcutil-2.2.1/src/util/string_util.c:1400:16: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1400:16: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:1408:7: branch_false: following 'false' branch (when 'len != 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1410:14: branch_false: following 'false' branch (when 'i >= len')...
ddcutil-2.2.1/src/util/string_util.c:1418:4: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1418:4: danger: argument 1 ('buffer') from [(9)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/8) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-457): [#def980]
ddcutil-2.2.1/src/util/string_util.c:1418:4: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value '*buffer'
ddcutil-2.2.1/src/util/string_util.c:1384:7: branch_false: following 'false' branch (when 'sepstr' is NULL)...
ddcutil-2.2.1/src/util/string_util.c:1387:29: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1393:7: branch_false: following 'false' branch (when 'len != 0')...
ddcutil-2.2.1/src/util/string_util.c:1396:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1398:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1399:7: branch_true: following 'true' branch (when 'bufsz == 0')...
ddcutil-2.2.1/src/util/string_util.c:1400:16: branch_true: ...to here
ddcutil-2.2.1/src/util/string_util.c:1408:7: branch_false: following 'false' branch (when 'len != 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1410:14: branch_false: following 'false' branch (when 'i >= len')...
ddcutil-2.2.1/src/util/string_util.c:1418:4: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1418:4: danger: use of uninitialized value '*buffer' here
Error: GCC_ANALYZER_WARNING (CWE-688): [#def981]
ddcutil-2.2.1/src/util/string_util.c:1850:7: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'buf' where non-null expected
ddcutil-2.2.1/src/util/string_util.c:1830:8: enter_function: entry to 'canonicalize_possible_hex_value'
ddcutil-2.2.1/src/util/string_util.c:1831:4: branch_false: following 'false' branch (when 'string_value' is non-NULL)...
ddcutil-2.2.1/src/util/string_util.c:1833:16: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1834:17: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/string_util.c:1835:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1839:30: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1839:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1846:13: call_function: calling 'str_starts_with' from 'canonicalize_possible_hex_value'
ddcutil-2.2.1/src/util/string_util.c:1846:13: return_function: returning to 'canonicalize_possible_hex_value' from 'str_starts_with'
ddcutil-2.2.1/src/util/string_util.c:1846:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/string_util.c:1850:7: branch_false: ...to here
ddcutil-2.2.1/src/util/string_util.c:1850:7: danger: argument 1 ('buf') from [(4)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/3) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def982]
ddcutil-2.2.1/src/util/subprocess_util.c:46: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmdbuf
Error: CPPCHECK_WARNING (CWE-476): [#def983]
ddcutil-2.2.1/src/util/subprocess_util.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: cmdbuf
Error: CPPCHECK_WARNING (CWE-476): [#def984]
ddcutil-2.2.1/src/util/subprocess_util.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: full_cmd
Error: GCC_ANALYZER_WARNING (CWE-688): [#def985]
ddcutil-2.2.1/src/util/subprocess_util.c:294:4: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'full_cmd' where non-null expected
ddcutil-2.2.1/src/util/subprocess_util.c:292:4: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
ddcutil-2.2.1/src/util/subprocess_util.c:293:32: branch_false: ...to here
ddcutil-2.2.1/src/util/subprocess_util.c:293:22: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/subprocess_util.c:294:4: danger: argument 1 ('full_cmd') from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def986]
ddcutil-2.2.1/src/util/subprocess_util.c:295: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: full_cmd
Error: GCC_ANALYZER_WARNING (CWE-401): [#def987]
ddcutil-2.2.1/src/util/subprocess_util.c:297:13: warning[-Wanalyzer-malloc-leak]: leak of 'full_cmd'
ddcutil-2.2.1/src/util/subprocess_util.c:292:4: branch_false: following 'false' branch (when 'cmd' is non-NULL)...
ddcutil-2.2.1/src/util/subprocess_util.c:293:32: branch_false: ...to here
ddcutil-2.2.1/src/util/subprocess_util.c:293:22: acquire_memory: allocated here
ddcutil-2.2.1/src/util/subprocess_util.c:297:13: danger: 'full_cmd' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def988]
ddcutil-2.2.1/src/util/sysfs_util.c:273:25: warning[-Wanalyzer-malloc-leak]: leak of 'opendir(dirname)'
ddcutil-2.2.1/src/util/sysfs_util.c:265:16: acquire_memory: allocated here
ddcutil-2.2.1/src/util/sysfs_util.c:267:7: branch_false: following 'false' branch...
branch_false: ...to here
ddcutil-2.2.1/src/util/sysfs_util.c:273:25: danger: 'opendir(dirname)' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-457): [#def989]
ddcutil-2.2.1/src/util/sysfs_util.c:415:10: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value 'buf[0]'
ddcutil-2.2.1/src/util/sysfs_util.c:389:1: enter_function: entry to 'rpt_attr_int'
ddcutil-2.2.1/src/util/sysfs_util.c:400:4: call_function: calling 'assemble_sysfs_path2' from 'rpt_attr_int'
ddcutil-2.2.1/src/util/sysfs_util.c:400:4: return_function: returning to 'rpt_attr_int' from 'assemble_sysfs_path2'
ddcutil-2.2.1/src/util/sysfs_util.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/sysfs_util.c:412:15: branch_true: ...to here
ddcutil-2.2.1/src/util/sysfs_util.c:413:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/sysfs_util.c:415:10: branch_false: ...to here
ddcutil-2.2.1/src/util/sysfs_util.c:415:10: danger: use of uninitialized value 'buf[0]' here
Error: CPPCHECK_WARNING (CWE-476): [#def990]
ddcutil-2.2.1/src/util/timestamp.c:89: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: timestamp_history
Error: GCC_ANALYZER_WARNING (CWE-476): [#def991]
ddcutil-2.2.1/src/util/timestamp.c:89:7: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'timestamp_history'
ddcutil-2.2.1/src/util/timestamp.c:84:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/timestamp.c:85:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/timestamp.c:86:10: branch_true: ...to here
ddcutil-2.2.1/src/util/timestamp.c:87:30: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/timestamp.c:89:7: danger: 'timestamp_history + (long unsigned int)timestamp_ct * 8' could be NULL: unchecked value from [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def992]
ddcutil-2.2.1/src/util/traced_function_stack.c:132:62: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(g_queue_peek_nth(stack, (unsigned int)ndx))'
ddcutil-2.2.1/src/util/traced_function_stack.c:129:10: branch_true: following 'true' branch (when 'adjusted_len > 0')...
ddcutil-2.2.1/src/util/traced_function_stack.c:131:13: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:131:13: branch_true: following 'true' branch (when 'reverse != 0')...
ddcutil-2.2.1/src/util/traced_function_stack.c:132:22: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:132:41: branch_true: following 'true' branch (when 'stack_adjust <= ndx')...
ddcutil-2.2.1/src/util/traced_function_stack.c:133:50: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:133:43: acquire_memory: allocated here
ddcutil-2.2.1/src/util/traced_function_stack.c:132:62: danger: 'strdup(g_queue_peek_nth(stack, (unsigned int)ndx))' leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def993]
ddcutil-2.2.1/src/util/traced_function_stack.c:137:58: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(g_queue_peek_nth(stack, (unsigned int)ndx))'
ddcutil-2.2.1/src/util/traced_function_stack.c:129:10: branch_true: following 'true' branch (when 'adjusted_len > 0')...
ddcutil-2.2.1/src/util/traced_function_stack.c:131:13: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:131:13: branch_false: following 'false' branch (when 'reverse == 0')...
branch_false: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:137:42: branch_true: following 'true' branch (when 'full_len > ndx')...
ddcutil-2.2.1/src/util/traced_function_stack.c:138:50: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:138:43: acquire_memory: allocated here
ddcutil-2.2.1/src/util/traced_function_stack.c:137:58: danger: 'strdup(g_queue_peek_nth(stack, (unsigned int)ndx))' leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def994]
ddcutil-2.2.1/src/util/traced_function_stack.c:219:38: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(g_queue_peek_nth(traced_function_stack, (unsigned int)ndx))'
ddcutil-2.2.1/src/util/traced_function_stack.c:218:7: branch_true: following 'true' branch (when 'most_recent_last != 0')...
branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:219:25: branch_true: following 'true' branch (when 'ndx < qsize')...
ddcutil-2.2.1/src/util/traced_function_stack.c:220:52: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:220:37: acquire_memory: allocated here
ddcutil-2.2.1/src/util/traced_function_stack.c:219:38: danger: 'strdup(g_queue_peek_nth(traced_function_stack, (unsigned int)ndx))' leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def995]
ddcutil-2.2.1/src/util/traced_function_stack.c:224:41: warning[-Wanalyzer-malloc-leak]: leak of 'strdup(g_queue_peek_nth(traced_function_stack, (unsigned int)ndx))'
ddcutil-2.2.1/src/util/traced_function_stack.c:218:7: branch_false: following 'false' branch (when 'most_recent_last == 0')...
ddcutil-2.2.1/src/util/traced_function_stack.c:224:16: branch_false: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:224:31: branch_true: following 'true' branch (when 'ndx >= 0')...
ddcutil-2.2.1/src/util/traced_function_stack.c:225:53: branch_true: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:225:38: acquire_memory: allocated here
ddcutil-2.2.1/src/util/traced_function_stack.c:224:41: danger: 'strdup(g_queue_peek_nth(traced_function_stack, (unsigned int)ndx))' leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
Error: CPPCHECK_WARNING (CWE-476): [#def996]
ddcutil-2.2.1/src/util/traced_function_stack.c:281: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: GCC_ANALYZER_WARNING (CWE-476): [#def997]
ddcutil-2.2.1/src/util/traced_function_stack.c:281:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'entry'
ddcutil-2.2.1/src/util/traced_function_stack.c:269:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/traced_function_stack.c:275:21: branch_false: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:280:47: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/traced_function_stack.c:281:4: danger: 'entry' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def998]
ddcutil-2.2.1/src/util/traced_function_stack.c:282: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: CPPCHECK_WARNING (CWE-476): [#def999]
ddcutil-2.2.1/src/util/traced_function_stack.c:283: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: entry
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1000]
ddcutil-2.2.1/src/util/traced_function_stack.c:285:4: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/util/traced_function_stack.c:269:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/traced_function_stack.c:275:21: branch_false: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:283:30: acquire_memory: allocated here
ddcutil-2.2.1/src/util/traced_function_stack.c:285:4: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1001]
ddcutil-2.2.1/src/util/traced_function_stack.c:285:4: warning[-Wanalyzer-malloc-leak]: leak of 'entry'
ddcutil-2.2.1/src/util/traced_function_stack.c:269:12: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/traced_function_stack.c:275:21: branch_false: ...to here
ddcutil-2.2.1/src/util/traced_function_stack.c:280:47: acquire_memory: allocated here
ddcutil-2.2.1/src/util/traced_function_stack.c:285:4: danger: 'entry' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-404): [#def1002]
ddcutil-2.2.1/src/util/traced_function_stack.c:363:4: warning[-Wanalyzer-va-list-leak]: missing call to 'va_end'
ddcutil-2.2.1/src/util/traced_function_stack.c:362:4: acquire_resource: 'va_start' called here
ddcutil-2.2.1/src/util/traced_function_stack.c:363:4: danger: missing call to 'va_end' to match 'va_start' at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1003]
ddcutil-2.2.1/src/util/udev_usb_util.c:26: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: devsum
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1004]
ddcutil-2.2.1/src/util/udev_usb_util.c:151:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:4: danger: 'new_usb_detailed_device_summary()' could be NULL: unchecked value from [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1005]
ddcutil-2.2.1/src/util/udev_usb_util.c:154:16: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:154:16: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1006]
ddcutil-2.2.1/src/util/udev_usb_util.c:155:4: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:155:4: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1007]
ddcutil-2.2.1/src/util/udev_usb_util.c:156:4: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:156:4: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1008]
ddcutil-2.2.1/src/util/udev_usb_util.c:157:14: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:157:14: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1009]
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1010]
ddcutil-2.2.1/src/util/udev_usb_util.c:170:14: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:170:14: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1011]
ddcutil-2.2.1/src/util/udev_usb_util.c:184:13: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:184:13: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1012]
ddcutil-2.2.1/src/util/udev_usb_util.c:190:13: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:188:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:189:13: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:189:13: branch_true: following 'true' branch (when 'verbose != 0')...
ddcutil-2.2.1/src/util/udev_usb_util.c:190:13: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:190:13: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1013]
ddcutil-2.2.1/src/util/udev_usb_util.c:191:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:188:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:189:13: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:191:10: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1014]
ddcutil-2.2.1/src/util/udev_usb_util.c:197:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:188:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:195:10: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:195:10: branch_true: following 'true' branch (when 'verbose != 0')...
ddcutil-2.2.1/src/util/udev_usb_util.c:196:10: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:197:10: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
ddcutil-2.2.1/src/util/udev_usb_util.c:209:10: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:188:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:195:10: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:195:10: branch_true: following 'true' branch (when 'verbose != 0')...
ddcutil-2.2.1/src/util/udev_usb_util.c:196:10: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:209:10: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1016]
ddcutil-2.2.1/src/util/udev_usb_util.c:228:7: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:163:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:168:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:188:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:195:10: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:228:7: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1017]
ddcutil-2.2.1/src/util/udev_usb_util.c:236:4: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:236:4: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1018]
ddcutil-2.2.1/src/util/udev_usb_util.c:238:4: warning[-Wanalyzer-malloc-leak]: leak of 'new_usb_detailed_device_summary()'
ddcutil-2.2.1/src/util/udev_usb_util.c:131:31: enter_function: entry to 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:132:4: branch_false: following 'false' branch (when 'devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:143:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:144:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: call_function: calling 'new_usb_detailed_device_summary' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:150:43: return_function: returning to 'lookup_udev_usb_device_by_devname' from 'new_usb_detailed_device_summary'
ddcutil-2.2.1/src/util/udev_usb_util.c:151:22: call_function: inlined call to 'g_strdup_inline' from 'lookup_udev_usb_device_by_devname'
ddcutil-2.2.1/src/util/udev_usb_util.c:238:4: danger: 'new_usb_detailed_device_summary()' leaks here; was allocated at [(8)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def1019]
ddcutil-2.2.1/src/util/udev_usb_util.c:471: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1020]
ddcutil-2.2.1/src/util/udev_usb_util.c:471:10: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'result'
ddcutil-2.2.1/src/util/udev_usb_util.c:383:4: branch_false: following 'false' branch (when 'subsystem' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: following 'false' branch (when 'simple_devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:398:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:399:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:405:16: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:416:27: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:437:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:466:34: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:469:19: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/udev_usb_util.c:471:10: danger: 'result' could be NULL: unchecked value from [(13)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1021]
ddcutil-2.2.1/src/util/udev_usb_util.c:472: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: result
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1022]
ddcutil-2.2.1/src/util/udev_usb_util.c:476:10: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/util/udev_usb_util.c:383:4: branch_false: following 'false' branch (when 'subsystem' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: following 'false' branch (when 'simple_devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:398:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:399:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:405:16: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:416:27: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:437:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:466:34: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:469:19: acquire_memory: allocated here
ddcutil-2.2.1/src/util/udev_usb_util.c:476:10: danger: 'result' leaks here; was allocated at [(13)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1023]
ddcutil-2.2.1/src/util/udev_usb_util.c:480:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/util/udev_usb_util.c:383:4: branch_false: following 'false' branch (when 'subsystem' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: following 'false' branch (when 'simple_devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:398:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:399:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:405:16: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:416:27: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:437:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:466:34: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:469:19: acquire_memory: allocated here
ddcutil-2.2.1/src/util/udev_usb_util.c:480:4: danger: 'result' leaks here; was allocated at [(13)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/12)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1024]
ddcutil-2.2.1/src/util/udev_usb_util.c:482:4: warning[-Wanalyzer-malloc-leak]: leak of 'result'
ddcutil-2.2.1/src/util/udev_usb_util.c:383:4: branch_false: following 'false' branch (when 'subsystem' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:384:4: branch_false: following 'false' branch (when 'simple_devname' is non-NULL)...
ddcutil-2.2.1/src/util/udev_usb_util.c:398:11: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:399:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:405:16: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:411:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:412:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:416:27: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:437:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_usb_util.c:466:34: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_usb_util.c:469:19: acquire_memory: allocated here
ddcutil-2.2.1/src/util/udev_usb_util.c:482:4: danger: 'result' leaks here; was allocated at [(13)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/12)
Error: CPPCHECK_WARNING (CWE-476): [#def1025]
ddcutil-2.2.1/src/util/udev_util.c:70: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summary
Error: CPPCHECK_WARNING (CWE-476): [#def1026]
ddcutil-2.2.1/src/util/udev_util.c:72: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summary
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1027]
ddcutil-2.2.1/src/util/udev_util.c:72:3: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'summary'
ddcutil-2.2.1/src/util/udev_util.c:68:23: enter_function: entry to 'get_udev_device_summary'
ddcutil-2.2.1/src/util/udev_util.c:69:35: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/udev_util.c:72:3: danger: 'summary' could be NULL: unchecked value from [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
Error: CPPCHECK_WARNING (CWE-476): [#def1028]
ddcutil-2.2.1/src/util/udev_util.c:73: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summary
Error: CPPCHECK_WARNING (CWE-476): [#def1029]
ddcutil-2.2.1/src/util/udev_util.c:74: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summary
Error: CPPCHECK_WARNING (CWE-476): [#def1030]
ddcutil-2.2.1/src/util/udev_util.c:75: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: summary
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1031]
ddcutil-2.2.1/src/util/udev_util.c:123:7: warning[-Wanalyzer-malloc-leak]: leak of 'get_udev_device_summary(udev_device_new_from_syspath(udev_new(), udev_list_entry_get_name(dev_list_entry)))'
ddcutil-2.2.1/src/util/udev_util.c:88:13: enter_function: entry to 'summarize_udev_subsystem_devices'
ddcutil-2.2.1/src/util/udev_util.c:99:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_util.c:105:16: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_util.c:114:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_util.c:119:14: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_util.c:122:34: call_function: calling 'get_udev_device_summary' from 'summarize_udev_subsystem_devices'
ddcutil-2.2.1/src/util/udev_util.c:122:34: return_function: returning to 'summarize_udev_subsystem_devices' from 'get_udev_device_summary'
ddcutil-2.2.1/src/util/udev_util.c:123:7: danger: 'get_udev_device_summary(udev_device_new_from_syspath(udev_new(), udev_list_entry_get_name(dev_list_entry)))' leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1032]
ddcutil-2.2.1/src/util/udev_util.c:171:7: warning[-Wanalyzer-malloc-leak]: leak of 'get_udev_device_summary(udev_device_new_from_syspath(udev_new(), udev_list_entry_get_name(dev_list_entry)))'
ddcutil-2.2.1/src/util/udev_util.c:141:13: enter_function: entry to 'find_devices_by_sysattr_name'
ddcutil-2.2.1/src/util/udev_util.c:151:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/udev_util.c:157:16: branch_false: ...to here
ddcutil-2.2.1/src/util/udev_util.c:164:4: branch_true: following 'true' branch (when 'dev_list_entry' is non-NULL)...
ddcutil-2.2.1/src/util/udev_util.c:167:27: branch_true: ...to here
ddcutil-2.2.1/src/util/udev_util.c:170:31: call_function: calling 'get_udev_device_summary' from 'find_devices_by_sysattr_name'
ddcutil-2.2.1/src/util/udev_util.c:170:31: return_function: returning to 'find_devices_by_sysattr_name' from 'get_udev_device_summary'
ddcutil-2.2.1/src/util/udev_util.c:171:7: danger: 'get_udev_device_summary(udev_device_new_from_syspath(udev_new(), udev_list_entry_get_name(dev_list_entry)))' leaks here; was allocated at [(8)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/7)
Error: CPPCHECK_WARNING (CWE-476): [#def1033]
ddcutil-2.2.1/src/util/x11_util.c:233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: edidrec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1034]
ddcutil-2.2.1/src/util/x11_util.c:233:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'edidrec'
ddcutil-2.2.1/src/util/x11_util.c:140:5: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:146:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:148:21: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:149:9: branch_true: following 'true' branch (when 'version > 257')...
ddcutil-2.2.1/src/util/x11_util.c:154:13: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:154:11: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:158:36: branch_true: following 'true' branch (when 'atom_count != 3')...
ddcutil-2.2.1/src/util/x11_util.c:160:18: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:172:11: branch_true: following 'true' branch (when 'atom_avail != 0')...
ddcutil-2.2.1/src/util/x11_util.c:174:15: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:177:25: branch_true: following 'true' branch (when 'screen < scr_count')...
ddcutil-2.2.1/src/util/x11_util.c:180:27: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:194:15: branch_true: following 'true' branch (when 'rsrc' is non-NULL)...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:197:33: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:199:41: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:201:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:204:39: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:204:21: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:208:46: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:217:32: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:227:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:229:28: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:229:27: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:232:53: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/x11_util.c:233:28: danger: 'edidrec' could be NULL: unchecked value from [(31)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/30)
Error: CPPCHECK_WARNING (CWE-476): [#def1035]
ddcutil-2.2.1/src/util/x11_util.c:234: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: edidrec
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1036]
ddcutil-2.2.1/src/util/x11_util.c:234:28: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'calloc(1, 128)' where non-null expected
ddcutil-2.2.1/src/util/x11_util.c:140:5: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:146:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:148:21: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:149:9: branch_true: following 'true' branch (when 'version > 257')...
ddcutil-2.2.1/src/util/x11_util.c:154:13: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:154:11: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:158:36: branch_true: following 'true' branch (when 'atom_count != 3')...
ddcutil-2.2.1/src/util/x11_util.c:160:18: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:172:11: branch_true: following 'true' branch (when 'atom_avail != 0')...
ddcutil-2.2.1/src/util/x11_util.c:174:15: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:177:25: branch_true: following 'true' branch (when 'screen < scr_count')...
ddcutil-2.2.1/src/util/x11_util.c:180:27: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:194:15: branch_true: following 'true' branch (when 'rsrc' is non-NULL)...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:197:33: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:199:41: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:201:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:204:39: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:204:21: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:208:46: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:217:32: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:227:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:229:28: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:229:27: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:233:49: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/util/x11_util.c:234:28: danger: argument 1 ('calloc(1, 128)') from [(31)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/30) could be NULL where non-null expected
Error: CPPCHECK_WARNING (CWE-476): [#def1037]
ddcutil-2.2.1/src/util/x11_util.c:235: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: edidrec
Error: CPPCHECK_WARNING (CWE-476): [#def1038]
ddcutil-2.2.1/src/util/x11_util.c:236: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: edidrec
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1039]
ddcutil-2.2.1/src/util/x11_util.c:237:28: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/util/x11_util.c:140:5: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:146:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:148:21: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:149:9: branch_true: following 'true' branch (when 'version > 257')...
ddcutil-2.2.1/src/util/x11_util.c:154:13: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:154:11: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:158:36: branch_true: following 'true' branch (when 'atom_count != 3')...
ddcutil-2.2.1/src/util/x11_util.c:160:18: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:172:11: branch_true: following 'true' branch (when 'atom_avail != 0')...
ddcutil-2.2.1/src/util/x11_util.c:174:15: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:177:25: branch_true: following 'true' branch (when 'screen < scr_count')...
ddcutil-2.2.1/src/util/x11_util.c:180:27: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:194:15: branch_true: following 'true' branch (when 'rsrc' is non-NULL)...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:197:33: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:199:41: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:201:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:204:39: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:204:21: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:208:46: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:217:32: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:227:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:229:28: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:229:27: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:233:49: acquire_memory: allocated here
ddcutil-2.2.1/src/util/x11_util.c:237:28: danger: '<unknown>' leaks here; was allocated at [(31)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/30)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1040]
ddcutil-2.2.1/src/util/x11_util.c:237:28: warning[-Wanalyzer-malloc-leak]: leak of 'edidrec'
ddcutil-2.2.1/src/util/x11_util.c:140:5: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:146:9: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:145:9: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:148:21: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:149:9: branch_true: following 'true' branch (when 'version > 257')...
ddcutil-2.2.1/src/util/x11_util.c:154:13: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:154:11: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:158:36: branch_true: following 'true' branch (when 'atom_count != 3')...
ddcutil-2.2.1/src/util/x11_util.c:160:18: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:172:11: branch_true: following 'true' branch (when 'atom_avail != 0')...
ddcutil-2.2.1/src/util/x11_util.c:174:15: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:177:25: branch_true: following 'true' branch (when 'screen < scr_count')...
ddcutil-2.2.1/src/util/x11_util.c:180:27: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:194:15: branch_true: following 'true' branch (when 'rsrc' is non-NULL)...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:197:33: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:199:41: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:201:19: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:204:39: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:204:21: branch_true: following 'true' branch...
branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:208:46: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:217:32: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:227:25: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:229:28: branch_true: ...to here
ddcutil-2.2.1/src/util/x11_util.c:229:27: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/x11_util.c:232:53: acquire_memory: allocated here
ddcutil-2.2.1/src/util/x11_util.c:237:28: danger: 'edidrec' leaks here; was allocated at [(31)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/30)
Error: CPPCHECK_WARNING (CWE-476): [#def1041]
ddcutil-2.2.1/src/util/xdg_util.c:329: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: CPPCHECK_WARNING (CWE-476): [#def1042]
ddcutil-2.2.1/src/util/xdg_util.c:332: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: buf
Error: GCC_ANALYZER_WARNING (CWE-688): [#def1043]
ddcutil-2.2.1/src/util/xdg_util.c:357:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL 'xdg_dirs_iter_next(&iter_state)' where non-null expected
ddcutil-2.2.1/src/util/xdg_util.c:338:15: enter_function: entry to 'find_xdg_path_file'
ddcutil-2.2.1/src/util/xdg_util.c:348:7: branch_false: following 'false' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/util/xdg_util.c:354:18: call_function: inlined call to 'g_strdup_inline' from 'find_xdg_path_file'
ddcutil-2.2.1/src/util/xdg_util.c:356:12: branch_true: following 'true' branch (when 'fqfn' is NULL)...
ddcutil-2.2.1/src/util/xdg_util.c:356:33: branch_true: ...to here
ddcutil-2.2.1/src/util/xdg_util.c:356:33: call_function: calling 'xdg_dirs_iter_next' from 'find_xdg_path_file'
ddcutil-2.2.1/src/util/xdg_util.c:356:33: return_function: returning to 'find_xdg_path_file' from 'xdg_dirs_iter_next'
ddcutil-2.2.1/src/util/xdg_util.c:356:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/xdg_util.c:357:21: branch_true: ...to here
ddcutil-2.2.1/src/util/xdg_util.c:357:21: danger: argument 1 ('xdg_dirs_iter_next(&iter_state)') from [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10) could be NULL where non-null expected
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1044]
ddcutil-2.2.1/src/util/xdg_util.c:360:14: warning[-Wanalyzer-malloc-leak]: leak of 'xdg_dirs_iter_next(&iter_state)'
ddcutil-2.2.1/src/util/xdg_util.c:338:15: enter_function: entry to 'find_xdg_path_file'
ddcutil-2.2.1/src/util/xdg_util.c:348:7: branch_false: following 'false' branch (when 'path' is non-NULL)...
ddcutil-2.2.1/src/util/xdg_util.c:354:18: call_function: inlined call to 'g_strdup_inline' from 'find_xdg_path_file'
ddcutil-2.2.1/src/util/xdg_util.c:356:12: branch_true: following 'true' branch (when 'fqfn' is NULL)...
ddcutil-2.2.1/src/util/xdg_util.c:356:33: branch_true: ...to here
ddcutil-2.2.1/src/util/xdg_util.c:356:33: call_function: calling 'xdg_dirs_iter_next' from 'find_xdg_path_file'
ddcutil-2.2.1/src/util/xdg_util.c:356:33: return_function: returning to 'find_xdg_path_file' from 'xdg_dirs_iter_next'
ddcutil-2.2.1/src/util/xdg_util.c:356:12: branch_true: following 'true' branch...
ddcutil-2.2.1/src/util/xdg_util.c:357:21: branch_true: ...to here
ddcutil-2.2.1/src/util/xdg_util.c:358:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/util/xdg_util.c:360:14: branch_false: ...to here
ddcutil-2.2.1/src/util/xdg_util.c:360:14: danger: 'xdg_dirs_iter_next(&iter_state)' leaks here; was allocated at [(11)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/10)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1045]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: warning[-Wanalyzer-malloc-leak]: leak of 'segment'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:552:37: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:559:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: danger: 'segment' leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1046]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'segment'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:552:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/parse_capabilities.c:559:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_true: following 'true' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: danger: 'segment' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1047]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:578:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'segment'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:552:37: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/parse_capabilities.c:559:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:578:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:578:4: danger: 'segment' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1048]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:580:4: warning[-Wanalyzer-malloc-leak]: leak of 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:769:22: enter_function: entry to 'parse_capabilities_string'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:772:4: branch_false: following 'false' branch (when 'caps' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:779:36: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:779:11: call_function: calling 'parse_capabilities' from 'parse_capabilities_string'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1049]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:580:4: warning[-Wanalyzer-malloc-leak]: leak of 'segment'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:552:37: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:559:7: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:577:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:578:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:580:4: branch_true: following 'true' branch (when 'pos >= end')...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:580:4: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:580:4: danger: 'segment' leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1050]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:652: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1051]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:655: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1052]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:655:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:637:4: branch_false: following 'false' branch (when 'buf_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:639:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:651:33: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/parse_capabilities.c:655:4: danger: 'pcaps' could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1053]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:655:23: warning[-Wanalyzer-malloc-leak]: leak of 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:637:4: branch_false: following 'false' branch (when 'buf_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:639:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:651:33: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:655:23: danger: 'pcaps' leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1054]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:656: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1055]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:657: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1056]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:658: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1057]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:659: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1058]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:660: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1059]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:661: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1060]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:662: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1061]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:663: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: CPPCHECK_WARNING (CWE-476): [#def1062]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:664: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:664:26: warning[-Wanalyzer-malloc-leak]: leak of 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:637:4: branch_false: following 'false' branch (when 'buf_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:639:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:651:33: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:664:26: danger: 'pcaps' leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1064]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:665: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pcaps
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1065]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:665:22: warning[-Wanalyzer-malloc-leak]: leak of 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:637:4: branch_false: following 'false' branch (when 'buf_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:639:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:651:33: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:665:22: danger: 'pcaps' leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1066]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:671:13: warning[-Wanalyzer-malloc-leak]: leak of 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:633:23: enter_function: entry to 'parse_capabilities'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:637:4: branch_false: following 'false' branch (when 'buf_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:639:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:651:33: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:669:7: branch_true: following 'true' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:670:21: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:670:10: branch_true: following 'true' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:672:29: call_function: inlined call to 'g_strdup_inline' from 'parse_capabilities'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:671:13: danger: 'pcaps' leaks here; was allocated at [(4)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/3)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1067]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:686:11: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:769:22: enter_function: entry to 'parse_capabilities_string'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:772:4: branch_false: following 'false' branch (when 'caps' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:779:36: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:779:11: call_function: calling 'parse_capabilities' from 'parse_capabilities_string'
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1068]
ddcutil-2.2.1/src/vcp/parse_capabilities.c:759:4: warning[-Wanalyzer-malloc-leak]: leak of 'pcaps'
ddcutil-2.2.1/src/vcp/parse_capabilities.c:637:4: branch_false: following 'false' branch (when 'buf_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:639:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:651:33: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:683:11: branch_false: following 'false' branch (when 'buf_len <= 0')...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:758:1: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:759:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parse_capabilities.c:759:4: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parse_capabilities.c:759:4: danger: 'pcaps' leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
Error: CPPCHECK_WARNING (CWE-476): [#def1069]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vfr
Error: CPPCHECK_WARNING (CWE-476): [#def1070]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:78: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: vfr
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1071]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:78:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'vfr'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:76:42: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:78:4: danger: 'vfr' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1072]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:91:37: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:36: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:91:37: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1073]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:91:37: warning[-Wanalyzer-malloc-leak]: leak of 'vfr'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:76:42: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:91:37: danger: 'vfr' leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1074]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:92:18: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:36: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:92:18: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1075]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:92:18: warning[-Wanalyzer-malloc-leak]: leak of 'vfr'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:76:42: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:92:18: danger: 'vfr' leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1076]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:36: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:93:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1077]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: warning[-Wanalyzer-malloc-leak]: leak of 'vfr'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:76:42: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:93:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: danger: 'vfr' leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1078]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:96:10: warning[-Wanalyzer-malloc-leak]: leak of '<unknown>'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:36: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:93:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:96:10: danger: '<unknown>' leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
Error: GCC_ANALYZER_WARNING (CWE-401): [#def1079]
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:96:10: warning[-Wanalyzer-malloc-leak]: leak of 'vfr'
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:76:42: acquire_memory: allocated here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:81:7: branch_true: following 'true' branch (when 'value_string_start' is non-NULL)...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:82:44: branch_true: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:93:10: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:94:21: branch_false: ...to here
ddcutil-2.2.1/src/vcp/parsed_capabilities_feature.c:96:10: danger: 'vfr' leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1080]
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:828:14: warning[-Wanalyzer-jump-through-null]: jump through null pointer
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:815:1: enter_function: entry to 'vcp_format_nontable_feature_detail'
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:827:10: call_function: calling 'get_nontable_feature_detail_function' from 'vcp_format_nontable_feature_detail'
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:827:10: return_function: returning to 'vcp_format_nontable_feature_detail' from 'get_nontable_feature_detail_function'
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:828:14: danger: jump through null pointer here
Error: CPPCHECK_WARNING (CWE-476): [#def1081]
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:957: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pentry
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1082]
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:957:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'pentry'
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:956:38: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:957:4: danger: 'pentry' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1083]
ddcutil-2.2.1/src/vcp/vcp_feature_codes.c:958: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pentry
Error: CPPCHECK_WARNING (CWE-476): [#def1084]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1085]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:256:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'valrec'
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:254:34: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:256:4: danger: 'valrec' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1086]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:257: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1087]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:258: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1088]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:259: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1089]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:260: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1090]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:261: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1091]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1092]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:276:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'valrec'
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:275:34: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:276:4: danger: 'valrec' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1093]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:277: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1094]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:278: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1095]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:279: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1096]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:280: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1097]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:281: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1098]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:293: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1099]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:293:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'valrec'
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:292:34: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:293:4: danger: 'valrec' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1100]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:294: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1101]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:295: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1102]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:296: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1103]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:297: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: valrec
Error: CPPCHECK_WARNING (CWE-476): [#def1104]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:374: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
Error: GCC_ANALYZER_WARNING (CWE-476): [#def1105]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:374:4: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL 'non_table_response'
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:371:46: acquire_memory: this call could return NULL
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:372:4: branch_false: following 'false' branch...
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:374:36: branch_false: ...to here
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:374:4: danger: 'non_table_response' could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
Error: CPPCHECK_WARNING (CWE-476): [#def1106]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:375: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
Error: CPPCHECK_WARNING (CWE-476): [#def1107]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:376: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
Error: CPPCHECK_WARNING (CWE-476): [#def1108]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:377: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
Error: CPPCHECK_WARNING (CWE-476): [#def1109]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:378: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
Error: CPPCHECK_WARNING (CWE-476): [#def1110]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:379: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
Error: CPPCHECK_WARNING (CWE-476): [#def1111]
ddcutil-2.2.1/src/vcp/vcp_feature_values.c:380: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: non_table_response
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-203.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 | ddcutil-2.2.1-1.fc44 |
| store-results-to | /tmp/tmpij_e3tef/ddcutil-2.2.1-1.fc44.tar.xz |
| time-created | 2025-10-28 17:42:13 |
| time-finished | 2025-10-28 17:45:15 |
| tool | csmock |
| tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpij_e3tef/ddcutil-2.2.1-1.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpij_e3tef/ddcutil-2.2.1-1.fc44.src.rpm' |
| tool-version | csmock-3.8.3.20251027.143044.ge6b947b-1.el9 |