Fixed findings

List of Findings

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:768:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1238:1: enter_function: entry to ‘_snd_ctl_pipewire_open’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1255:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1256:35: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1332:24: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1441:9: call_function: calling ‘snd_ctl_pipewire_free’ from ‘_snd_ctl_pipewire_open’
#  766|   		return;
#  767|   
#  768|-> 	pw_log_debug("%p:", ctl);
#  769|   	if (ctl->mainloop)
#  770|   		pw_thread_loop_stop(ctl->mainloop);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 1328|   				"%s", sink);
# 1329|   
# 1330|-> 	ctl->mainloop = pw_thread_loop_new("alsa-pipewire", NULL);
# 1331|   	if (ctl->mainloop == NULL) {
# 1332|   		err = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def3]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
# 1333|   		goto error;
# 1334|   	}
# 1335|-> 	loop = pw_thread_loop_get_loop(ctl->mainloop);
# 1336|   
# 1337|   	ctl->system = loop->system;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def4]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1339:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
# 1342|   	}
# 1343|   
# 1344|-> 	ctl->context = pw_context_new(loop,
# 1345|   					pw_properties_new(
# 1346|   						PW_KEY_CLIENT_API, "alsa",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def5]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1339:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1349:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
# 1352|   	}
# 1353|   
# 1354|-> 	ctl->props = pw_properties_new(NULL, NULL);
# 1355|   	if (ctl->props == NULL) {
# 1356|   		err = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def6]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1361:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1255:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1256:35: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1258:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1260:21: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1260:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1260:21: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1263:21: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1263:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1264:29: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1264:28: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1267:37: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1267:35: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1263:20: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1339:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1349:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1355:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1361:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1361:17: danger: ‘ctl’ leaks here; was allocated at [(19)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/18)
# 1359|   
# 1360|   	if (server)
# 1361|-> 		pw_properties_set(ctl->props, PW_KEY_REMOTE_NAME, server);
# 1362|   
# 1363|   	pw_context_conf_update_props(ctl->context, "alsa.properties", ctl->props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def7]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1363:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1339:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1349:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1355:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1363:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1363:9: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 1361|   		pw_properties_set(ctl->props, PW_KEY_REMOTE_NAME, server);
# 1362|   
# 1363|-> 	pw_context_conf_update_props(ctl->context, "alsa.properties", ctl->props);
# 1364|   
# 1365|   	pw_context_conf_section_match_rules(ctl->context, "alsa.rules",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def8]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1365:9: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1339:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1349:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1355:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1363:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1365:9: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 1363|   	pw_context_conf_update_props(ctl->context, "alsa.properties", ctl->props);
# 1364|   
# 1365|-> 	pw_context_conf_section_match_rules(ctl->context, "alsa.rules",
# 1366|   			&pw_context_get_properties(ctl->context)->dict,
# 1367|   			execute_match, ctl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def9]
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1366:26: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1339:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1344:24: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1349:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1354:22: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1355:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1360:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1363:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1366:26: danger: ‘ctl’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
# 1364|   
# 1365|   	pw_context_conf_section_match_rules(ctl->context, "alsa.rules",
# 1366|-> 			&pw_context_get_properties(ctl->context)->dict,
# 1367|   			execute_match, ctl);
# 1368|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
pipewire-1.4.8/spa/include/spa/pod/builder.h:96:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.4.8/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:73:12: enter_function: entry to ‘endpoint_stream_subscribe_params’
pipewire-1.4.8/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:82:21: branch_true: following ‘true’ branch (when ‘i < n_ids’)...
pipewire-1.4.8/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:83:45: branch_true: ...to here
pipewire-1.4.8/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:86:17: call_function: calling ‘endpoint_stream_enum_params’ from ‘endpoint_stream_subscribe_params’
#   94|   	if (offset + 8 <= size) {
#   95|   		struct spa_pod *pod = SPA_PTROFF(builder->data, offset, struct spa_pod);
#   96|-> 		if (offset + SPA_POD_SIZE(pod) <= size)
#   97|   			return pod;
#   98|   	}

Error: GCC_ANALYZER_WARNING (CWE-686): [#def11]
pipewire-1.4.8/spa/include/spa/pod/builder.h:621:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1872:12: enter_function: entry to ‘registry_marshal_destroy’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1878:9: call_function: calling ‘spa_pod_builder_push_struct’ from ‘registry_marshal_destroy’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1878:9: return_function: returning to ‘registry_marshal_destroy’ from ‘spa_pod_builder_push_struct’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1878:9: call_function: calling ‘spa_pod_builder_add’ from ‘registry_marshal_destroy’ with 3 variadic arguments
#  619|   		case SPA_TYPE_Object:
#  620|   		{
#  621|-> 			uint32_t key = va_arg(args, uint32_t);
#  622|   			if (key == 0)
#  623|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def12]
pipewire-1.4.8/spa/include/spa/pod/builder.h:629:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1893:12: enter_function: entry to ‘security_context_marshal_create’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1902:9: call_function: calling ‘spa_pod_builder_push_struct’ from ‘security_context_marshal_create’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1902:9: return_function: returning to ‘security_context_marshal_create’ from ‘spa_pod_builder_push_struct’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1903:9: call_function: calling ‘spa_pod_builder_add’ from ‘security_context_marshal_create’ with 5 variadic arguments
#  627|   		case SPA_TYPE_Sequence:
#  628|   		{
#  629|-> 			uint32_t offset = va_arg(args, uint32_t);
#  630|   			uint32_t type = va_arg(args, uint32_t);
#  631|   			if (type == 0)

Error: GCC_ANALYZER_WARNING (CWE-686): [#def13]
pipewire-1.4.8/spa/include/spa/pod/builder.h:630:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 2 of ‘args’
pipewire-1.4.8/spa/plugins/control/mixer.c:291:12: enter_function: entry to ‘port_enum_formats’
pipewire-1.4.8/spa/plugins/control/mixer.c:298:26: call_function: calling ‘spa_pod_builder_push_object’ from ‘port_enum_formats’
pipewire-1.4.8/spa/plugins/control/mixer.c:298:26: return_function: returning to ‘port_enum_formats’ from ‘spa_pod_builder_push_object’
pipewire-1.4.8/spa/plugins/control/mixer.c:298:26: call_function: calling ‘spa_pod_builder_add’ from ‘port_enum_formats’ with 11 variadic arguments
#  628|   		{
#  629|   			uint32_t offset = va_arg(args, uint32_t);
#  630|-> 			uint32_t type = va_arg(args, uint32_t);
#  631|   			if (type == 0)
#  632|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-685): [#def14]
pipewire-1.4.8/spa/include/spa/pod/builder.h:630:34: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1534:13: enter_function: entry to ‘transport_state_changed’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1542:12: branch_false: following ‘false’ branch (when ‘state != 2’)...
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1544:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1544:17: branch_true: following ‘true’ branch (when ‘state <= 1’)...
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1545:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1547:12: branch_true: following ‘true’ branch (when ‘state == -1’)...
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1549:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: branch_true: following ‘true’ branch (when ‘_h != _l’)...
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: call_function: calling ‘spa_pod_builder_push_object’ from ‘transport_state_changed’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_push_object’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: call_function: calling ‘spa_pod_builder_add’ from ‘transport_state_changed’ with 1 variadic argument
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_add’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: call_function: calling ‘spa_pod_builder_pop’ from ‘transport_state_changed’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_pop’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: branch_true: following ‘true’ branch (when ‘_h != _l’)...
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: call_function: calling ‘spa_pod_builder_push_object’ from ‘transport_state_changed’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_push_object’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1552:17: call_function: calling ‘spa_pod_builder_add’ from ‘transport_state_changed’ with 1 variadic argument
#  628|   		{
#  629|   			uint32_t offset = va_arg(args, uint32_t);
#  630|-> 			uint32_t type = va_arg(args, uint32_t);
#  631|   			if (type == 0)
#  632|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def15]
pipewire-1.4.8/spa/include/spa/pod/iter.h:377:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.4.8/src/modules/module-protocol-pulse/collect.c:591:6: enter_function: entry to ‘update_object_info’
pipewire-1.4.8/src/modules/module-protocol-pulse/collect.c:594:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-protocol-pulse/collect.c:595:17: branch_true: ...to here
pipewire-1.4.8/src/modules/module-protocol-pulse/collect.c:595:17: call_function: calling ‘update_device_info’ from ‘update_object_info’
#  375|   SPA_API_POD_ITER int spa_pod_is_object(const struct spa_pod *pod)
#  376|   {
#  377|-> 	return (SPA_POD_TYPE(pod) == SPA_TYPE_Object &&
#  378|   			SPA_POD_BODY_SIZE(pod) >= sizeof(struct spa_pod_object_body));
#  379|   }

Error: GCC_ANALYZER_WARNING (CWE-686): [#def16]
pipewire-1.4.8/spa/include/spa/pod/parser.h:467:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1913:12: enter_function: entry to ‘security_context_demarshal_create’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1923:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘security_context_demarshal_create’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1923:13: return_function: returning to ‘security_context_demarshal_create’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1923:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1925:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1925:13: call_function: calling ‘spa_pod_parser_get’ from ‘security_context_demarshal_create’ with 5 variadic arguments
#  465|   
#  466|   		if (f && ftype == SPA_TYPE_Object) {
#  467|-> 			uint32_t key = va_arg(args, uint32_t);
#  468|   			const struct spa_pod_object *object;
#  469|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def17]
pipewire-1.4.8/spa/include/spa/pod/parser.h:467:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘void *’ for variadic argument 1 of ‘args’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:451:12: enter_function: entry to ‘client_node_demarshal_destroy’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:458:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_destroy’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:458:13: return_function: returning to ‘client_node_demarshal_destroy’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:458:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:458:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:458:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_destroy’ with 2 variadic arguments
#  465|   
#  466|   		if (f && ftype == SPA_TYPE_Object) {
#  467|-> 			uint32_t key = va_arg(args, uint32_t);
#  468|   			const struct spa_pod_object *object;
#  469|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def18]
pipewire-1.4.8/spa/include/spa/support/loop.h:143:16: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:196:23: enter_function: entry to ‘spa_bt_sco_io_create’
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:202:14: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:203:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:206:18: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:239:9: call_function: calling ‘spa_loop_add_source’ from ‘spa_bt_sco_io_create’
#  141|   SPA_API_LOOP int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
#  142|   {
#  143|-> 	return spa_api_method_r(int, -ENOTSUP,
#  144|   			spa_loop, &object->iface, add_source, 0, source);
#  145|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def19]
pipewire-1.4.8/spa/include/spa/support/loop.h:411:16: warning[-Wanalyzer-malloc-leak]: leak of ‘w’
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:105:22: enter_function: entry to ‘timeout_new’
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:112:13: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:113:12: branch_false: following ‘false’ branch (when ‘w’ is non-NULL)...
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:116:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:119:21: call_function: inlined call to ‘pw_loop_add_timer’ from ‘timeout_new’
#  409|   spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
#  410|   {
#  411|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  412|   			spa_loop_utils, &object->iface, add_timer, 0, func, data);
#  413|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def20]
pipewire-1.4.8/spa/include/spa/support/loop.h:418:16: warning[-Wanalyzer-malloc-leak]: leak of ‘w’
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:105:22: enter_function: entry to ‘timeout_new’
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:112:13: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:113:12: branch_false: following ‘false’ branch (when ‘w’ is non-NULL)...
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:116:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:119:21: call_function: inlined call to ‘pw_loop_add_timer’ from ‘timeout_new’
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:119:21: call_function: inlined call to ‘pw_loop_add_timer’ from ‘timeout_new’
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:121:12: branch_true: following ‘true’ branch (when ‘tv’ is non-NULL)...
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:122:32: branch_true: ...to here
pipewire-1.4.8/src/modules/module-zeroconf-discover/avahi-poll.c:124:17: call_function: inlined call to ‘pw_loop_update_timer’ from ‘timeout_new’
#  416|   		struct timespec *interval, bool absolute)
#  417|   {
#  418|-> 	return spa_api_method_r(int, -ENOTSUP,
#  419|   			spa_loop_utils, &object->iface, update_timer, 0, source,
#  420|   			value, interval, absolute);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def21]
pipewire-1.4.8/spa/include/spa/support/system.h:141:16: warning[-Wanalyzer-malloc-leak]: leak of ‘source’
pipewire-1.4.8/spa/plugins/support/loop.c:745:27: enter_function: entry to ‘loop_add_io’
pipewire-1.4.8/spa/plugins/support/loop.c:754:18: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/support/loop.c:755:12: branch_false: following ‘false’ branch (when ‘source’ is non-NULL)...
pipewire-1.4.8/spa/plugins/support/loop.c:758:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/support/loop.c:766:20: call_function: calling ‘loop_add_source’ from ‘loop_add_io’
#  139|   SPA_API_SYSTEM int spa_system_pollfd_add(struct spa_system *object, int pfd, int fd, uint32_t events, void *data)
#  140|   {
#  141|-> 	return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, pollfd_add, 0, pfd, fd, events, data);
#  142|   }
#  143|   SPA_API_SYSTEM int spa_system_pollfd_mod(struct spa_system *object, int pfd, int fd, uint32_t events, void *data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def22]
pipewire-1.4.8/spa/include/spa/support/system.h:159:16: warning[-Wanalyzer-malloc-leak]: leak of ‘source’
pipewire-1.4.8/spa/plugins/support/loop.c:964:27: enter_function: entry to ‘loop_add_timer’
pipewire-1.4.8/spa/plugins/support/loop.c:971:18: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/support/loop.c:972:12: branch_false: following ‘false’ branch (when ‘source’ is non-NULL)...
pipewire-1.4.8/spa/plugins/support/loop.c:975:20: branch_false: ...to here
pipewire-1.4.8/spa/plugins/support/loop.c:975:20: call_function: inlined call to ‘spa_system_timerfd_create’ from ‘loop_add_timer’
#  157|   SPA_API_SYSTEM int spa_system_timerfd_create(struct spa_system *object, int clockid, int flags)
#  158|   {
#  159|-> 	return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, timerfd_create, 0, clockid, flags);
#  160|   }
#  161|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
pipewire-1.4.8/spa/include/spa/support/system.h:185:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ctl’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1238:1: enter_function: entry to ‘_snd_ctl_pipewire_open’
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1310:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1313:15: acquire_memory: allocated here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1314:12: branch_false: following ‘false’ branch (when ‘ctl’ is non-NULL)...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1317:9: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1319:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1320:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1321:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:13: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1324:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1325:17: branch_true: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1326:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1330:25: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1331:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1335:16: branch_false: ...to here
pipewire-1.4.8/pipewire-alsa/alsa-plugins/ctl_pipewire.c:1338:19: call_function: inlined call to ‘spa_system_eventfd_create’ from ‘_snd_ctl_pipewire_open’
#  183|   SPA_API_SYSTEM int spa_system_eventfd_create(struct spa_system *object, int flags)
#  184|   {
#  185|-> 	return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, eventfd_create, 0, flags);
#  186|   }
#  187|   SPA_API_SYSTEM int spa_system_eventfd_write(struct spa_system *object, int fd, uint64_t count)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
pipewire-1.4.8/spa/include/spa/support/system.h:185:16: warning[-Wanalyzer-malloc-leak]: leak of ‘source’
pipewire-1.4.8/spa/plugins/support/loop.c:840:27: enter_function: entry to ‘loop_add_idle’
pipewire-1.4.8/spa/plugins/support/loop.c:847:18: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/support/loop.c:848:12: branch_false: following ‘false’ branch (when ‘source’ is non-NULL)...
pipewire-1.4.8/spa/plugins/support/loop.c:851:20: branch_false: ...to here
pipewire-1.4.8/spa/plugins/support/loop.c:851:20: call_function: inlined call to ‘spa_system_eventfd_create’ from ‘loop_add_idle’
#  183|   SPA_API_SYSTEM int spa_system_eventfd_create(struct spa_system *object, int flags)
#  184|   {
#  185|-> 	return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, eventfd_create, 0, flags);
#  186|   }
#  187|   SPA_API_SYSTEM int spa_system_eventfd_write(struct spa_system *object, int fd, uint64_t count)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def25]
pipewire-1.4.8/spa/include/spa/support/system.h:200:16: warning[-Wanalyzer-malloc-leak]: leak of ‘source’
pipewire-1.4.8/spa/plugins/support/loop.c:1047:27: enter_function: entry to ‘loop_add_signal’
pipewire-1.4.8/spa/plugins/support/loop.c:1055:18: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/support/loop.c:1056:12: branch_false: following ‘false’ branch (when ‘source’ is non-NULL)...
pipewire-1.4.8/spa/plugins/support/loop.c:1059:20: branch_false: ...to here
pipewire-1.4.8/spa/plugins/support/loop.c:1059:20: call_function: inlined call to ‘spa_system_signalfd_create’ from ‘loop_add_signal’
#  198|   SPA_API_SYSTEM int spa_system_signalfd_create(struct spa_system *object, int signal, int flags)
#  199|   {
#  200|-> 	return spa_api_method_fast_r(int, -ENOTSUP, spa_system, &object->iface, signalfd_create, 0,
#  201|   			signal, flags);
#  202|   }

Error: CPPCHECK_WARNING (CWE-476): [#def26]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  343|   
#  344|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  345|-> 	ap->profile_set = ps;
#  346|   	ap->profile.name = ap->name = pa_xstrdup("pro-audio");
#  347|   	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));

Error: CPPCHECK_WARNING (CWE-476): [#def27]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:346: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  344|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  345|   	ap->profile_set = ps;
#  346|-> 	ap->profile.name = ap->name = pa_xstrdup("pro-audio");
#  347|   	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));
#  348|   	ap->profile.available = ACP_AVAILABLE_YES;

Error: CPPCHECK_WARNING (CWE-476): [#def28]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:347: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  345|   	ap->profile_set = ps;
#  346|   	ap->profile.name = ap->name = pa_xstrdup("pro-audio");
#  347|-> 	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));
#  348|   	ap->profile.available = ACP_AVAILABLE_YES;
#  349|   	ap->profile.flags = ACP_PROFILE_PRO;

Error: CPPCHECK_WARNING (CWE-476): [#def29]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:348: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  346|   	ap->profile.name = ap->name = pa_xstrdup("pro-audio");
#  347|   	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));
#  348|-> 	ap->profile.available = ACP_AVAILABLE_YES;
#  349|   	ap->profile.flags = ACP_PROFILE_PRO;
#  350|   	ap->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);

Error: CPPCHECK_WARNING (CWE-476): [#def30]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:349: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  347|   	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));
#  348|   	ap->profile.available = ACP_AVAILABLE_YES;
#  349|-> 	ap->profile.flags = ACP_PROFILE_PRO;
#  350|   	ap->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  351|   	ap->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);

Error: CPPCHECK_WARNING (CWE-476): [#def31]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:350: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  348|   	ap->profile.available = ACP_AVAILABLE_YES;
#  349|   	ap->profile.flags = ACP_PROFILE_PRO;
#  350|-> 	ap->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  351|   	ap->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  352|   	pa_hashmap_put(ps->profiles, ap->name, ap);

Error: CPPCHECK_WARNING (CWE-476): [#def32]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:351: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  349|   	ap->profile.flags = ACP_PROFILE_PRO;
#  350|   	ap->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  351|-> 	ap->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  352|   	pa_hashmap_put(ps->profiles, ap->name, ap);
#  353|   

Error: CPPCHECK_WARNING (CWE-476): [#def33]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:352: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  350|   	ap->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  351|   	ap->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
#  352|-> 	pa_hashmap_put(ps->profiles, ap->name, ap);
#  353|   
#  354|   	ap->output_name = pa_xstrdup("pro-output");

Error: CPPCHECK_WARNING (CWE-476): [#def34]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  352|   	pa_hashmap_put(ps->profiles, ap->name, ap);
#  353|   
#  354|-> 	ap->output_name = pa_xstrdup("pro-output");
#  355|   	ap->input_name = pa_xstrdup("pro-input");
#  356|   	ap->priority = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def35]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:355: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  353|   
#  354|   	ap->output_name = pa_xstrdup("pro-output");
#  355|-> 	ap->input_name = pa_xstrdup("pro-input");
#  356|   	ap->priority = 1;
#  357|   

Error: CPPCHECK_WARNING (CWE-476): [#def36]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:356: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  354|   	ap->output_name = pa_xstrdup("pro-output");
#  355|   	ap->input_name = pa_xstrdup("pro-input");
#  356|-> 	ap->priority = 1;
#  357|   
#  358|   	pa_assert_se(asprintf(&device, "hw:%d", index) >= 0);

Error: CPPCHECK_WARNING (CWE-476): [#def37]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:514: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  512|   
#  513|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  514|-> 	ap->profile.name = ap->name = pa_xstrdup("off");
#  515|   	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  516|   	ap->profile.available = ACP_AVAILABLE_YES;

Error: CPPCHECK_WARNING (CWE-476): [#def38]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:515: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  513|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  514|   	ap->profile.name = ap->name = pa_xstrdup("off");
#  515|-> 	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  516|   	ap->profile.available = ACP_AVAILABLE_YES;
#  517|   	ap->profile.flags = ACP_PROFILE_OFF;

Error: CPPCHECK_WARNING (CWE-476): [#def39]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:516: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  514|   	ap->profile.name = ap->name = pa_xstrdup("off");
#  515|   	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  516|-> 	ap->profile.available = ACP_AVAILABLE_YES;
#  517|   	ap->profile.flags = ACP_PROFILE_OFF;
#  518|   	pa_hashmap_put(impl->profiles, ap->name, ap);

Error: CPPCHECK_WARNING (CWE-476): [#def40]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:517: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  515|   	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  516|   	ap->profile.available = ACP_AVAILABLE_YES;
#  517|-> 	ap->profile.flags = ACP_PROFILE_OFF;
#  518|   	pa_hashmap_put(impl->profiles, ap->name, ap);
#  519|   

Error: CPPCHECK_WARNING (CWE-476): [#def41]
pipewire-1.4.8/spa/plugins/alsa/acp/acp.c:518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  516|   	ap->profile.available = ACP_AVAILABLE_YES;
#  517|   	ap->profile.flags = ACP_PROFILE_OFF;
#  518|-> 	pa_hashmap_put(impl->profiles, ap->name, ap);
#  519|   
#  520|   	add_pro_profile(impl, impl->card.index);

Error: CPPCHECK_WARNING (CWE-476): [#def42]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:92: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   90|   
#   91|       jack = pa_xnew0(pa_alsa_jack, 1);
#   92|->     jack->path = path;
#   93|       jack->mixer_device_name = pa_xstrdup(mixer_device_name);
#   94|       jack->name = pa_xstrdup(name);

Error: CPPCHECK_WARNING (CWE-476): [#def43]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:93: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   91|       jack = pa_xnew0(pa_alsa_jack, 1);
#   92|       jack->path = path;
#   93|->     jack->mixer_device_name = pa_xstrdup(mixer_device_name);
#   94|       jack->name = pa_xstrdup(name);
#   95|       jack->alsa_id.name = pa_sprintf_malloc("%s Jack", name);

Error: CPPCHECK_WARNING (CWE-476): [#def44]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:94: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   92|       jack->path = path;
#   93|       jack->mixer_device_name = pa_xstrdup(mixer_device_name);
#   94|->     jack->name = pa_xstrdup(name);
#   95|       jack->alsa_id.name = pa_sprintf_malloc("%s Jack", name);
#   96|       jack->alsa_id.index = index;

Error: CPPCHECK_WARNING (CWE-476): [#def45]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:95: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   93|       jack->mixer_device_name = pa_xstrdup(mixer_device_name);
#   94|       jack->name = pa_xstrdup(name);
#   95|->     jack->alsa_id.name = pa_sprintf_malloc("%s Jack", name);
#   96|       jack->alsa_id.index = index;
#   97|       jack->state_unplugged = PA_AVAILABLE_NO;

Error: CPPCHECK_WARNING (CWE-476): [#def46]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:96: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   94|       jack->name = pa_xstrdup(name);
#   95|       jack->alsa_id.name = pa_sprintf_malloc("%s Jack", name);
#   96|->     jack->alsa_id.index = index;
#   97|       jack->state_unplugged = PA_AVAILABLE_NO;
#   98|       jack->state_plugged = PA_AVAILABLE_YES;

Error: CPPCHECK_WARNING (CWE-476): [#def47]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:97: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   95|       jack->alsa_id.name = pa_sprintf_malloc("%s Jack", name);
#   96|       jack->alsa_id.index = index;
#   97|->     jack->state_unplugged = PA_AVAILABLE_NO;
#   98|       jack->state_plugged = PA_AVAILABLE_YES;
#   99|       jack->ucm_devices = pa_dynarray_new(NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def48]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:98: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   96|       jack->alsa_id.index = index;
#   97|       jack->state_unplugged = PA_AVAILABLE_NO;
#   98|->     jack->state_plugged = PA_AVAILABLE_YES;
#   99|       jack->ucm_devices = pa_dynarray_new(NULL);
#  100|       jack->ucm_hw_mute_devices = pa_dynarray_new(NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def49]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:99: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   97|       jack->state_unplugged = PA_AVAILABLE_NO;
#   98|       jack->state_plugged = PA_AVAILABLE_YES;
#   99|->     jack->ucm_devices = pa_dynarray_new(NULL);
#  100|       jack->ucm_hw_mute_devices = pa_dynarray_new(NULL);
#  101|   

Error: CPPCHECK_WARNING (CWE-476): [#def50]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:100: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: jack
#   98|       jack->state_plugged = PA_AVAILABLE_YES;
#   99|       jack->ucm_devices = pa_dynarray_new(NULL);
#  100|->     jack->ucm_hw_mute_devices = pa_dynarray_new(NULL);
#  101|   
#  102|       return jack;

Error: CPPCHECK_WARNING (CWE-476): [#def51]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:1981: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 1979|   
# 1980|       e = pa_xnew0(pa_alsa_element, 1);
# 1981|->     e->path = p;
# 1982|       e->alsa_id.name = pa_xstrdup(name);
# 1983|       e->alsa_id.index = index;

Error: CPPCHECK_WARNING (CWE-476): [#def52]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:1982: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 1980|       e = pa_xnew0(pa_alsa_element, 1);
# 1981|       e->path = p;
# 1982|->     e->alsa_id.name = pa_xstrdup(name);
# 1983|       e->alsa_id.index = index;
# 1984|       e->direction = p->direction;

Error: CPPCHECK_WARNING (CWE-476): [#def53]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:1983: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 1981|       e->path = p;
# 1982|       e->alsa_id.name = pa_xstrdup(name);
# 1983|->     e->alsa_id.index = index;
# 1984|       e->direction = p->direction;
# 1985|       e->volume_limit = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def54]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:1984: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 1982|       e->alsa_id.name = pa_xstrdup(name);
# 1983|       e->alsa_id.index = index;
# 1984|->     e->direction = p->direction;
# 1985|       e->volume_limit = -1;
# 1986|   

Error: CPPCHECK_WARNING (CWE-476): [#def55]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:1985: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 1983|       e->alsa_id.index = index;
# 1984|       e->direction = p->direction;
# 1985|->     e->volume_limit = -1;
# 1986|   
# 1987|       PA_LLIST_INSERT_AFTER(pa_alsa_element, p->elements, p->last_element, e);

Error: CPPCHECK_WARNING (CWE-476): [#def56]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2065: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: o
# 2063|   
# 2064|       o = pa_xnew0(pa_alsa_option, 1);
# 2065|->     o->element = e;
# 2066|       o->alsa_name = pa_xstrdup(on);
# 2067|       o->alsa_idx = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def57]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2066: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: o
# 2064|       o = pa_xnew0(pa_alsa_option, 1);
# 2065|       o->element = e;
# 2066|->     o->alsa_name = pa_xstrdup(on);
# 2067|       o->alsa_idx = -1;
# 2068|   

Error: CPPCHECK_WARNING (CWE-476): [#def58]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2067: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: o
# 2065|       o->element = e;
# 2066|       o->alsa_name = pa_xstrdup(on);
# 2067|->     o->alsa_idx = -1;
# 2068|   
# 2069|       if (p->last_option && p->last_option->element == e)

Error: CPPCHECK_WARNING (CWE-476): [#def59]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2852: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2850|       p = pa_xnew0(pa_alsa_path, 1);
# 2851|       n = pa_path_get_filename(fname);
# 2852|->     p->name = pa_xstrndup(n, strcspn(n, "."));
# 2853|       p->proplist = pa_proplist_new();
# 2854|       p->direction = direction;

Error: CPPCHECK_WARNING (CWE-476): [#def60]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2853: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2851|       n = pa_path_get_filename(fname);
# 2852|       p->name = pa_xstrndup(n, strcspn(n, "."));
# 2853|->     p->proplist = pa_proplist_new();
# 2854|       p->direction = direction;
# 2855|       p->eld_device = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def61]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2854: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2852|       p->name = pa_xstrndup(n, strcspn(n, "."));
# 2853|       p->proplist = pa_proplist_new();
# 2854|->     p->direction = direction;
# 2855|       p->eld_device = -1;
# 2856|   

Error: CPPCHECK_WARNING (CWE-476): [#def62]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2855: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2853|       p->proplist = pa_proplist_new();
# 2854|       p->direction = direction;
# 2855|->     p->eld_device = -1;
# 2856|   
# 2857|       items[0].data = &p->priority;

Error: CPPCHECK_WARNING (CWE-476): [#def63]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2866: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2864|       pa_log_info("Loading path config: %s", fn);
# 2865|   
# 2866|->     r = pa_config_parse(fn, NULL, items, p->proplist, false, p);
# 2867|       pa_xfree(fn);
# 2868|   

Error: CPPCHECK_WARNING (CWE-476): [#def64]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2903: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2901|   
# 2902|       p = pa_xnew0(pa_alsa_path, 1);
# 2903|->     p->name = pa_xstrdup(element);
# 2904|       p->direction = direction;
# 2905|       p->proplist = pa_proplist_new();

Error: CPPCHECK_WARNING (CWE-476): [#def65]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2904: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2902|       p = pa_xnew0(pa_alsa_path, 1);
# 2903|       p->name = pa_xstrdup(element);
# 2904|->     p->direction = direction;
# 2905|       p->proplist = pa_proplist_new();
# 2906|   

Error: CPPCHECK_WARNING (CWE-476): [#def66]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2905: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2903|       p->name = pa_xstrdup(element);
# 2904|       p->direction = direction;
# 2905|->     p->proplist = pa_proplist_new();
# 2906|   
# 2907|       e = pa_xnew0(pa_alsa_element, 1);

Error: CPPCHECK_WARNING (CWE-476): [#def67]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2908: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2906|   
# 2907|       e = pa_xnew0(pa_alsa_element, 1);
# 2908|->     e->path = p;
# 2909|       e->alsa_id.name = pa_xstrdup(name);
# 2910|       e->alsa_id.index = index;

Error: CPPCHECK_WARNING (CWE-476): [#def68]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2909: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2907|       e = pa_xnew0(pa_alsa_element, 1);
# 2908|       e->path = p;
# 2909|->     e->alsa_id.name = pa_xstrdup(name);
# 2910|       e->alsa_id.index = index;
# 2911|       e->direction = direction;

Error: CPPCHECK_WARNING (CWE-476): [#def69]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2910: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2908|       e->path = p;
# 2909|       e->alsa_id.name = pa_xstrdup(name);
# 2910|->     e->alsa_id.index = index;
# 2911|       e->direction = direction;
# 2912|       e->volume_limit = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def70]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2911: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2909|       e->alsa_id.name = pa_xstrdup(name);
# 2910|       e->alsa_id.index = index;
# 2911|->     e->direction = direction;
# 2912|       e->volume_limit = -1;
# 2913|   

Error: CPPCHECK_WARNING (CWE-476): [#def71]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2912: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2910|       e->alsa_id.index = index;
# 2911|       e->direction = direction;
# 2912|->     e->volume_limit = -1;
# 2913|   
# 2914|       e->switch_use = PA_ALSA_SWITCH_MUTE;

Error: CPPCHECK_WARNING (CWE-476): [#def72]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2914: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2912|       e->volume_limit = -1;
# 2913|   
# 2914|->     e->switch_use = PA_ALSA_SWITCH_MUTE;
# 2915|       e->volume_use = PA_ALSA_VOLUME_MERGE;
# 2916|   

Error: CPPCHECK_WARNING (CWE-476): [#def73]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:2915: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 2913|   
# 2914|       e->switch_use = PA_ALSA_SWITCH_MUTE;
# 2915|->     e->volume_use = PA_ALSA_VOLUME_MERGE;
# 2916|   
# 2917|       PA_LLIST_PREPEND(pa_alsa_element, p->elements, e);

Error: CPPCHECK_WARNING (CWE-476): [#def74]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3026: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 3024|           } else {
# 3025|               s = pa_xnew0(pa_alsa_setting, 1);
# 3026|->             s->options = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 3027|               s->name = pa_xstrdup(o->name);
# 3028|               s->description = pa_xstrdup(o->description);

Error: CPPCHECK_WARNING (CWE-476): [#def75]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3027: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 3025|               s = pa_xnew0(pa_alsa_setting, 1);
# 3026|               s->options = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 3027|->             s->name = pa_xstrdup(o->name);
# 3028|               s->description = pa_xstrdup(o->description);
# 3029|               s->priority = o->priority;

Error: CPPCHECK_WARNING (CWE-476): [#def76]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3028: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 3026|               s->options = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 3027|               s->name = pa_xstrdup(o->name);
# 3028|->             s->description = pa_xstrdup(o->description);
# 3029|               s->priority = o->priority;
# 3030|           }

Error: CPPCHECK_WARNING (CWE-476): [#def77]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3029: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 3027|               s->name = pa_xstrdup(o->name);
# 3028|               s->description = pa_xstrdup(o->description);
# 3029|->             s->priority = o->priority;
# 3030|           }
# 3031|   

Error: CPPCHECK_WARNING (CWE-476): [#def78]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3032: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 3030|           }
# 3031|   
# 3032|->         pa_idxset_put(s->options, o, NULL);
# 3033|   
# 3034|           if (element_create_settings(e->next, s))

Error: CPPCHECK_WARNING (CWE-476): [#def79]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3354: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 3352|   
# 3353|       ps = pa_xnew0(pa_alsa_path_set, 1);
# 3354|->     ps->direction = direction;
# 3355|       ps->paths = pa_hashmap_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 3356|   

Error: CPPCHECK_WARNING (CWE-476): [#def80]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3355: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 3353|       ps = pa_xnew0(pa_alsa_path_set, 1);
# 3354|       ps->direction = direction;
# 3355|->     ps->paths = pa_hashmap_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 3356|   
# 3357|       if (direction == PA_ALSA_DIRECTION_OUTPUT)

Error: CPPCHECK_WARNING (CWE-476): [#def81]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3432: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 3430|   
# 3431|               e = pa_xnew0(pa_alsa_element, 1);
# 3432|->             e->path = p;
# 3433|               e->alsa_id.name = pa_xstrdup(name);
# 3434|               e->alsa_id.index = index;

Error: CPPCHECK_WARNING (CWE-476): [#def82]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3433: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 3431|               e = pa_xnew0(pa_alsa_element, 1);
# 3432|               e->path = p;
# 3433|->             e->alsa_id.name = pa_xstrdup(name);
# 3434|               e->alsa_id.index = index;
# 3435|               e->direction = direction;

Error: CPPCHECK_WARNING (CWE-476): [#def83]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3434: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 3432|               e->path = p;
# 3433|               e->alsa_id.name = pa_xstrdup(name);
# 3434|->             e->alsa_id.index = index;
# 3435|               e->direction = direction;
# 3436|               e->required_absent = PA_ALSA_REQUIRED_ANY;

Error: CPPCHECK_WARNING (CWE-476): [#def84]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3435: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 3433|               e->alsa_id.name = pa_xstrdup(name);
# 3434|               e->alsa_id.index = index;
# 3435|->             e->direction = direction;
# 3436|               e->required_absent = PA_ALSA_REQUIRED_ANY;
# 3437|               e->volume_limit = -1;

Error: CPPCHECK_WARNING (CWE-476): [#def85]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 3434|               e->alsa_id.index = index;
# 3435|               e->direction = direction;
# 3436|->             e->required_absent = PA_ALSA_REQUIRED_ANY;
# 3437|               e->volume_limit = -1;
# 3438|   

Error: CPPCHECK_WARNING (CWE-476): [#def86]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3437: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
# 3435|               e->direction = direction;
# 3436|               e->required_absent = PA_ALSA_REQUIRED_ANY;
# 3437|->             e->volume_limit = -1;
# 3438|   
# 3439|               PA_LLIST_INSERT_AFTER(pa_alsa_element, p->elements, p->last_element, e);

Error: CPPCHECK_WARNING (CWE-476): [#def87]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3854: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
# 3852|   
# 3853|       m = pa_xnew0(pa_alsa_mapping, 1);
# 3854|->     m->profile_set = ps;
# 3855|       m->exact_channels = true;
# 3856|       m->name = pa_xstrdup(name);

Error: CPPCHECK_WARNING (CWE-476): [#def88]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3855: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
# 3853|       m = pa_xnew0(pa_alsa_mapping, 1);
# 3854|       m->profile_set = ps;
# 3855|->     m->exact_channels = true;
# 3856|       m->name = pa_xstrdup(name);
# 3857|       pa_sample_spec_init(&m->sample_spec);

Error: CPPCHECK_WARNING (CWE-476): [#def89]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3881: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 3879|   
# 3880|       p = pa_xnew0(pa_alsa_profile, 1);
# 3881|->     p->profile_set = ps;
# 3882|       p->name = pa_xstrdup(name);
# 3883|   

Error: CPPCHECK_WARNING (CWE-476): [#def90]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3907: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: db_fix
# 3905|   
# 3906|       db_fix = pa_xnew0(pa_alsa_decibel_fix, 1);
# 3907|->     db_fix->profile_set = ps;
# 3908|       db_fix->name = pa_xstrdup(name);
# 3909|       db_fix->index = index;

Error: CPPCHECK_WARNING (CWE-476): [#def91]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3908: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: db_fix
# 3906|       db_fix = pa_xnew0(pa_alsa_decibel_fix, 1);
# 3907|       db_fix->profile_set = ps;
# 3908|->     db_fix->name = pa_xstrdup(name);
# 3909|       db_fix->index = index;
# 3910|       db_fix->key = pa_xstrdup(alsa_id);

Error: CPPCHECK_WARNING (CWE-476): [#def92]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3909: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: db_fix
# 3907|       db_fix->profile_set = ps;
# 3908|       db_fix->name = pa_xstrdup(name);
# 3909|->     db_fix->index = index;
# 3910|       db_fix->key = pa_xstrdup(alsa_id);
# 3911|   

Error: CPPCHECK_WARNING (CWE-476): [#def93]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3910: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: db_fix
# 3908|       db_fix->name = pa_xstrdup(name);
# 3909|       db_fix->index = index;
# 3910|->     db_fix->key = pa_xstrdup(alsa_id);
# 3911|   
# 3912|       pa_hashmap_put(ps->decibel_fixes, db_fix->key, db_fix);

Error: CPPCHECK_WARNING (CWE-476): [#def94]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:3912: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: db_fix
# 3910|       db_fix->key = pa_xstrdup(alsa_id);
# 3911|   
# 3912|->     pa_hashmap_put(ps->decibel_fixes, db_fix->key, db_fix);
# 3913|   
# 3914|       return db_fix;

Error: CPPCHECK_WARNING (CWE-401): [#def95]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4315: error[memleakOnRealloc]: Common realloc mistake: 'db_values' nulled but not freed upon failure
# 4313|                   if (prev_step + 1 - min_step == n) {
# 4314|                       n *= 2;
# 4315|->                     db_values = pa_xrenew(long, db_values, n);
# 4316|                   }
# 4317|   

Error: CPPCHECK_WARNING (CWE-476): [#def96]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4577: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 4575|   
# 4576|       p = pa_xnew0(pa_alsa_profile, 1);
# 4577|->     p->profile_set = ps;
# 4578|       p->name = name;
# 4579|   

Error: CPPCHECK_WARNING (CWE-476): [#def97]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4578: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 4576|       p = pa_xnew0(pa_alsa_profile, 1);
# 4577|       p->profile_set = ps;
# 4578|->     p->name = name;
# 4579|   
# 4580|       if (m) {

Error: CPPCHECK_WARNING (CWE-476): [#def98]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4596: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 4594|       }
# 4595|   
# 4596|->     pa_hashmap_put(ps->profiles, p->name, p);
# 4597|   }
# 4598|   

Error: CPPCHECK_WARNING (CWE-476): [#def99]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4858: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 4856|   
# 4857|       ps = pa_xnew0(pa_alsa_profile_set, 1);
# 4858|->     ps->mappings = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_mapping_free);
# 4859|       ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_profile_free);
# 4860|       ps->decibel_fixes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) decibel_fix_free);

Error: CPPCHECK_WARNING (CWE-476): [#def100]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4859: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 4857|       ps = pa_xnew0(pa_alsa_profile_set, 1);
# 4858|       ps->mappings = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_mapping_free);
# 4859|->     ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_profile_free);
# 4860|       ps->decibel_fixes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) decibel_fix_free);
# 4861|       ps->input_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);

Error: CPPCHECK_WARNING (CWE-476): [#def101]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4860: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 4858|       ps->mappings = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_mapping_free);
# 4859|       ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_profile_free);
# 4860|->     ps->decibel_fixes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) decibel_fix_free);
# 4861|       ps->input_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);
# 4862|       ps->output_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);

Error: CPPCHECK_WARNING (CWE-476): [#def102]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4861: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 4859|       ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_profile_free);
# 4860|       ps->decibel_fixes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) decibel_fix_free);
# 4861|->     ps->input_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);
# 4862|       ps->output_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);
# 4863|   

Error: CPPCHECK_WARNING (CWE-476): [#def103]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-mixer.c:4862: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 4860|       ps->decibel_fixes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) decibel_fix_free);
# 4861|       ps->input_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);
# 4862|->     ps->output_paths = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL, (pa_free_cb_t) pa_alsa_path_free);
# 4863|   
# 4864|       items[0].data = &ps->auto_profiles;

Error: CPPCHECK_WARNING (CWE-476): [#def104]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:689: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  687|           pa_alsa_ucm_device *d = pa_xnew0(pa_alsa_ucm_device, 1);
#  688|   
#  689|->         d->proplist = pa_proplist_new();
#  690|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(dev_list[i]));
#  691|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(dev_list[i + 1]));

Error: CPPCHECK_WARNING (CWE-476): [#def105]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:690: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  688|   
#  689|           d->proplist = pa_proplist_new();
#  690|->         pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(dev_list[i]));
#  691|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(dev_list[i + 1]));
#  692|           d->ucm_ports = pa_dynarray_new(NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def106]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:691: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  689|           d->proplist = pa_proplist_new();
#  690|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(dev_list[i]));
#  691|->         pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(dev_list[i + 1]));
#  692|           d->ucm_ports = pa_dynarray_new(NULL);
#  693|           d->hw_mute_jacks = pa_dynarray_new(NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def107]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:692: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  690|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(dev_list[i]));
#  691|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(dev_list[i + 1]));
#  692|->         d->ucm_ports = pa_dynarray_new(NULL);
#  693|           d->hw_mute_jacks = pa_dynarray_new(NULL);
#  694|           d->available = PA_AVAILABLE_UNKNOWN;

Error: CPPCHECK_WARNING (CWE-476): [#def108]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:693: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  691|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(dev_list[i + 1]));
#  692|           d->ucm_ports = pa_dynarray_new(NULL);
#  693|->         d->hw_mute_jacks = pa_dynarray_new(NULL);
#  694|           d->available = PA_AVAILABLE_UNKNOWN;
#  695|   

Error: CPPCHECK_WARNING (CWE-476): [#def109]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:694: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  692|           d->ucm_ports = pa_dynarray_new(NULL);
#  693|           d->hw_mute_jacks = pa_dynarray_new(NULL);
#  694|->         d->available = PA_AVAILABLE_UNKNOWN;
#  695|   
#  696|           d->playback_volumes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, pa_xfree,

Error: CPPCHECK_WARNING (CWE-476): [#def110]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:696: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  694|           d->available = PA_AVAILABLE_UNKNOWN;
#  695|   
#  696|->         d->playback_volumes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, pa_xfree,
#  697|                                                     (pa_free_cb_t) ucm_volume_free);
#  698|           d->capture_volumes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, pa_xfree,

Error: CPPCHECK_WARNING (CWE-476): [#def111]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:698: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: d
#  696|           d->playback_volumes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, pa_xfree,
#  697|                                                     (pa_free_cb_t) ucm_volume_free);
#  698|->         d->capture_volumes = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, pa_xfree,
#  699|                                                    (pa_free_cb_t) ucm_volume_free);
#  700|   

Error: CPPCHECK_WARNING (CWE-476): [#def112]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:794: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
#  792|   
#  793|           m = pa_xnew0(pa_alsa_ucm_modifier, 1);
#  794|->         m->proplist = pa_proplist_new();
#  795|   
#  796|           pa_proplist_sets(m->proplist, PA_ALSA_PROP_UCM_NAME, mod_list[i]);

Error: CPPCHECK_WARNING (CWE-476): [#def113]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:796: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
#  794|           m->proplist = pa_proplist_new();
#  795|   
#  796|->         pa_proplist_sets(m->proplist, PA_ALSA_PROP_UCM_NAME, mod_list[i]);
#  797|           pa_proplist_sets(m->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(mod_list[i + 1]));
#  798|   

Error: CPPCHECK_WARNING (CWE-476): [#def114]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:797: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
#  795|   
#  796|           pa_proplist_sets(m->proplist, PA_ALSA_PROP_UCM_NAME, mod_list[i]);
#  797|->         pa_proplist_sets(m->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(mod_list[i + 1]));
#  798|   
#  799|           PA_LLIST_PREPEND(pa_alsa_ucm_modifier, verb->modifiers, m);

Error: CPPCHECK_WARNING (CWE-476): [#def115]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:1134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: verb
# 1132|   
# 1133|       verb = pa_xnew0(pa_alsa_ucm_verb, 1);
# 1134|->     verb->proplist = pa_proplist_new();
# 1135|   
# 1136|       pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(verb_name));

Error: CPPCHECK_WARNING (CWE-476): [#def116]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:1136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: verb
# 1134|       verb->proplist = pa_proplist_new();
# 1135|   
# 1136|->     pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(verb_name));
# 1137|       pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(verb_desc));
# 1138|   

Error: CPPCHECK_WARNING (CWE-476): [#def117]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:1137: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: verb
# 1135|   
# 1136|       pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(verb_name));
# 1137|->     pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(verb_desc));
# 1138|   
# 1139|       value = ucm_verb_value(uc_mgr, verb_name, "Priority");

Error: CPPCHECK_WARNING (CWE-476): [#def118]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:1809: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 1807|       /* create empty path set for the future path additions */
# 1808|       ps = pa_xnew0(pa_alsa_path_set, 1);
# 1809|->     ps->direction = m->direction;
# 1810|       ps->paths = pa_hashmap_new_full(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func, pa_xfree,
# 1811|                                       (pa_free_cb_t) pa_alsa_path_free);

Error: CPPCHECK_WARNING (CWE-476): [#def119]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:1810: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 1808|       ps = pa_xnew0(pa_alsa_path_set, 1);
# 1809|       ps->direction = m->direction;
# 1810|->     ps->paths = pa_hashmap_new_full(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func, pa_xfree,
# 1811|                                       (pa_free_cb_t) pa_alsa_path_free);
# 1812|   

Error: CPPCHECK_WARNING (CWE-476): [#def120]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2185|   
# 2186|       p = pa_xnew0(pa_alsa_profile, 1);
# 2187|->     p->profile_set = ps;
# 2188|       p->name = pa_xstrdup(profile_name);
# 2189|       p->description = pa_xstrdup(profile_desc);

Error: CPPCHECK_WARNING (CWE-476): [#def121]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2186|       p = pa_xnew0(pa_alsa_profile, 1);
# 2187|       p->profile_set = ps;
# 2188|->     p->name = pa_xstrdup(profile_name);
# 2189|       p->description = pa_xstrdup(profile_desc);
# 2190|       p->priority = profile_priority;

Error: CPPCHECK_WARNING (CWE-476): [#def122]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2187|       p->profile_set = ps;
# 2188|       p->name = pa_xstrdup(profile_name);
# 2189|->     p->description = pa_xstrdup(profile_desc);
# 2190|       p->priority = profile_priority;
# 2191|       p->ucm_context.verb = verb;

Error: CPPCHECK_WARNING (CWE-476): [#def123]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2188|       p->name = pa_xstrdup(profile_name);
# 2189|       p->description = pa_xstrdup(profile_desc);
# 2190|->     p->priority = profile_priority;
# 2191|       p->ucm_context.verb = verb;
# 2192|   

Error: CPPCHECK_WARNING (CWE-476): [#def124]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2191: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2189|       p->description = pa_xstrdup(profile_desc);
# 2190|       p->priority = profile_priority;
# 2191|->     p->ucm_context.verb = verb;
# 2192|   
# 2193|       p->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);

Error: CPPCHECK_WARNING (CWE-476): [#def125]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2191|       p->ucm_context.verb = verb;
# 2192|   
# 2193|->     p->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 2194|       p->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 2195|   

Error: CPPCHECK_WARNING (CWE-476): [#def126]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2192|   
# 2193|       p->output_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 2194|->     p->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 2195|   
# 2196|       p->supported = true;

Error: CPPCHECK_WARNING (CWE-476): [#def127]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2196: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2194|       p->input_mappings = pa_idxset_new(pa_idxset_trivial_hash_func, pa_idxset_trivial_compare_func);
# 2195|   
# 2196|->     p->supported = true;
# 2197|       pa_hashmap_put(ps->profiles, p->name, p);
# 2198|   

Error: CPPCHECK_WARNING (CWE-476): [#def128]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2197: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
# 2195|   
# 2196|       p->supported = true;
# 2197|->     pa_hashmap_put(ps->profiles, p->name, p);
# 2198|   
# 2199|       PA_IDXSET_FOREACH(map, mappings, idx)

Error: CPPCHECK_WARNING (CWE-476): [#def129]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2566: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 2564|       uint32_t idx;
# 2565|   
# 2566|->     PA_HASHMAP_FOREACH(p, ps->profiles, state) {
# 2567|           pa_log_info("Probing profile %s", p->name);
# 2568|   

Error: CPPCHECK_WARNING (CWE-476): [#def130]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2649: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 2647|   
# 2648|       ps = pa_xnew0(pa_alsa_profile_set, 1);
# 2649|->     ps->mappings = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL,
# 2650|                                          (pa_free_cb_t) pa_alsa_mapping_free);
# 2651|       ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL,

Error: CPPCHECK_WARNING (CWE-476): [#def131]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2651: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 2649|       ps->mappings = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL,
# 2650|                                          (pa_free_cb_t) pa_alsa_mapping_free);
# 2651|->     ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL,
# 2652|                                          (pa_free_cb_t) pa_alsa_profile_free);
# 2653|       ps->decibel_fixes = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);

Error: CPPCHECK_WARNING (CWE-476): [#def132]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2653: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 2651|       ps->profiles = pa_hashmap_new_full(pa_idxset_string_hash_func, pa_idxset_string_compare_func, NULL,
# 2652|                                          (pa_free_cb_t) pa_alsa_profile_free);
# 2653|->     ps->decibel_fixes = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
# 2654|   
# 2655|       /* create profiles for each verb */

Error: CPPCHECK_WARNING (CWE-476): [#def133]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-ucm.c:2671: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ps
# 2669|   
# 2670|       ucm_probe_profile_set(ucm, ps);
# 2671|->     ps->probed = true;
# 2672|   
# 2673|       return ps;

Error: CPPCHECK_WARNING (CWE-476): [#def134]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1470: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: values
# 1468|       buf = pa_strbuf_new();
# 1469|   
# 1470|->     for (i = 0; values[i]; i++) {
# 1471|           pa_strbuf_printf(buf, " %u", values[i]);
# 1472|       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def135]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1511:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_true: following ‘true’ branch (when ‘n != 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1507:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1507:17: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1509:28: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1510:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1510:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1511:23: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1511:17: danger: ‘rates + (long unsigned int)j * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/8)
# 1509|           for (i = 0, j = 0; i < PA_ELEMENTSOF(all_rates); i++) {
# 1510|               if (supported[i])
# 1511|->                 rates[j++] = all_rates[i];
# 1512|           }
# 1513|   

Error: CPPCHECK_WARNING (CWE-476): [#def136]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1514: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rates
# 1512|           }
# 1513|   
# 1514|->         rates[j] = 0;
# 1515|       } else {
# 1516|           rates = pa_xnew(unsigned int, 2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def137]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1514:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_true: following ‘true’ branch (when ‘n != 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1507:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1507:17: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1509:28: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1510:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1510:16: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1509:58: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1514:9: danger: ‘rates + (long unsigned int)j * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/8)
# 1512|           }
# 1513|   
# 1514|->         rates[j] = 0;
# 1515|       } else {
# 1516|           rates = pa_xnew(unsigned int, 2);

Error: CPPCHECK_WARNING (CWE-476): [#def138]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1518: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: rates
# 1516|           rates = pa_xnew(unsigned int, 2);
# 1517|   
# 1518|->         rates[0] = fallback_rate;
# 1519|           if ((ret = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rates[0], NULL)) < 0) {
# 1520|               pa_log_debug("snd_pcm_hw_params_set_rate_near() failed: %s", pa_alsa_strerror(ret));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def139]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1518:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1516:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1516:17: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1518:9: danger: ‘rates’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/8)
# 1516|           rates = pa_xnew(unsigned int, 2);
# 1517|   
# 1518|->         rates[0] = fallback_rate;
# 1519|           if ((ret = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rates[0], NULL)) < 0) {
# 1520|               pa_log_debug("snd_pcm_hw_params_set_rate_near() failed: %s", pa_alsa_strerror(ret));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def140]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1519:20: warning[-Wanalyzer-malloc-leak]: leak of ‘rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1516:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1516:17: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1519:20: danger: ‘rates’ leaks here; was allocated at [(9)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/8)
# 1517|   
# 1518|           rates[0] = fallback_rate;
# 1519|->         if ((ret = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rates[0], NULL)) < 0) {
# 1520|               pa_log_debug("snd_pcm_hw_params_set_rate_near() failed: %s", pa_alsa_strerror(ret));
# 1521|               pa_xfree(rates);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def141]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1590:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_true: following ‘true’ branch (when ‘n != 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1586:19: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1586:19: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1588:28: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1589:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1589:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1590:25: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1590:17: danger: ‘formats + (long unsigned int)j * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/8)
# 1588|           for (i = 0, j = 0; i < PA_ELEMENTSOF(all_formats); i++) {
# 1589|               if (supported[i])
# 1590|->                 formats[j++] = all_formats[i];
# 1591|           }
# 1592|   

Error: CPPCHECK_WARNING (CWE-476): [#def142]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1593: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: formats
# 1591|           }
# 1592|   
# 1593|->         formats[j] = PA_SAMPLE_MAX;
# 1594|       } else {
# 1595|           formats = pa_xnew(pa_sample_format_t, 2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1593:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_true: following ‘true’ branch (when ‘n != 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1586:19: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1586:19: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1588:28: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1589:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1589:16: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1588:60: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1593:9: danger: ‘formats + (long unsigned int)j * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/8)
# 1591|           }
# 1592|   
# 1593|->         formats[j] = PA_SAMPLE_MAX;
# 1594|       } else {
# 1595|           formats = pa_xnew(pa_sample_format_t, 2);

Error: CPPCHECK_WARNING (CWE-476): [#def144]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1597: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: formats
# 1595|           formats = pa_xnew(pa_sample_format_t, 2);
# 1596|   
# 1597|->         formats[0] = fallback_format;
# 1598|           if ((ret = snd_pcm_hw_params_set_format(pcm, hwparams, format_trans_to_pcm[formats[0]])) < 0) {
# 1599|               pa_log_debug("snd_pcm_hw_params_set_format() failed: %s", pa_alsa_strerror(ret));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def145]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1597:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1597:9: danger: ‘formats’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/8)
# 1595|           formats = pa_xnew(pa_sample_format_t, 2);
# 1596|   
# 1597|->         formats[0] = fallback_format;
# 1598|           if ((ret = snd_pcm_hw_params_set_format(pcm, hwparams, format_trans_to_pcm[formats[0]])) < 0) {
# 1599|               pa_log_debug("snd_pcm_hw_params_set_format() failed: %s", pa_alsa_strerror(ret));

Error: CPPCHECK_WARNING (CWE-476): [#def146]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1598: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: formats
# 1596|   
# 1597|           formats[0] = fallback_format;
# 1598|->         if ((ret = snd_pcm_hw_params_set_format(pcm, hwparams, format_trans_to_pcm[formats[0]])) < 0) {
# 1599|               pa_log_debug("snd_pcm_hw_params_set_format() failed: %s", pa_alsa_strerror(ret));
# 1600|               pa_xfree(formats);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def147]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1598:20: warning[-Wanalyzer-malloc-leak]: leak of ‘formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1598:20: danger: ‘formats’ leaks here; was allocated at [(9)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/8)
# 1596|   
# 1597|           formats[0] = fallback_format;
# 1598|->         if ((ret = snd_pcm_hw_params_set_format(pcm, hwparams, format_trans_to_pcm[formats[0]])) < 0) {
# 1599|               pa_log_debug("snd_pcm_hw_params_set_format() failed: %s", pa_alsa_strerror(ret));
# 1600|               pa_xfree(formats);

Error: CPPCHECK_WARNING (CWE-476): [#def148]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1604: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: formats
# 1602|           }
# 1603|   
# 1604|->         formats[1] = PA_SAMPLE_MAX;
# 1605|       }
# 1606|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1635:12: warning[-Wanalyzer-malloc-leak]: leak of ‘formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1532:21: enter_function: entry to ‘pa_alsa_get_supported_formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1598:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1599:13: call_function: inlined call to ‘pa_alsa_strerror’ from ‘pa_alsa_get_supported_formats’
# 1633|   
# 1634|   const char* pa_alsa_strerror(int errnum) {
# 1635|->     return snd_strerror(errnum);
# 1636|   }
# 1637|   

Error: CPPCHECK_WARNING (CWE-476): [#def150]
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1743: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: _helem
# 1741|               if (!new_melem) {
# 1742|                   _helem = pa_xmalloc(sizeof(snd_hctl_elem_t *));
# 1743|->                 *_helem = helem;
# 1744|                   /* Put the hctl pointer as our private data - it will be useful for callbacks */
# 1745|                   if ((err = snd_mixer_elem_new(&new_melem, SND_MIXER_ELEM_PULSEAUDIO, 0, _helem, mixer_melem_free)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-688): [#def151]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:222:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘pa_maybe_prefix_path(fname,  path)’ where non-null expected
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:216:14: enter_function: entry to ‘try_path’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:218:20: call_function: calling ‘pa_maybe_prefix_path’ from ‘try_path’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:218:20: return_function: returning to ‘try_path’ from ‘pa_maybe_prefix_path’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:222:9: danger: argument 1 (‘pa_maybe_prefix_path(fname,  path)’) from [(6)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/5) could be NULL where non-null expected
#  220|       pa_log_trace("Check for file: %s", result);
#  221|   
#  222|->     if (access(result, R_OK) == 0)
#  223|   	return result;
#  224|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1532:21: enter_function: entry to ‘pa_alsa_get_supported_formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1598:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1599:13: call_function: inlined call to ‘pa_alsa_strerror’ from ‘pa_alsa_get_supported_formats’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1599:13: call_function: calling ‘pa_log_level_meta’ from ‘pa_alsa_get_supported_formats’
#  240|   	va_list args;
#  241|   	va_start(args,fmt);
#  242|-> 	pa_log_levelv_meta(level,file,line,func,fmt,args);
#  243|   	va_end(args);
#  244|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def153]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1479:15: enter_function: entry to ‘pa_alsa_get_supported_rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_true: following ‘true’ branch (when ‘n != 0’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1507:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1507:17: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1509:28: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1510:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1510:16: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1509:58: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1528:5: call_function: calling ‘dump_supported_rates’ from ‘pa_alsa_get_supported_rates’
#  240|   	va_list args;
#  241|   	va_start(args,fmt);
#  242|-> 	pa_log_levelv_meta(level,file,line,func,fmt,args);
#  243|   	va_end(args);
#  244|   }

Error: CPPCHECK_WARNING (CWE-476): [#def154]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:365: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
#  363|   {
#  364|   	pa_strbuf *s = pa_xnew0(pa_strbuf,1);
#  365|-> 	s->f = open_memstream(&s->ptr, &s->size);
#  366|   	return s;
#  367|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def155]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:365:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1462:13: enter_function: entry to ‘dump_supported_rates’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1468:11: call_function: calling ‘pa_strbuf_new’ from ‘dump_supported_rates’
#  363|   {
#  364|   	pa_strbuf *s = pa_xnew0(pa_strbuf,1);
#  365|-> 	s->f = open_memstream(&s->ptr, &s->size);
#  366|   	return s;
#  367|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def156]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:439:12: warning[-Wanalyzer-malloc-leak]: leak of ‘try_path(fname,  data_dir)’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:246:7: enter_function: entry to ‘get_data_path’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:256:8: branch_true: following ‘true’ branch (when ‘data_dir’ is non-NULL)...
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:257:23: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:257:23: call_function: calling ‘try_path’ from ‘get_data_path’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.c:257:23: return_function: returning to ‘get_data_path’ from ‘try_path’
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:444:9: call_function: inlined call to ‘pa_is_path_absolute’ from ‘pa_maybe_prefix_path’
#  437|   static inline bool pa_is_path_absolute(const char *fn)
#  438|   {
#  439|->     return *fn == PA_PATH_SEP_CHAR;
#  440|   }
#  441|   

Error: CPPCHECK_WARNING (CWE-401): [#def157]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:516: error[memleakOnRealloc]: Common realloc mistake: 't' nulled but not freed upon failure
#  514|           if (i >= n) {
#  515|               n *= 2;
#  516|->             t = pa_xrenew(char*, t, n);
#  517|           }
#  518|       }

Error: CPPCHECK_WARNING (CWE-476): [#def158]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:541: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  539|           return NULL;
#  540|       ret = pa_xmalloc(prefix + 1);
#  541|->     memcpy(ret, str, prefix);
#  542|       ret[prefix] = '\0';
#  543|       return ret;

Error: CPPCHECK_WARNING (CWE-476): [#def159]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:542: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ret
#  540|       ret = pa_xmalloc(prefix + 1);
#  541|       memcpy(ret, str, prefix);
#  542|->     ret[prefix] = '\0';
#  543|       return ret;
#  544|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def160]
pipewire-1.4.8/spa/plugins/alsa/acp/compat.h:593:10: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘s’ where non-null expected
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1061:6: enter_function: entry to ‘pa_alsa_init_proplist_pcm’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1077:8: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1080:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1080:9: call_function: calling ‘pa_alsa_init_proplist_pcm_info’ from ‘pa_alsa_init_proplist_pcm’
#  591|   {
#  592|       char *e, *l = NULL;
#  593|->     s += strspn(s, PA_WHITESPACE);
#  594|       for (e = s; *e; e++)
#  595|           if (!strchr(PA_WHITESPACE, *e))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def161]
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:119:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘state.section’ where non-null expected
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:187:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:195:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/conf-parser.c:197:13: call_function: calling ‘parse_line’ from ‘pa_config_parse’
#  117|           state->section = pa_xstrndup(state->lvalue + 1, k-2);
#  118|   
#  119|->         if (pa_streq(state->section, "Properties")) {
#  120|               if (!state->proplist) {
#  121|                   pa_log("[%s:%u] \"Properties\" section is not allowed in this file.", state->filename, state->lineno);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def162]
pipewire-1.4.8/spa/plugins/alsa/acp/hashmap.h:85:42: warning[-Wanalyzer-malloc-leak]: leak of ‘pm’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1839:16: enter_function: entry to ‘pa_alsa_create_mixer’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1842:10: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1843:8: branch_false: following ‘false’ branch (when ‘pm’ is non-NULL)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1846:5: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:5: call_function: calling ‘pa_hashmap_put’ from ‘pa_alsa_create_mixer’
#   83|   	pa_hashmap_item *item = NULL;
#   84|   	pa_array_for_each(item, &h->array) {
#   85|-> 		if (item->key != NULL && h->compare_func(item->key, key) == 0)
#   86|   			return item;
#   87|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def163]
pipewire-1.4.8/spa/plugins/alsa/acp/hashmap.h:102:12: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1839:16: enter_function: entry to ‘pa_alsa_create_mixer’
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1843:8: branch_false: following ‘false’ branch (when ‘pm’ is non-NULL)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1846:5: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_true: ...to here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/alsa/acp/alsa-util.c:1848:5: call_function: calling ‘pa_hashmap_put’ from ‘pa_alsa_create_mixer’
#  100|   {
#  101|   	pa_hashmap_item *item = pa_hashmap_find(h, key);
#  102|-> 	if (item != NULL)
#  103|   		return -1;
#  104|   	item = pa_hashmap_find_free(h);

Error: CPPCHECK_WARNING (CWE-190): [#def164]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:152: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  150|   	info.props = &SPA_DICT_INIT_ARRAY(items);
#  151|   
#  152|-> 	spa_device_emit_object_info(&this->hooks, id, &info);
#  153|   
#  154|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def165]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:168: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  166|   	snd_ctl_card_info_alloca(&cardinfo);
#  167|   	if ((err = snd_ctl_card_info(ctl_hndl, cardinfo)) < 0) {
#  168|-> 		spa_log_error(this->log, "error card info: %s", snd_strerror(err));
#  169|   		return err;
#  170|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def166]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:173: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  171|   
#  172|   	for (i = 0; i < this->n_nodes; i++)
#  173|-> 		spa_device_emit_object_info(&this->hooks, i, NULL);
#  174|   
#  175|   	this->n_nodes = this->n_capture = this->n_playback = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def167]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:185: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  183|   	while (1) {
#  184|   		if ((err = snd_ctl_pcm_next_device(ctl_hndl, &dev)) < 0) {
#  185|-> 			spa_log_error(this->log, "error iterating devices: %s", snd_strerror(err));
#  186|   			break;
#  187|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def168]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:197: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  195|   		if ((err = snd_ctl_pcm_info(ctl_hndl, pcminfo)) < 0) {
#  196|   			if (err != -ENOENT)
#  197|-> 				spa_log_error(this->log, "error pcm info: %s", snd_strerror(err));
#  198|   		}
#  199|   		if (err >= 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def169]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:207: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  205|   		if ((err = snd_ctl_pcm_info(ctl_hndl, pcminfo)) < 0) {
#  206|   			if (err != -ENOENT)
#  207|-> 				spa_log_error(this->log, "error pcm info: %s", snd_strerror(err));
#  208|   		}
#  209|   		if (err >= 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def170]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:225: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  223|   	int err;
#  224|   
#  225|-> 	spa_log_debug(this->log, "enumerate PCM nodes for card %s; profile: %d",
#  226|   	              this->props.device, id);
#  227|   

Error: CPPCHECK_WARNING (CWE-190): [#def171]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:229: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  227|   
#  228|   	if ((err = snd_ctl_open(&ctl_hndl, this->props.device, 0)) < 0) {
#  229|-> 		spa_log_error(this->log, "can't open control for card %s: %s",
#  230|   				this->props.device, snd_strerror(err));
#  231|   		return err;

Error: CPPCHECK_WARNING (CWE-190): [#def172]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:236: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  234|   	err = activate_profile(this, ctl_hndl, id);
#  235|   
#  236|-> 	spa_log_debug(this->log, "done enumerating PCM nodes for card %s", this->props.device);
#  237|   	snd_ctl_close(ctl_hndl);
#  238|   

Error: CPPCHECK_WARNING (CWE-190): [#def173]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:259: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  257|   		snd_ctl_t *ctl_hndl;
#  258|   
#  259|-> 		spa_log_debug(this->log, "open card %s", this->props.device);
#  260|   		if ((err = snd_ctl_open(&ctl_hndl, this->props.device, 0)) < 0) {
#  261|   			spa_log_error(this->log, "can't open control for card %s: %s",

Error: CPPCHECK_WARNING (CWE-190): [#def174]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:261: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  259|   		spa_log_debug(this->log, "open card %s", this->props.device);
#  260|   		if ((err = snd_ctl_open(&ctl_hndl, this->props.device, 0)) < 0) {
#  261|-> 			spa_log_error(this->log, "can't open control for card %s: %s",
#  262|   					this->props.device, snd_strerror(err));
#  263|   			return err;

Error: CPPCHECK_WARNING (CWE-190): [#def175]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:269: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  267|   		err = snd_ctl_card_info(ctl_hndl, info);
#  268|   
#  269|-> 		spa_log_debug(this->log, "close card %s", this->props.device);
#  270|   		snd_ctl_close(ctl_hndl);
#  271|   

Error: CPPCHECK_WARNING (CWE-190): [#def176]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:273: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  271|   
#  272|   		if (err < 0) {
#  273|-> 			spa_log_error(this->log, "error hardware info: %s", snd_strerror(err));
#  274|   			return err;
#  275|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def177]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:301: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  299|   		}
#  300|   
#  301|-> 		spa_device_emit_info(&this->hooks, &this->device_info);
#  302|   		this->device_info.change_mask = 0;
#  303|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def178]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:336: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  334|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  335|   
#  336|-> 	spa_device_emit_result(&this->hooks, seq, 0, 0, NULL);
#  337|   
#  338|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def179]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:437: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  435|   		goto next;
#  436|   
#  437|-> 	spa_device_emit_result(&this->hooks, seq, 0,
#  438|   			SPA_RESULT_TYPE_DEVICE_PARAMS, &result);
#  439|   

Error: CPPCHECK_WARNING (CWE-190): [#def180]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:476: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  474|   				SPA_PARAM_PROFILE_index, SPA_POD_OPT_Int(&idx),
#  475|   				SPA_PARAM_PROFILE_name, SPA_POD_OPT_String(&name))) < 0) {
#  476|-> 			spa_log_warn(this->log, "can't parse profile");
#  477|   			spa_debug_log_pod(this->log, SPA_LOG_LEVEL_DEBUG, 0, NULL, param);
#  478|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def181]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:481: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  479|   		}
#  480|   		if (idx == SPA_ID_INVALID && name == NULL) {
#  481|-> 			spa_log_warn(this->log, "profile needs name or index");
#  482|   			return -EINVAL;
#  483|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def182]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-device.c:487: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  485|   			idx = find_profile_by_name(name);
#  486|   		if (idx == SPA_ID_INVALID) {
#  487|-> 			spa_log_warn(this->log, "unknown profile %s", name);
#  488|   			return -EINVAL;
#  489|   		}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def183]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:28:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:868:1: enter_function: entry to ‘impl_init’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:873:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:874:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:874:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:876:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:881:21: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:881:21: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:884:29: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:884:29: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:885:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:885:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:886:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:886:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:888:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:892:12: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:892:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:896:12: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:896:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:901:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-sink.c:929:9: call_function: calling ‘reset_props’ from ‘impl_init’
#   26|   static void reset_props(struct props *props)
#   27|   {
#   28|-> 	strncpy(props->device, default_device, 64);
#   29|   	props->use_chmap = DEFAULT_USE_CHMAP;
#   30|   	spa_scnprintf(props->media_class, sizeof(props->media_class), "%s", "Audio/Sink");

Error: CPPCHECK_WARNING (CWE-190): [#def184]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:159: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  157|   		goto next;
#  158|   
#  159|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  160|   
#  161|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def185]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:353: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  351|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  352|   
#  353|-> 	spa_node_emit_result(&this->hooks, seq, 0, 0, NULL);
#  354|   
#  355|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def186]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:492: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  490|   		goto next;
#  491|   
#  492|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  493|   
#  494|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def187]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:521: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  519|   			return 0;
#  520|   
#  521|-> 		spa_log_debug(this->log, "clear format");
#  522|   		spa_alsa_close(this);
#  523|   		clear_buffers(this);

Error: CPPCHECK_WARNING (CWE-190): [#def188]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:637: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  635|   	spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
#  636|   
#  637|-> 	spa_log_debug(this->log, "%p: use %d buffers", this, n_buffers);
#  638|   
#  639|   	if (this->n_buffers > 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def189]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:660: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  658|   
#  659|   		if (d[0].data == NULL) {
#  660|-> 			spa_log_error(this->log, "%p: need mapped memory", this);
#  661|   			return -EINVAL;
#  662|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def190]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:683: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  681|   	spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
#  682|   
#  683|-> 	spa_log_debug(this->log, "%p: io %d %p %zd", this, id, data, size);
#  684|   
#  685|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def191]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:839: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  837|   
#  838|   	if (this->main_loop == NULL) {
#  839|-> 		spa_log_error(this->log, "a main loop is needed");
#  840|   		return -EINVAL;
#  841|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def192]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:843: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  841|   	}
#  842|   	if (this->data_loop == NULL) {
#  843|-> 		spa_log_error(this->log, "%p: a data loop is needed", this);
#  844|   		return -EINVAL;
#  845|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def193]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm-source.c:847: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  845|   	}
#  846|   	if (this->data_system == NULL) {
#  847|-> 		spa_log_error(this->log, "%p: a data system is needed", this);
#  848|   		return -EINVAL;
#  849|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def194]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm.c:2361: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2359|   		unsigned int periods_min = (periods == UINT_MAX) ? 3 : periods;
# 2360|   
# 2361|-> 		CHECK(snd_pcm_hw_params_set_periods_min(hndl, params, &periods_min, &dir), "set_periods_min");
# 2362|   		CHECK(snd_pcm_hw_params_get_period_size_max(params, &period_size_max, &dir), "get_period_size_max");
# 2363|   		if (period_size > period_size_max)

Error: CPPCHECK_WARNING (CWE-190): [#def195]
pipewire-1.4.8/spa/plugins/alsa/alsa-pcm.c:2362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2360|   
# 2361|   		CHECK(snd_pcm_hw_params_set_periods_min(hndl, params, &periods_min, &dir), "set_periods_min");
# 2362|-> 		CHECK(snd_pcm_hw_params_get_period_size_max(params, &period_size_max, &dir), "get_period_size_max");
# 2363|   		if (period_size > period_size_max)
# 2364|   			period_size = SPA_MIN(period_size, flp2(period_size_max));

Error: CPPCHECK_WARNING (CWE-190): [#def196]
pipewire-1.4.8/spa/plugins/audioconvert/audioadapter.c:794: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  792|   
#  793|   		if (this->started) {
#  794|-> 			spa_log_error(this->log, "was started");
#  795|   			return -EIO;
#  796|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def197]
pipewire-1.4.8/spa/plugins/audioconvert/audioadapter.c:1246: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1244|   	uint32_t i;
# 1245|   
# 1246|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64, this,
# 1247|   			info->change_mask);
# 1248|   

Error: CPPCHECK_WARNING (CWE-190): [#def198]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:1112: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1110|   		pending->graph = iface;
# 1111|   		pending->active = true;
# 1112|-> 		spa_log_info(impl->log, "loading filter-graph order:%d in %d active:%d",
# 1113|   				order, idx, n_graph + 1);
# 1114|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def199]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:1116: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1114|   	} else {
# 1115|   		pending->active = false;
# 1116|-> 		spa_log_info(impl->log, "removing filter-graph order:%d active:%d",
# 1117|   				order, n_graph);
# 1118|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def200]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:1322: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1320|   		" step value %f at scale %d", p->prev_volume, p->volume, volume_step, p->vrp.scale);
# 1321|   	do {
# 1322|-> 		spa_log_trace(this->log, "volume accum %f", get_volume_at_scale(this, volume_accum));
# 1323|   		spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1324|   		spa_pod_builder_add_object(&b.b,

Error: CPPCHECK_WARNING (CWE-190): [#def201]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:1351: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1349|   		" step value %f at scale %d", p->prev_volume, p->volume, volume_step, p->vrp.scale);
# 1350|   	do {
# 1351|-> 		spa_log_trace(this->log, "volume accum %f", get_volume_at_scale(this, volume_accum));
# 1352|   		spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1353|   		spa_pod_builder_add_object(&b.b,

Error: CPPCHECK_WARNING (CWE-457): [#def202]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:1705: error[uninitvar]: Uninitialized variable: direction
# 1703|   		}
# 1704|   
# 1705|-> 		if ((res = reconfigure_mode(this, mode, direction, monitor, control, infop)) < 0)
# 1706|   			return res;
# 1707|   

Error: CPPCHECK_WARNING (CWE-457): [#def203]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:1705: error[uninitvar]: Uninitialized variable: mode
# 1703|   		}
# 1704|   
# 1705|-> 		if ((res = reconfigure_mode(this, mode, direction, monitor, control, infop)) < 0)
# 1706|   			return res;
# 1707|   

Error: CPPCHECK_WARNING (CWE-190): [#def204]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:2130: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2128|   		uint32_t i;
# 2129|   
# 2130|-> 		spa_log_debug(this->log, "resize tmp %d -> %d", this->scratch_size, maxsize);
# 2131|   
# 2132|   		if ((empty = realloc(this->empty, maxsize + MAX_ALIGN)) != NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def205]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:2652: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2650|   {
# 2651|   	if (port->n_buffers > 0) {
# 2652|-> 		spa_log_debug(this->log, "%p: clear buffers %p", this, port);
# 2653|   		port->n_buffers = 0;
# 2654|   		spa_list_init(&port->queue);

Error: CPPCHECK_WARNING (CWE-190): [#def206]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:2733: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2731|   			if (oport->is_monitor)
# 2732|   				continue;
# 2733|-> 			spa_log_debug(this->log, "%p: change %d", this, i);
# 2734|   			if (spa_latency_info_compare(&info, &oport->latency[other]) != 0) {
# 2735|   				oport->latency[other] = info;

Error: CPPCHECK_WARNING (CWE-190): [#def207]
pipewire-1.4.8/spa/plugins/audioconvert/audioconvert.c:3526: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3524|   		add_wav_stage(this, ctx);
# 3525|   
# 3526|-> 	spa_log_trace(this->log, "got %u processing stages", this->n_stages);
# 3527|   }
# 3528|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:375:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cmd’
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:533:13: enter_function: entry to ‘rfcomm_send_volume_cmd’
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:542:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:542:9: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:544:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:547:66: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/backend-native.c:557:9: call_function: calling ‘rfcomm_send_cmd’ from ‘rfcomm_send_volume_cmd’
#  373|   		spa_log_debug(backend->log, "Command in progress, postponing: %s", message);
#  374|   		struct rfcomm_cmd *cmd = calloc(1, sizeof(struct rfcomm_cmd));
#  375|-> 		cmd->cmd = strndup(message, len);
#  376|   		spa_list_append(&rfcomm->hfp_hf_commands, &cmd->link);
#  377|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def209]
pipewire-1.4.8/spa/plugins/bluez5/bt-latency.h:56:17: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:476:23: enter_function: entry to ‘spa_bt_iso_io_attach’
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:480:18: call_function: calling ‘stream_create’ from ‘spa_bt_iso_io_attach’
#   54|   	res = setsockopt(fd, SOL_BLUETOOTH, BT_POLL_ERRQUEUE, &flag, sizeof(flag));
#   55|   	if (res < 0) {
#   56|-> 		spa_log_warn(log, "setsockopt(BT_POLL_ERRQUEUE) failed (kernel feature not enabled?): %d (%m)", errno);
#   57|   		lat->disabled = true;
#   58|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def210]
pipewire-1.4.8/spa/plugins/bluez5/bt-latency.h:63:17: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:367:23: enter_function: entry to ‘stream_create’
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:383:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:383:38: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:383:13: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:388:12: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:388:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:391:23: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:392:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:395:30: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:397:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:402:30: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:403:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:408:28: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:409:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:414:21: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:414:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:415:25: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:423:18: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:424:12: branch_false: following ‘false’ branch (when ‘stream’ is non-NULL)...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:427:22: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:430:33: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:430:33: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:437:9: call_function: calling ‘spa_bt_latency_init’ from ‘stream_create’
#   61|   	res = setsockopt(fd, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping, sizeof(so_timestamping));
#   62|   	if (res < 0) {
#   63|-> 		spa_log_warn(log, "setsockopt(SO_TIMESTAMPING) failed (kernel feature not enabled?): %d (%m)", errno);
#   64|   		lat->disabled = true;
#   65|   		return;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def211]
pipewire-1.4.8/spa/plugins/bluez5/bt-latency.h:70:23: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:367:23: enter_function: entry to ‘stream_create’
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:383:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:383:38: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:383:13: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:388:12: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:388:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:391:23: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:392:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:395:30: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:397:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:402:30: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:403:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:408:28: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:409:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:414:21: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:414:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:415:25: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:423:18: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:424:12: branch_false: following ‘false’ branch (when ‘stream’ is non-NULL)...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:427:22: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:430:33: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:430:33: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/iso-io.c:437:9: call_function: calling ‘spa_bt_latency_init’ from ‘stream_create’
#   68|   	/* Flush errqueue on start */
#   69|   	do {
#   70|-> 		res = recv(fd, NULL, 0, MSG_ERRQUEUE | MSG_DONTWAIT | MSG_TRUNC);
#   71|   	} while (res == 0);
#   72|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def212]
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:231:9: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:196:23: enter_function: entry to ‘spa_bt_sco_io_create’
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:202:14: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:203:12: branch_false: following ‘false’ branch (when ‘io’ is non-NULL)...
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:206:18: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:231:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spa_bt_sco_io_create’
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:231:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/bluez5/sco-io.c:231:9: danger: ‘io’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  229|   	}
#  230|   
#  231|-> 	spa_log_debug(io->log, "%p: initial packet size:%d", io, io->read_size);
#  232|   
#  233|   	/* Add the ready callback */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:795:17: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 32000))’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1534:13: enter_function: entry to ‘transport_state_changed’
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1542:12: branch_true: following ‘true’ branch (when ‘state == 2’)...
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1543:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/bluez5/sco-sink.c:1543:17: call_function: calling ‘transport_start’ from ‘transport_state_changed’
#  793|   	} else if (this->transport->codec == HFP_AUDIO_CODEC_LC3_SWB) {
#  794|   #ifdef HAVE_LC3
#  795|-> 		this->lc3 = lc3_setup_encoder(7500, 32000, 0,
#  796|   				calloc(1, lc3_encoder_size(7500, 32000)));
#  797|   		if (!this->lc3)

Error: CPPCHECK_WARNING (CWE-457): [#def214]
pipewire-1.4.8/spa/plugins/bluez5/sco-source.c:208: error[uninitvar]: Uninitialized variable: param
#  206|   	}
#  207|   
#  208|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  209|   		goto next;
#  210|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def215]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:886:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cme_error’
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:852:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:857:14: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:857:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:858:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:886:16: danger: use of uninitialized value ‘cme_error’ here
#  884|   
#  885|   failed:
#  886|-> 	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  887|   		telephony_error_to_description (err, cme_error));
#  888|   }

Error: CPPCHECK_WARNING (CWE-457): [#def216]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:899: error[uninitvar]: Uninitialized variable: cme_error
#  897|   
#  898|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  899|-> 		telephony_error_to_description (err, cme_error));
#  900|   }
#  901|   

Error: CPPCHECK_WARNING (CWE-457): [#def217]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:911: error[uninitvar]: Uninitialized variable: cme_error
#  909|   
#  910|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  911|-> 		telephony_error_to_description (err, cme_error));
#  912|   }
#  913|   

Error: CPPCHECK_WARNING (CWE-457): [#def218]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:923: error[uninitvar]: Uninitialized variable: cme_error
#  921|   
#  922|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  923|-> 		telephony_error_to_description (err, cme_error));
#  924|   }
#  925|   

Error: CPPCHECK_WARNING (CWE-457): [#def219]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:935: error[uninitvar]: Uninitialized variable: cme_error
#  933|   
#  934|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  935|-> 		telephony_error_to_description (err, cme_error));
#  936|   }
#  937|   

Error: CPPCHECK_WARNING (CWE-457): [#def220]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:947: error[uninitvar]: Uninitialized variable: cme_error
#  945|   
#  946|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  947|-> 		telephony_error_to_description (err, cme_error));
#  948|   }
#  949|   

Error: CPPCHECK_WARNING (CWE-457): [#def221]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:959: error[uninitvar]: Uninitialized variable: cme_error
#  957|   
#  958|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  959|-> 		telephony_error_to_description (err, cme_error));
#  960|   }
#  961|   

Error: CPPCHECK_WARNING (CWE-457): [#def222]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:995: error[uninitvar]: Uninitialized variable: cme_error
#  993|   
#  994|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  995|-> 		telephony_error_to_description (err, cme_error));
#  996|   }
#  997|   

Error: CPPCHECK_WARNING (CWE-457): [#def223]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:1536: error[uninitvar]: Uninitialized variable: cme_error
# 1534|   
# 1535|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
# 1536|-> 		telephony_error_to_description (err, cme_error));
# 1537|   }
# 1538|   

Error: CPPCHECK_WARNING (CWE-457): [#def224]
pipewire-1.4.8/spa/plugins/bluez5/telephony.c:1548: error[uninitvar]: Uninitialized variable: cme_error
# 1546|   
# 1547|   	return dbus_message_new_error(m, telephony_error_to_dbus (err),
# 1548|-> 		telephony_error_to_description (err, cme_error));
# 1549|   }
# 1550|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1942:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1911:14: enter_function: entry to ‘param_eq_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1922:12: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1928:13: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1928:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘param_eq_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1928:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘param_eq_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1928:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1933:16: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1933:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1934:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1937:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1941:21: branch_true: following ‘true’ branch (when ‘i != 512’)...
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1942:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/builtin_plugin.c:1942:17: danger: ‘impl’ leaks here; was allocated at [(32)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/31)
# 1940|   	impl->rate = SampleRate;
# 1941|   	for (i = 0; i < SPA_N_ELEMENTS(impl->bq); i++)
# 1942|-> 		biquad_set(&impl->bq[i], BQ_NONE, 0.0f, 0.0f, 0.0f);
# 1943|   
# 1944|   	while ((len = spa_json_object_next(&it[0], key, sizeof(key), &val)) > 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def226]
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:71:15: enter_function: entry to ‘ebur128_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:82:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:88:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:95:12: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:98:13: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:98:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘ebur128_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:98:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘ebur128_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:98:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:99:17: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:99:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘ebur128_instantiate’
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:99:17: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ebur128_plugin.c:99:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#   97|   
#   98|   	if (spa_json_begin_object(&it[0], config, strlen(config)) <= 0) {
#   99|-> 		spa_log_error(pl->log, "ebur128: expected object in config");
#  100|   		errno = EINVAL;
#  101|   		goto error;

Error: CPPCHECK_WARNING (CWE-476): [#def227]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:111: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: dd
#  109|   static void ladspa_port_update_ranges(struct descriptor *dd, struct spa_fga_port *port)
#  110|   {
#  111|-> 	const LADSPA_Descriptor *d = dd->d;
#  112|   	unsigned long p = port->index;
#  113|   	LADSPA_PortRangeHintDescriptor hint = d->PortRangeHints[p].HintDescriptor;

Error: CPPCHECK_WARNING (CWE-476): [#def228]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  142|   
#  143|   	desc = calloc(1, sizeof(*desc));
#  144|-> 	desc->d = d;
#  145|   
#  146|   	desc->desc.instantiate = ladspa_instantiate;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def229]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:144:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:132:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:139:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:139:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:140:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:143:16: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:143:16: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:144:9: danger: ‘desc’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  142|   
#  143|   	desc = calloc(1, sizeof(*desc));
#  144|-> 	desc->d = d;
#  145|   
#  146|   	desc->desc.instantiate = ladspa_instantiate;

Error: CPPCHECK_WARNING (CWE-476): [#def230]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  144|   	desc->d = d;
#  145|   
#  146|-> 	desc->desc.instantiate = ladspa_instantiate;
#  147|   	desc->desc.cleanup = d->cleanup;
#  148|   	desc->desc.connect_port = d->connect_port;

Error: CPPCHECK_WARNING (CWE-476): [#def231]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:147: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  145|   
#  146|   	desc->desc.instantiate = ladspa_instantiate;
#  147|-> 	desc->desc.cleanup = d->cleanup;
#  148|   	desc->desc.connect_port = d->connect_port;
#  149|   	desc->desc.activate = d->activate;

Error: CPPCHECK_WARNING (CWE-476): [#def232]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:148: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  146|   	desc->desc.instantiate = ladspa_instantiate;
#  147|   	desc->desc.cleanup = d->cleanup;
#  148|-> 	desc->desc.connect_port = d->connect_port;
#  149|   	desc->desc.activate = d->activate;
#  150|   	desc->desc.deactivate = d->deactivate;

Error: CPPCHECK_WARNING (CWE-476): [#def233]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  147|   	desc->desc.cleanup = d->cleanup;
#  148|   	desc->desc.connect_port = d->connect_port;
#  149|-> 	desc->desc.activate = d->activate;
#  150|   	desc->desc.deactivate = d->deactivate;
#  151|   	desc->desc.run = d->run;

Error: CPPCHECK_WARNING (CWE-476): [#def234]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:150: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  148|   	desc->desc.connect_port = d->connect_port;
#  149|   	desc->desc.activate = d->activate;
#  150|-> 	desc->desc.deactivate = d->deactivate;
#  151|   	desc->desc.run = d->run;
#  152|   

Error: CPPCHECK_WARNING (CWE-476): [#def235]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  149|   	desc->desc.activate = d->activate;
#  150|   	desc->desc.deactivate = d->deactivate;
#  151|-> 	desc->desc.run = d->run;
#  152|   
#  153|   	desc->desc.free = ladspa_free;

Error: CPPCHECK_WARNING (CWE-476): [#def236]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:153: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  151|   	desc->desc.run = d->run;
#  152|   
#  153|-> 	desc->desc.free = ladspa_free;
#  154|   
#  155|   	desc->desc.name = d->Label;

Error: CPPCHECK_WARNING (CWE-476): [#def237]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  153|   	desc->desc.free = ladspa_free;
#  154|   
#  155|-> 	desc->desc.name = d->Label;
#  156|   	desc->desc.flags = 0;
#  157|   

Error: CPPCHECK_WARNING (CWE-476): [#def238]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  154|   
#  155|   	desc->desc.name = d->Label;
#  156|-> 	desc->desc.flags = 0;
#  157|   
#  158|   	desc->desc.n_ports = d->PortCount;

Error: CPPCHECK_WARNING (CWE-476): [#def239]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  156|   	desc->desc.flags = 0;
#  157|   
#  158|-> 	desc->desc.n_ports = d->PortCount;
#  159|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  160|   

Error: CPPCHECK_WARNING (CWE-476): [#def240]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  157|   
#  158|   	desc->desc.n_ports = d->PortCount;
#  159|-> 	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  160|   
#  161|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def241]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  159|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  160|   
#  161|-> 	for (i = 0; i < desc->desc.n_ports; i++) {
#  162|   		desc->desc.ports[i].index = i;
#  163|   		desc->desc.ports[i].name = d->PortNames[i];

Error: CPPCHECK_WARNING (CWE-476): [#def242]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:162: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  160|   
#  161|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  162|-> 		desc->desc.ports[i].index = i;
#  163|   		desc->desc.ports[i].name = d->PortNames[i];
#  164|   		desc->desc.ports[i].flags = d->PortDescriptors[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def243]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:162:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(*<unknown>.PortCount & 4294967295, 48)’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:132:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:139:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:139:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:140:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:143:16: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:159:28: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:161:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:162:33: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:162:17: danger: ‘calloc(*<unknown>.PortCount & 4294967295, 48) + (long unsigned int)i * 48’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  160|   
#  161|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  162|-> 		desc->desc.ports[i].index = i;
#  163|   		desc->desc.ports[i].name = d->PortNames[i];
#  164|   		desc->desc.ports[i].flags = d->PortDescriptors[i];

Error: CPPCHECK_WARNING (CWE-476): [#def244]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  161|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  162|   		desc->desc.ports[i].index = i;
#  163|-> 		desc->desc.ports[i].name = d->PortNames[i];
#  164|   		desc->desc.ports[i].flags = d->PortDescriptors[i];
#  165|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);

Error: CPPCHECK_WARNING (CWE-476): [#def245]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  162|   		desc->desc.ports[i].index = i;
#  163|   		desc->desc.ports[i].name = d->PortNames[i];
#  164|-> 		desc->desc.ports[i].flags = d->PortDescriptors[i];
#  165|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
#  166|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def246]
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:167:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:132:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:139:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:139:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:140:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:143:16: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:143:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:161:21: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:167:16: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/ladspa_plugin.c:167:16: danger: ‘desc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  165|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
#  166|   	}
#  167|-> 	return &desc->desc;
#  168|   }
#  169|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def247]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:75:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:182:23: call_function: calling ‘uri_table_map’ from ‘context_new’
#   73|   		table->data = realloc(table->data, table->alloc * sizeof(char *));
#   74|    	}
#   75|-> 	table->data[table->len++] = strdup(uri);
#   76|   	return table->len;
#   77|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def248]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:153:20: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:153:20: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  151|   
#  152|   	uri_table_init(&c->uri_table);
#  153|-> 	c->world = lilv_world_new();
#  154|   	if (c->world == NULL)
#  155|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  155|   		goto error;
#  156|   
#  157|-> 	lilv_world_load_all(c->world);
#  158|   
#  159|   	c->lv2_InputPort = lilv_new_uri(c->world, LV2_CORE__InputPort);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:159:28: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:159:28: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#  157|   	lilv_world_load_all(c->world);
#  158|   
#  159|-> 	c->lv2_InputPort = lilv_new_uri(c->world, LV2_CORE__InputPort);
#  160|   	c->lv2_OutputPort = lilv_new_uri(c->world, LV2_CORE__OutputPort);
#  161|   	c->lv2_AudioPort = lilv_new_uri(c->world, LV2_CORE__AudioPort);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:160:29: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:160:29: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  158|   
#  159|   	c->lv2_InputPort = lilv_new_uri(c->world, LV2_CORE__InputPort);
#  160|-> 	c->lv2_OutputPort = lilv_new_uri(c->world, LV2_CORE__OutputPort);
#  161|   	c->lv2_AudioPort = lilv_new_uri(c->world, LV2_CORE__AudioPort);
#  162|   	c->lv2_ControlPort = lilv_new_uri(c->world, LV2_CORE__ControlPort);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def252]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:161:28: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:161:28: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  159|   	c->lv2_InputPort = lilv_new_uri(c->world, LV2_CORE__InputPort);
#  160|   	c->lv2_OutputPort = lilv_new_uri(c->world, LV2_CORE__OutputPort);
#  161|-> 	c->lv2_AudioPort = lilv_new_uri(c->world, LV2_CORE__AudioPort);
#  162|   	c->lv2_ControlPort = lilv_new_uri(c->world, LV2_CORE__ControlPort);
#  163|   	c->lv2_Optional = lilv_new_uri(c->world, LV2_CORE__connectionOptional);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def253]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:162:30: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:162:30: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  160|   	c->lv2_OutputPort = lilv_new_uri(c->world, LV2_CORE__OutputPort);
#  161|   	c->lv2_AudioPort = lilv_new_uri(c->world, LV2_CORE__AudioPort);
#  162|-> 	c->lv2_ControlPort = lilv_new_uri(c->world, LV2_CORE__ControlPort);
#  163|   	c->lv2_Optional = lilv_new_uri(c->world, LV2_CORE__connectionOptional);
#  164|   	c->atom_AtomPort = lilv_new_uri(c->world, LV2_ATOM__AtomPort);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def254]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:163:27: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:163:27: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  161|   	c->lv2_AudioPort = lilv_new_uri(c->world, LV2_CORE__AudioPort);
#  162|   	c->lv2_ControlPort = lilv_new_uri(c->world, LV2_CORE__ControlPort);
#  163|-> 	c->lv2_Optional = lilv_new_uri(c->world, LV2_CORE__connectionOptional);
#  164|   	c->atom_AtomPort = lilv_new_uri(c->world, LV2_ATOM__AtomPort);
#  165|   	c->atom_Sequence = lilv_new_uri(c->world, LV2_ATOM__Sequence);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def255]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:164:28: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:164:28: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
#  162|   	c->lv2_ControlPort = lilv_new_uri(c->world, LV2_CORE__ControlPort);
#  163|   	c->lv2_Optional = lilv_new_uri(c->world, LV2_CORE__connectionOptional);
#  164|-> 	c->atom_AtomPort = lilv_new_uri(c->world, LV2_ATOM__AtomPort);
#  165|   	c->atom_Sequence = lilv_new_uri(c->world, LV2_ATOM__Sequence);
#  166|   	c->urid_map = lilv_new_uri(c->world, LV2_URID__map);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def256]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:165:28: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:165:28: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  163|   	c->lv2_Optional = lilv_new_uri(c->world, LV2_CORE__connectionOptional);
#  164|   	c->atom_AtomPort = lilv_new_uri(c->world, LV2_ATOM__AtomPort);
#  165|-> 	c->atom_Sequence = lilv_new_uri(c->world, LV2_ATOM__Sequence);
#  166|   	c->urid_map = lilv_new_uri(c->world, LV2_URID__map);
#  167|   	c->powerOf2BlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__powerOf2BlockLength);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def257]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:166:23: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:166:23: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
#  164|   	c->atom_AtomPort = lilv_new_uri(c->world, LV2_ATOM__AtomPort);
#  165|   	c->atom_Sequence = lilv_new_uri(c->world, LV2_ATOM__Sequence);
#  166|-> 	c->urid_map = lilv_new_uri(c->world, LV2_URID__map);
#  167|   	c->powerOf2BlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__powerOf2BlockLength);
#  168|   	c->fixedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__fixedBlockLength);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def258]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:167:34: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:167:34: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#  165|   	c->atom_Sequence = lilv_new_uri(c->world, LV2_ATOM__Sequence);
#  166|   	c->urid_map = lilv_new_uri(c->world, LV2_URID__map);
#  167|-> 	c->powerOf2BlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__powerOf2BlockLength);
#  168|   	c->fixedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__fixedBlockLength);
#  169|   	c->boundedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__boundedBlockLength);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def259]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:168:31: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:168:31: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/1)
#  166|   	c->urid_map = lilv_new_uri(c->world, LV2_URID__map);
#  167|   	c->powerOf2BlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__powerOf2BlockLength);
#  168|-> 	c->fixedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__fixedBlockLength);
#  169|   	c->boundedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__boundedBlockLength);
#  170|           c->worker_schedule = lilv_new_uri(c->world, LV2_WORKER__schedule);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def260]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:169:33: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:169:33: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/1)
#  167|   	c->powerOf2BlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__powerOf2BlockLength);
#  168|   	c->fixedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__fixedBlockLength);
#  169|-> 	c->boundedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__boundedBlockLength);
#  170|           c->worker_schedule = lilv_new_uri(c->world, LV2_WORKER__schedule);
#  171|   	c->worker_iface = lilv_new_uri(c->world, LV2_WORKER__interface);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def261]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:170:30: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:170:30: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/1)
#  168|   	c->fixedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__fixedBlockLength);
#  169|   	c->boundedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__boundedBlockLength);
#  170|->         c->worker_schedule = lilv_new_uri(c->world, LV2_WORKER__schedule);
#  171|   	c->worker_iface = lilv_new_uri(c->world, LV2_WORKER__interface);
#  172|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def262]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:171:27: warning[-Wanalyzer-malloc-leak]: leak of ‘c’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:144:24: enter_function: entry to ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:148:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:149:12: branch_false: following ‘false’ branch (when ‘c’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:152:9: call_function: inlined call to ‘uri_table_init’ from ‘context_new’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:154:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:157:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:171:27: danger: ‘c’ leaks here; was allocated at [(2)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/1)
#  169|   	c->boundedBlockLength = lilv_new_uri(c->world, LV2_BUF_SIZE__boundedBlockLength);
#  170|           c->worker_schedule = lilv_new_uri(c->world, LV2_WORKER__schedule);
#  171|-> 	c->worker_iface = lilv_new_uri(c->world, LV2_WORKER__interface);
#  172|   
#  173|   	c->map.handle = &c->uri_table;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def263]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:13: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:13: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  304|   	i->features[n_features++] = &buf_size_features[1];
#  305|   	i->features[n_features++] = &buf_size_features[2];
#  306|-> 	if (lilv_plugin_has_feature(p->p, c->worker_schedule)) {
#  307|   		i->work_schedule.handle = i;
#  308|   		i->work_schedule.schedule_work = work_schedule;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def264]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  313|   
#  314|   	i->options[0] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  315|-> 		context_map(c, LV2_BUF_SIZE__minBlockLength), sizeof(int32_t),
#  316|   		c->atom_Int, &min_block_length };
#  317|   	i->options[1] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def265]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:318:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:318:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  316|   		c->atom_Int, &min_block_length };
#  317|   	i->options[1] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  318|-> 		context_map(c, LV2_BUF_SIZE__maxBlockLength), sizeof(int32_t),
#  319|   		c->atom_Int, &max_block_length };
#  320|   	i->options[2] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def266]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:321:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:321:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  319|   		c->atom_Int, &max_block_length };
#  320|   	i->options[2] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  321|-> 		context_map(c, LV2_BUF_SIZE__sequenceSize), sizeof(int32_t),
#  322|   		c->atom_Int, &seq_size };
#  323|   	i->options[3] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def267]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:324:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:324:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  322|   		c->atom_Int, &seq_size };
#  323|   	i->options[3] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  324|-> 		context_map(c, "http://lv2plug.in/ns/ext/buf-size#nominalBlockLength"), sizeof(int32_t),
#  325|   		c->atom_Int, &i->block_length },
#  326|   	i->options[4] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def268]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:327:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:327:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  325|   		c->atom_Int, &i->block_length },
#  326|   	i->options[4] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  327|-> 		context_map(c, LV2_PARAMETERS__sampleRate), sizeof(float),
#  328|   		c->atom_Float, &fsample_rate };
#  329|   	i->options[5] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0, 0, 0, 0, NULL };

Error: GCC_ANALYZER_WARNING (CWE-401): [#def269]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:337:23: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:294:13: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:295:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:298:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:306:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:315:17: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:337:23: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  335|   	spa_assert(n_features <= SPA_N_ELEMENTS(i->features));
#  336|   
#  337|-> 	i->instance = lilv_plugin_instantiate(p->p, SampleRate, i->features);
#  338|   	if (i->instance == NULL) {
#  339|   		free(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def270]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:422:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:422:30: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  420|   	desc->desc.flags = 0;
#  421|   
#  422|-> 	desc->desc.n_ports = lilv_plugin_get_num_ports(p->p);
#  423|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  424|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def271]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:422:30: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:422:30: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  420|   	desc->desc.flags = 0;
#  421|   
#  422|-> 	desc->desc.n_ports = lilv_plugin_get_num_ports(p->p);
#  423|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  424|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def272]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:429:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:429:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  427|   	controls = alloca(desc->desc.n_ports * sizeof(float));
#  428|   
#  429|-> 	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def273]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:429:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:429:9: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/2)
#  427|   	controls = alloca(desc->desc.n_ports * sizeof(float));
#  428|   
#  429|-> 	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def274]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:429:9: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:429:9: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  427|   	controls = alloca(desc->desc.n_ports * sizeof(float));
#  428|   
#  429|-> 	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def275]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/2)
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def276]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def277]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def278]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/2)
#  430|   
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def279]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/2)
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def280]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/2)
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def281]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def282]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:433:42: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
#  431|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  432|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  433|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def283]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:436:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: this call could return NULL
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:436:17: danger: ‘fp’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/2)
#  434|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  435|   
#  436|-> 		fp->index = i;
#  437|   		fp->name = strdup(lilv_node_as_string(symbol));
#  438|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def284]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
#  435|   
#  436|   		fp->index = i;
#  437|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  438|   
#  439|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def285]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/2)
#  435|   
#  436|   		fp->index = i;
#  437|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  438|   
#  439|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def286]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  435|   
#  436|   		fp->index = i;
#  437|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  438|   
#  439|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def287]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:437:28: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/2)
#  435|   
#  436|   		fp->index = i;
#  437|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  438|   
#  439|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def288]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
#  438|   
#  439|   		fp->flags = 0;
#  440|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def289]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/2)
#  438|   
#  439|   		fp->flags = 0;
#  440|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def290]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
#  438|   
#  439|   		fp->flags = 0;
#  440|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def291]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:440:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
#  438|   
#  439|   		fp->flags = 0;
#  440|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def292]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
#  440|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def293]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/2)
#  440|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def294]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
#  440|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def295]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:442:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
#  440|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  441|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  442|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def296]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def297]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/2)
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def298]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/0)
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def299]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:444:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/2)
#  442|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  443|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  444|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def300]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:419:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/2)
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  447|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  448|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def301]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: danger: ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/2)
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  447|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  448|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def302]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/0)
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  447|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  448|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def303]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:423:28: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:432:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:446:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/2)
#  444|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  445|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  446|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  447|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  448|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def304]
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:454:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:405:16: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:406:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:409:9: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:431:21: branch_false: following ‘false’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:454:16: branch_false: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/lv2_plugin.c:454:16: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/0)
#  452|   		fp->def = controls[i];
#  453|   	}
#  454|-> 	return &desc->desc;
#  455|   }
#  456|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def305]
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:218:13: enter_function: entry to ‘spatializer_reload’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:221:26: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:228:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spatializer_reload’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: danger: ‘left_ir’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  228|   		coords[i] = impl->port[3 + i][0];
#  229|   
#  230|-> 	spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
#  231|   
#  232|   	mysofa_s2c(coords);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def306]
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:218:13: enter_function: entry to ‘spatializer_reload’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:222:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:228:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spatializer_reload’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:230:9: danger: ‘right_ir’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  228|   		coords[i] = impl->port[3 + i][0];
#  229|   
#  230|-> 	spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
#  231|   
#  232|   	mysofa_s2c(coords);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def307]
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:221:26: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:228:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:232:9: danger: ‘left_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  230|   	spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
#  231|   
#  232|-> 	mysofa_s2c(coords);
#  233|   	mysofa_getfilter_float(
#  234|   		impl->sofa,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def308]
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:222:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:228:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:232:9: danger: ‘right_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  230|   	spa_log_info(impl->log, "making spatializer with %f %f %f", coords[0], coords[1], coords[2]);
#  231|   
#  232|-> 	mysofa_s2c(coords);
#  233|   	mysofa_getfilter_float(
#  234|   		impl->sofa,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def309]
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:221:26: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:228:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:233:9: danger: ‘left_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  231|   
#  232|   	mysofa_s2c(coords);
#  233|-> 	mysofa_getfilter_float(
#  234|   		impl->sofa,
#  235|   		coords[0],

Error: GCC_ANALYZER_WARNING (CWE-401): [#def310]
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:222:27: acquire_memory: allocated here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:228:40: branch_true: ...to here
pipewire-1.4.8/spa/plugins/filter-graph/sofa_plugin.c:233:9: danger: ‘right_ir’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  231|   
#  232|   	mysofa_s2c(coords);
#  233|-> 	mysofa_getfilter_float(
#  234|   		impl->sofa,
#  235|   		coords[0],

Error: CPPCHECK_WARNING (CWE-190): [#def311]
pipewire-1.4.8/spa/plugins/support/loop.c:1189: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1187|   
# 1188|   	if (impl->enter_count != 0 || impl->polling)
# 1189|-> 		spa_log_warn(impl->log, "%p: loop is entered %d times polling:%d",
# 1190|   				impl, impl->enter_count, impl->polling);
# 1191|   

Error: CPPCHECK_WARNING (CWE-190): [#def312]
pipewire-1.4.8/spa/plugins/support/loop.c:1264: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1262|   
# 1263|   	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1264|-> 	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit);
# 1265|   	CHECK(pthread_mutex_init(&impl->queue_lock, &attr), error_exit);
# 1266|   

Error: CPPCHECK_WARNING (CWE-190): [#def313]
pipewire-1.4.8/spa/plugins/support/loop.c:1265: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1263|   	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1264|   	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit);
# 1265|-> 	CHECK(pthread_mutex_init(&impl->queue_lock, &attr), error_exit);
# 1266|   
# 1267|   	impl->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def314]
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:451:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ipod’
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:435:12: enter_function: entry to ‘device_demarshal_object_info’
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘device_demarshal_object_info’
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:13: return_function: returning to ‘device_demarshal_object_info’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:13: call_function: calling ‘spa_pod_parser_get’ from ‘device_demarshal_object_info’
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:13: return_function: returning to ‘device_demarshal_object_info’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:446:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:451:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-device/protocol-native.c:451:13: danger: use of uninitialized value ‘ipod’ here
#  449|   		return -EINVAL;
#  450|   
#  451|-> 	if (ipod) {
#  452|   		struct spa_pod_parser p2;
#  453|   		struct spa_pod_frame f2;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def315]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:234:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mix’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1660:13: enter_function: entry to ‘node_port_init’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1673:9: call_function: inlined call to ‘pw_map_init’ from ‘node_port_init’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1673:9: call_function: inlined call to ‘pw_map_init’ from ‘node_port_init’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1679:9: call_function: calling ‘create_mix’ from ‘node_port_init’
#  232|   	mix->port = p;
#  233|   	mix->n_buffers = 0;
#  234|-> 	mix->impl_mix_id = SPA_ID_INVALID;
#  235|   	return mix;
#  236|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def316]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1757:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_true: following ‘true’ branch (when ‘properties’ is NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1757:30: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1757:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1755|   
# 1756|   	if (properties == NULL)
# 1757|-> 		properties = pw_properties_new(NULL, NULL);
# 1758|   	if (properties == NULL) {
# 1759|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def317]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1763:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1763:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1761|   	}
# 1762|   
# 1763|-> 	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d", client->global->id);
# 1764|   
# 1765|   	this = &impl->this;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def318]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1768:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1768:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1766|   
# 1767|   	impl->context = context;
# 1768|-> 	impl->context_pool = pw_context_get_mempool(context);
# 1769|   	impl->data_source.fd = -1;
# 1770|   	pw_log_debug("%p: new", &impl->node);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def319]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1768|   	impl->context_pool = pw_context_get_mempool(context);
# 1769|   	impl->data_source.fd = -1;
# 1770|-> 	pw_log_debug("%p: new", &impl->node);
# 1771|   
# 1772|   	impl_init(impl, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def320]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1773:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1740:29: enter_function: entry to ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1772:9: call_function: inlined call to ‘impl_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1773:21: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 1771|   
# 1772|   	impl_init(impl, NULL);
# 1773|-> 	impl->log = pw_log_get();
# 1774|   	impl->resource = resource;
# 1775|   	impl->client = client;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def321]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1776:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1740:29: enter_function: entry to ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1772:9: call_function: inlined call to ‘impl_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1776:29: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
# 1774|   	impl->resource = resource;
# 1775|   	impl->client = client;
# 1776|-> 	impl->client_pool = pw_impl_client_get_mempool(client);
# 1777|   	this->flags = do_register ? 0 : 1;
# 1778|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def322]
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1785:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1740:29: enter_function: entry to ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1750:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1751:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1756:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1770:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1772:9: call_function: inlined call to ‘impl_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1779:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1779:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1780:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1780:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1781:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1781:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_impl_client_node_new’
pipewire-1.4.8/src/modules/module-client-node/client-node.c:1785:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
# 1783|   
# 1784|   	this->resource = resource;
# 1785|-> 	this->node = pw_spa_node_new(context,
# 1786|   				     PW_SPA_NODE_FLAG_ASYNC |
# 1787|   				     (do_register ? 0 : PW_SPA_NODE_FLAG_NO_REGISTER),

Error: GCC_ANALYZER_WARNING (CWE-457): [#def323]
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_params’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1021:12: enter_function: entry to ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1033:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1033:13: return_function: returning to ‘client_node_demarshal_port_update’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1033:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1034:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1034:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1034:13: return_function: returning to ‘client_node_demarshal_port_update’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1033:13: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: return_function: returning to ‘client_node_demarshal_port_update’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1040:9: danger: use of uninitialized value ‘n_params’ here
# 1038|   		return -EINVAL;
# 1039|   
# 1040|-> 	parse_params(&prs, n_params, params);
# 1041|   
# 1042|   	if (spa_pod_parser_get(&prs,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def324]
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1106:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘event’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1095:12: enter_function: entry to ‘client_node_demarshal_event_method’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_event_method’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:13: return_function: returning to ‘client_node_demarshal_event_method’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_event_method’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:13: return_function: returning to ‘client_node_demarshal_event_method’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1102:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1106:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1106:13: danger: use of uninitialized value ‘event’ here
# 1104|   		return -EINVAL;
# 1105|   
# 1106|-> 	if (event == NULL)
# 1107|   		return -EINVAL;
# 1108|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def325]
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1131:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_buffers’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1113:12: enter_function: entry to ‘client_node_demarshal_port_buffers’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1123:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_port_buffers’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1123:13: return_function: returning to ‘client_node_demarshal_port_buffers’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1123:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1124:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1124:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_port_buffers’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1124:13: return_function: returning to ‘client_node_demarshal_port_buffers’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1123:13: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1131:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/protocol-native.c:1131:13: danger: use of uninitialized value ‘n_buffers’ here
# 1129|   		return -EINVAL;
# 1130|   
# 1131|-> 	if (n_buffers > MAX_BUFFERS)
# 1132|   		return -ENOSPC;
# 1133|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def326]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:168:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:636:1: enter_function: entry to ‘impl_node_port_set_io’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:648:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:649:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:661:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:665:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:665:12: branch_true: following ‘true’ branch (when ‘data’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:666:28: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:666:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:669:30: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:671:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:674:31: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:675:21: call_function: calling ‘ensure_mem’ from ‘impl_node_port_set_io’
#  166|   	if (f == NULL) {
#  167|   		m = pw_array_add(&impl->mems, sizeof(struct mem));
#  168|-> 		m->id = pw_array_get_len(&impl->mems, struct mem) - 1;
#  169|   		m->ref = 0;
#  170|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def327]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:178: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  176|   	m->flags = flags;
#  177|   
#  178|-> 	pw_client_node0_resource_add_mem(impl->node.resource,
#  179|   					m->id,
#  180|   					type,

Error: CPPCHECK_WARNING (CWE-190): [#def328]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:198: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  196|   		struct mem *m;
#  197|   
#  198|-> 		spa_log_debug(this->log, "node %p: clear buffer %d", this, i);
#  199|   
#  200|   		for (j = 0; j < b->buffer.n_datas; j++) {

Error: CPPCHECK_WARNING (CWE-190): [#def329]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:221: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  219|   static void emit_port_info(struct node *this, struct port *port)
#  220|   {
#  221|-> 	spa_node_emit_port_info(&this->hooks,
#  222|   				port->direction, port->id, &port->info);
#  223|   }

Error: CPPCHECK_WARNING (CWE-190): [#def330]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  288|   
#  289|   		pw_log_debug("%p: %d param %u", this, seq, result.index);
#  290|-> 		spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  291|   
#  292|   		if (++count == num)

Error: CPPCHECK_WARNING (CWE-190): [#def331]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:308: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  306|   		return -EIO;
#  307|   
#  308|-> 	pw_client_node0_resource_set_param(this->resource, this->seq, id, flags, param);
#  309|   
#  310|   	return SPA_RESULT_RETURN_ASYNC(this->seq++);

Error: CPPCHECK_WARNING (CWE-190): [#def332]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  332|   {
#  333|   	if (spa_system_eventfd_write(this->data_system, this->writefd, 1) < 0)
#  334|-> 		spa_log_warn(this->log, "node %p: error flushing : %s", this, strerror(errno));
#  335|   
#  336|   }

Error: CPPCHECK_WARNING (CWE-190): [#def333]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:364: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  362|   						0);      /* latency */
#  363|   
#  364|-> 	pw_client_node0_resource_command(this->resource, this->seq, (const struct spa_command*)&cu);
#  365|   	return SPA_RESULT_RETURN_ASYNC(this->seq++);
#  366|   }

Error: CPPCHECK_WARNING (CWE-190): [#def334]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:382: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  380|   	}
#  381|   
#  382|-> 	pw_client_node0_resource_command(this->resource, this->seq, command);
#  383|   	return SPA_RESULT_RETURN_ASYNC(this->seq++);
#  384|   }

Error: CPPCHECK_WARNING (CWE-190): [#def335]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:436: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  434|   
#  435|   	if (!port->valid) {
#  436|-> 		spa_log_debug(this->log, "node %p: adding port %d, direction %d",
#  437|   				this, port_id, direction);
#  438|   		port->id = port_id;

Error: CPPCHECK_WARNING (CWE-190): [#def336]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:454: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  452|   		port->have_format = false;
#  453|   
#  454|-> 		spa_log_debug(this->log, "node %p: port %u update %d params", this, port_id, n_params);
#  455|   		for (i = 0; i < port->n_params; i++)
#  456|   			free(port->params[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def337]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:472:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘params’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1191:12: enter_function: entry to ‘node_clear’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1195:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1196:21: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1196:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1195:37: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1195:21: branch_true: following ‘true’ branch (when ‘i != 64’)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1196:21: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1197:25: call_function: calling ‘clear_port’ from ‘node_clear’
#  470|   		}
#  471|   		for (i = 0; i < port->n_params; i++) {
#  472|-> 			port->params[i] = params[i] ?
#  473|   				pw_protocol_native0_pod_from_v2(pw_resource_get_client(this->resource), params[i]) : NULL;
#  474|   

Error: CPPCHECK_WARNING (CWE-190): [#def338]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:494: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  492|   			}
#  493|   		}
#  494|-> 		spa_node_emit_port_info(&this->hooks, direction, port_id, info);
#  495|   	}
#  496|   }

Error: CPPCHECK_WARNING (CWE-190): [#def339]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:514: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  512|   	struct port *port;
#  513|   
#  514|-> 	spa_log_debug(this->log, "node %p: removing port %d", this, port_id);
#  515|   
#  516|   	if (direction == SPA_DIRECTION_INPUT) {

Error: CPPCHECK_WARNING (CWE-190): [#def340]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:525: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  523|   	clear_port(this, port, direction, port_id);
#  524|   	port->valid = false;
#  525|-> 	spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
#  526|   }
#  527|   

Error: CPPCHECK_WARNING (CWE-190): [#def341]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:605: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  603|   
#  604|   		pw_log_debug("%p: %d param %u", this, seq, result.index);
#  605|-> 		spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  606|   
#  607|   		if (++count == num)

Error: CPPCHECK_WARNING (CWE-190): [#def342]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:627: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  625|   		return -EIO;
#  626|   
#  627|-> 	pw_client_node0_resource_port_set_param(this->resource,
#  628|   					       this->seq,
#  629|   					       direction, port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def343]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:653: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  651|   	impl = this->impl;
#  652|   
#  653|-> 	spa_log_debug(this->log, "node %p: port %d.%d set io %d %p", this,
#  654|   			direction, port_id, id, data);
#  655|   

Error: CPPCHECK_WARNING (CWE-190): [#def344]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:683: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  681|   	}
#  682|   
#  683|-> 	pw_client_node0_resource_port_set_io(this->resource,
#  684|   					    this->seq,
#  685|   					    direction, port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def345]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:710: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  708|   
#  709|   	impl = this->impl;
#  710|-> 	spa_log_debug(this->log, "node %p: use buffers %p %u", this, buffers, n_buffers);
#  711|   
#  712|   	port = GET_PORT(this, direction, port_id);

Error: CPPCHECK_WARNING (CWE-190): [#def346]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:789: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  787|   				b->buffer.datas[j].type = SPA_ID_INVALID;
#  788|   				b->buffer.datas[j].data = 0;
#  789|-> 				spa_log_error(this->log, "invalid memory type %d", d->type);
#  790|   			}
#  791|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def347]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:794: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  792|   	}
#  793|   
#  794|-> 	pw_client_node0_resource_port_use_buffers(this->resource,
#  795|   						 this->seq,
#  796|   						 direction, port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def348]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:813: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  811|   	impl = this->impl;
#  812|   
#  813|-> 	spa_log_trace(this->log, "reuse buffer %d", buffer_id);
#  814|   
#  815|   	pw_client_node0_transport_add_message(impl->transport, (struct pw_client_node0_message *)

Error: CPPCHECK_WARNING (CWE-190): [#def349]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1000: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  998|   
#  999|   	pw_log_debug("seq:%d res:%d pending:%d", seq, res, this->init_pending);
# 1000|-> 	spa_node_emit_result(&this->hooks, seq, res, 0, NULL);
# 1001|   
# 1002|   	if (this->init_pending != SPA_ID_INVALID) {

Error: CPPCHECK_WARNING (CWE-190): [#def350]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1003: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1001|   
# 1002|   	if (this->init_pending != SPA_ID_INVALID) {
# 1003|-> 		spa_node_emit_result(&this->hooks, this->init_pending, res, 0, NULL);
# 1004|   		this->init_pending = SPA_ID_INVALID;
# 1005|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def351]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1025: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1023|   	if (change_mask & PW_CLIENT_NODE0_UPDATE_PARAMS) {
# 1024|   		uint32_t i;
# 1025|-> 		spa_log_debug(this->log, "node %p: update %d params", this, n_params);
# 1026|   
# 1027|   		for (i = 0; i < this->n_params; i++)

Error: CPPCHECK_WARNING (CWE-190): [#def352]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1047: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1045|   	}
# 1046|   	if (change_mask & (PW_CLIENT_NODE0_UPDATE_MAX_INPUTS | PW_CLIENT_NODE0_UPDATE_MAX_OUTPUTS)) {
# 1047|-> 		spa_node_emit_info(&this->hooks, &this->info);
# 1048|   	}
# 1049|   

Error: CPPCHECK_WARNING (CWE-190): [#def353]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1050: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1048|   	}
# 1049|   
# 1050|-> 	spa_log_debug(this->log, "node %p: got node update max_in %u, max_out %u", this,
# 1051|   		     this->info.max_input_ports, this->info.max_output_ports);
# 1052|   }

Error: CPPCHECK_WARNING (CWE-190): [#def354]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1067: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1065|   	bool remove;
# 1066|   
# 1067|-> 	spa_log_debug(this->log, "node %p: got port update", this);
# 1068|   	if (!CHECK_PORT_ID(this, direction, port_id))
# 1069|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def355]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1100: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1098|   		break;
# 1099|   	default:
# 1100|-> 		spa_node_emit_event(&this->hooks, event);
# 1101|   	}
# 1102|   }

Error: CPPCHECK_WARNING (CWE-190): [#def356]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1119: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1117|   
# 1118|   	if (source->rmask & (SPA_IO_ERR | SPA_IO_HUP)) {
# 1119|-> 		spa_log_warn(this->log, "node %p: got error", this);
# 1120|   		return;
# 1121|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def357]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1128: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1126|   
# 1127|   		if (spa_system_eventfd_read(this->data_system, this->data_source.fd, &cmd) < 0)
# 1128|-> 			spa_log_warn(this->log, "node %p: error reading message: %s",
# 1129|   					this, strerror(errno));
# 1130|   

Error: CPPCHECK_WARNING (CWE-190): [#def358]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1169: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1167|   
# 1168|   	if (this->data_loop == NULL) {
# 1169|-> 		spa_log_error(this->log, "a data-loop is needed");
# 1170|   		return -EINVAL;
# 1171|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def359]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1264: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1262|   	pw_log_debug("client-node %p: transport fd %d %d", node, impl->fds[0], impl->fds[1]);
# 1263|   
# 1264|-> 	pw_client_node0_resource_transport(this->resource,
# 1265|   					  pw_global_get_id(pw_impl_node_get_global(node)),
# 1266|   					  impl->other_fds[0],

Error: GCC_ANALYZER_WARNING (CWE-401): [#def360]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1323:28: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1341:30: enter_function: entry to ‘pw_impl_client_node0_new’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1365:9: call_function: calling ‘convert_properties’ from ‘pw_impl_client_node0_new’
# 1321|   
# 1322|   	SPA_FOR_EACH_ELEMENT_VAR(props, p) {
# 1323|-> 		if ((str = pw_properties_get(properties, p->from)) != NULL) {
# 1324|   			pw_properties_set(properties, p->to, str);
# 1325|   			pw_properties_set(properties, p->from, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def361]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1324:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1341:30: enter_function: entry to ‘pw_impl_client_node0_new’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1365:9: call_function: calling ‘convert_properties’ from ‘pw_impl_client_node0_new’
# 1322|   	SPA_FOR_EACH_ELEMENT_VAR(props, p) {
# 1323|   		if ((str = pw_properties_get(properties, p->from)) != NULL) {
# 1324|-> 			pw_properties_set(properties, p->to, str);
# 1325|   			pw_properties_set(properties, p->from, NULL);
# 1326|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def362]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1325:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1341:30: enter_function: entry to ‘pw_impl_client_node0_new’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1365:9: call_function: calling ‘convert_properties’ from ‘pw_impl_client_node0_new’
# 1323|   		if ((str = pw_properties_get(properties, p->from)) != NULL) {
# 1324|   			pw_properties_set(properties, p->to, str);
# 1325|-> 			pw_properties_set(properties, p->from, NULL);
# 1326|   		}
# 1327|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def363]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1360:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1359:12: branch_true: following ‘true’ branch (when ‘properties’ is NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1360:30: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1360:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1358|   
# 1359|   	if (properties == NULL)
# 1360|-> 		properties = pw_properties_new(NULL, NULL);
# 1361|   	if (properties == NULL) {
# 1362|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def364]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1367:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1367:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1365|   	convert_properties(properties);
# 1366|   
# 1367|-> 	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d", pw_global_get_id(pw_impl_client_get_global(client)));
# 1368|   
# 1369|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def365]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1370:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1370:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1368|   
# 1369|   	impl->context = context;
# 1370|-> 	impl->context_pool = pw_context_get_mempool(context);
# 1371|   	impl->fds[0] = impl->fds[1] = -1;
# 1372|   	pw_log_debug("client-node %p: new", impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def366]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1372:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1372:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1372:9: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1372:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1370|   	impl->context_pool = pw_context_get_mempool(context);
# 1371|   	impl->fds[0] = impl->fds[1] = -1;
# 1372|-> 	pw_log_debug("client-node %p: new", impl);
# 1373|   
# 1374|   	support = pw_context_get_support(impl->context, &n_support);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def367]
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1374:19: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1353:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1354:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1357:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1372:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1374:19: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:1374:19: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1372|   	pw_log_debug("client-node %p: new", impl);
# 1373|   
# 1374|-> 	support = pw_context_get_support(impl->context, &n_support);
# 1375|   
# 1376|   	node_init(&impl->node, NULL, support, n_support);

Error: CPPCHECK_WARNING (CWE-190): [#def368]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:328: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  326|   		return -EINVAL;
#  327|   
#  328|-> 	return pw_resource_notify(resource, struct pw_client_node0_methods, done, 0, seq, res);
#  329|   }
#  330|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def369]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:349:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_params’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:331:12: enter_function: entry to ‘client_node_demarshal_update’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:341:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_update’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:341:13: return_function: returning to ‘client_node_demarshal_update’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:341:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:342:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:342:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_update’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:342:13: return_function: returning to ‘client_node_demarshal_update’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:341:13: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:349:18: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:349:18: danger: use of uninitialized value ‘n_params’ here
#  347|   		return -EINVAL;
#  348|   
#  349|-> 	params = alloca(n_params * sizeof(struct spa_pod *));
#  350|   	for (i = 0; i < n_params; i++)
#  351|   		if (spa_pod_parser_get(&prs, "O", &params[i], NULL) < 0)

Error: CPPCHECK_WARNING (CWE-190): [#def370]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:354: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  352|   			return -EINVAL;
#  353|   
#  354|-> 	return pw_resource_notify(resource, struct pw_client_node0_methods, update, 0, change_mask,
#  355|   									max_input_ports,
#  356|   									max_output_ports,

Error: GCC_ANALYZER_WARNING (CWE-457): [#def371]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:380:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘n_params’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:361:12: enter_function: entry to ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:372:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:372:13: return_function: returning to ‘client_node_demarshal_port_update’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:372:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:373:13: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:373:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_port_update’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:373:13: return_function: returning to ‘client_node_demarshal_port_update’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:372:13: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:380:18: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:380:18: danger: use of uninitialized value ‘n_params’ here
#  378|   		return -EINVAL;
#  379|   
#  380|-> 	params = alloca(n_params * sizeof(struct spa_pod *));
#  381|   	for (i = 0; i < n_params; i++)
#  382|   		if (spa_pod_parser_get(&prs, "O", &params[i], NULL) < 0)

Error: CPPCHECK_WARNING (CWE-190): [#def372]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:409: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  407|   	}
#  408|   
#  409|-> 	return pw_resource_notify(resource, struct pw_client_node0_methods, port_update, 0, direction,
#  410|   									     port_id,
#  411|   									     change_mask,

Error: CPPCHECK_WARNING (CWE-190): [#def373]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:427: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  425|   		return -EINVAL;
#  426|   
#  427|->         return pw_resource_notify(resource, struct pw_client_node0_methods, set_active, 0, active);
#  428|   }
#  429|   

Error: CPPCHECK_WARNING (CWE-457): [#def374]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:443: error[uninitvar]: Uninitialized variable: event
#  441|   		return -EINVAL;
#  442|   
#  443|-> 	event = (struct spa_event*)pw_protocol_native0_pod_from_v2(client, (struct spa_pod *)event);
#  444|   
#  445|   	res = pw_resource_notify(resource, struct pw_client_node0_methods, event, 0, event);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def375]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:443:36: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘event’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:430:12: enter_function: entry to ‘client_node_demarshal_event_method’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘client_node_demarshal_event_method’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:13: return_function: returning to ‘client_node_demarshal_event_method’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:13: call_function: calling ‘spa_pod_parser_get’ from ‘client_node_demarshal_event_method’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:13: return_function: returning to ‘client_node_demarshal_event_method’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:439:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:443:36: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:443:36: danger: use of uninitialized value ‘event’ here
#  441|   		return -EINVAL;
#  442|   
#  443|-> 	event = (struct spa_event*)pw_protocol_native0_pod_from_v2(client, (struct spa_pod *)event);
#  444|   
#  445|   	res = pw_resource_notify(resource, struct pw_client_node0_methods, event, 0, event);

Error: CPPCHECK_WARNING (CWE-190): [#def376]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:445: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  443|   	event = (struct spa_event*)pw_protocol_native0_pod_from_v2(client, (struct spa_pod *)event);
#  444|   
#  445|-> 	res = pw_resource_notify(resource, struct pw_client_node0_methods, event, 0, event);
#  446|   	free(event);
#  447|   

Error: CPPCHECK_WARNING (CWE-190): [#def377]
pipewire-1.4.8/src/modules/module-client-node/v0/protocol-native.c:461: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  459|   		return -EINVAL;
#  460|   
#  461|-> 	res = pw_resource_notify(resource, struct pw_client_node0_methods, destroy, 0);
#  462|   	pw_resource_destroy(resource);
#  463|   	return res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def378]
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:183:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:184:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  185|   		return NULL;
#  186|   
#  187|-> 	pw_log_debug("transport %p: new %d %d", impl, max_input_ports, max_output_ports);
#  188|   
#  189|   	trans = &impl->trans;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def379]
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:192:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:183:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:184:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:187:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:189:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/transport.c:192:21: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  190|   	impl->offset = 0;
#  191|   
#  192|-> 	impl->mem = pw_mempool_alloc(pw_context_get_mempool(context),
#  193|   			PW_MEMBLOCK_FLAG_READWRITE |
#  194|   			PW_MEMBLOCK_FLAG_SEAL |

Error: GCC_ANALYZER_WARNING (CWE-457): [#def380]
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:228:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘value’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:216:12: enter_function: entry to ‘metadata_proxy_demarshal_property’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:225:13: call_function: calling ‘metadata_demarshal_property’ from ‘metadata_proxy_demarshal_property’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:225:13: return_function: returning to ‘metadata_proxy_demarshal_property’ from ‘metadata_demarshal_property’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:225:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:228:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:228:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:228:9: danger: use of uninitialized value ‘value’ here
#  226|   				&subject, &key, &type, &value) < 0)
#  227|   		return -EINVAL;
#  228|-> 	pw_proxy_notify(proxy, struct pw_metadata_events, property, 0, subject, key, type, value);
#  229|   	return 0;
#  230|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def381]
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:244:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘value’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:232:12: enter_function: entry to ‘metadata_resource_demarshal_property’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:241:13: call_function: calling ‘metadata_demarshal_property’ from ‘metadata_resource_demarshal_property’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:241:13: return_function: returning to ‘metadata_resource_demarshal_property’ from ‘metadata_demarshal_property’
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:241:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:244:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:244:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-metadata/protocol-native.c:244:9: danger: use of uninitialized value ‘value’ here
#  242|   				&subject, &key, &type, &value) < 0)
#  243|   		return -EINVAL;
#  244|-> 	pw_resource_notify(resource, struct pw_metadata_events, property, 0, subject, key, type, value);
#  245|   	return 0;
#  246|   }

Error: CPPCHECK_WARNING (CWE-457): [#def382]
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:984: error[uninitvar]: Uninitialized variable: ctype
#  982|   		return -EINVAL;
#  983|   
#  984|-> 	if (ctype != SPA_TYPE_Id)
#  985|   		return -EINVAL;
#  986|   

Error: CPPCHECK_WARNING (CWE-457): [#def383]
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1245: error[uninitvar]: Uninitialized variable: ctype
# 1243|   		return -EINVAL;
# 1244|   
# 1245|-> 	if (ctype != SPA_TYPE_Id)
# 1246|   		return -EINVAL;
# 1247|   

Error: CPPCHECK_WARNING (CWE-457): [#def384]
pipewire-1.4.8/src/modules/module-protocol-native/protocol-native.c:1469: error[uninitvar]: Uninitialized variable: ctype
# 1467|   		return -EINVAL;
# 1468|   
# 1469|-> 	if (ctype != SPA_TYPE_Id)
# 1470|   		return -EINVAL;
# 1471|   

Error: CPPCHECK_WARNING (CWE-190): [#def385]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  275|   		return -EINVAL;
#  276|   
#  277|->         return pw_resource_notify(resource, struct pw_core_methods, hello, 0, 2);
#  278|   }
#  279|   

Error: CPPCHECK_WARNING (CWE-190): [#def386]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  288|   		return -EINVAL;
#  289|   
#  290|->         return pw_resource_notify(resource, struct pw_core_methods, sync, 0, 0, seq);
#  291|   }
#  292|   

Error: CPPCHECK_WARNING (CWE-190): [#def387]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:305: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  303|   		return -EINVAL;
#  304|   
#  305|->         return pw_resource_notify(resource, struct pw_core_methods, get_registry, 0, version, new_id);
#  306|   }
#  307|   

Error: CPPCHECK_WARNING (CWE-190): [#def388]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:714: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  712|   		return -EINVAL;
#  713|   
#  714|-> 	return pw_resource_notify(resource, struct pw_core_methods, create_object, 0, factory_name,
#  715|                                                                         type_name, version,
#  716|                                                                         &props, new_id);

Error: CPPCHECK_WARNING (CWE-190): [#def389]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:736: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  734|   		goto no_resource;
#  735|   
#  736|-> 	return pw_resource_notify(resource, struct pw_core_methods, destroy, 0, r);
#  737|   
#  738|   no_resource:

Error: CPPCHECK_WARNING (CWE-457): [#def390]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:866: error[uninitvar]: Uninitialized variable: type
#  864|   		return -EINVAL;
#  865|   
#  866|-> 	type_name = pw_protocol_native0_name_from_v2(client, type);
#  867|   	if (type_name == NULL)
#  868|   		return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def391]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:870: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  868|   		return -EINVAL;
#  869|   
#  870|-> 	return pw_resource_notify(resource, struct pw_registry_methods, bind, 0, id, type_name, version, new_id);
#  871|   }
#  872|   

Error: CPPCHECK_WARNING (CWE-457): [#def392]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:1014: error[uninitvar]: Uninitialized variable: id
# 1012|   		return -EINVAL;
# 1013|   
# 1014|-> 	id = pw_protocol_native0_type_from_v2(client, id);
# 1015|   	filter = NULL;
# 1016|   

Error: CPPCHECK_WARNING (CWE-190): [#def393]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:1017: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1015|   	filter = NULL;
# 1016|   
# 1017|->         return pw_resource_notify(resource, struct pw_node_methods, enum_params, 0,
# 1018|                           0, id, index, num, filter);
# 1019|   }

Error: CPPCHECK_WARNING (CWE-457): [#def394]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:1107: error[uninitvar]: Uninitialized variable: id
# 1105|   		return -EINVAL;
# 1106|   
# 1107|-> 	id = pw_protocol_native0_type_from_v2(client, id);
# 1108|   	filter = NULL;
# 1109|   

Error: CPPCHECK_WARNING (CWE-190): [#def395]
pipewire-1.4.8/src/modules/module-protocol-native/v0/protocol-native.c:1110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1108|   	filter = NULL;
# 1109|   
# 1110|->         return pw_resource_notify(resource, struct pw_port_methods, enum_params, 0,
# 1111|                           0, id, index, num, filter);
# 1112|   }

Error: CPPCHECK_WARNING (CWE-570): [#def396]
pipewire-1.4.8/src/modules/module-protocol-pulse/module.c:303: error[comparePointers]: Comparing pointers that point to different objects
#  301|   	const struct module_info *info = __start_pw_mod_pulse_modules;
#  302|   
#  303|-> 	for (; info < __stop_pw_mod_pulse_modules; info++) {
#  304|   		if (spa_streq(info->name, name))
#  305|   			return info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def397]
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5504:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5481:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5492:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5495:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5499:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5499:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5500:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5500:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5504:22: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 5502|   	spa_list_init(&impl->free_messages);
# 5503|   
# 5504|-> 	impl->loop = pw_context_get_main_loop(context);
# 5505|   	impl->work_queue = pw_context_get_work_queue(context);
# 5506|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def398]
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5504:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5481:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5491:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5492:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5495:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5499:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5499:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5500:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5500:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.4.8/src/modules/module-protocol-pulse/pulse-server.c:5504:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 5502|   	spa_list_init(&impl->free_messages);
# 5503|   
# 5504|-> 	impl->loop = pw_context_get_main_loop(context);
# 5505|   	impl->work_queue = pw_context_get_work_queue(context);
# 5506|   

Error: CPPCHECK_WARNING (CWE-457): [#def399]
pipewire-1.4.8/src/modules/module-pulse-tunnel.c:854: warning[uninitvar]: Uninitialized variable: vols
#  852|   	spa_pod_builder_prop(&b, SPA_PROP_channelVolumes, 0);
#  853|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
#  854|-> 			impl->volume.channels, vols);
#  855|   	spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
#  856|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,

Error: CPPCHECK_WARNING (CWE-457): [#def400]
pipewire-1.4.8/src/modules/module-pulse-tunnel.c:857: warning[uninitvar]: Uninitialized variable: soft_vols
#  855|   	spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
#  856|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
#  857|-> 			impl->volume.channels, soft_vols);
#  858|   	param = spa_pod_builder_pop(&b, &f[0]);
#  859|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def401]
pipewire-1.4.8/src/modules/module-rt.c:1087:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rt.c:1081:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rt.c:1082:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1087:24: branch_true: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1087:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1085|   	pw_log_debug("module %p: new", impl);
# 1086|   
# 1087|-> 	props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);
# 1088|   	if (!props) {
# 1089|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def402]
pipewire-1.4.8/src/modules/module-rt.c:1087:57: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rt.c:1081:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rt.c:1082:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1087:57: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1087:57: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1085|   	pw_log_debug("module %p: new", impl);
# 1086|   
# 1087|-> 	props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);
# 1088|   	if (!props) {
# 1089|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def403]
pipewire-1.4.8/src/modules/module-rt.c:1092:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rt.c:1081:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rt.c:1082:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1088:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1092:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1092:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1090|   		goto error;
# 1091|   	}
# 1092|-> 	pw_context_conf_update_props(context, "module."NAME".args", props);
# 1093|   
# 1094|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def404]
pipewire-1.4.8/src/modules/module-rt.c:1112:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rt.c:1081:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rt.c:1082:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1088:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1092:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1111:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1112:17: branch_true: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1112:17: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1112:17: branch_true: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1112:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1110|   
# 1111|   	if (!IS_VALID_NICE_LEVEL(impl->nice_level)) {
# 1112|-> 		pw_log_info("invalid nice level %d (not between %d and %d). "
# 1113|   				"nice level will not be adjusted",
# 1114|   				impl->nice_level, MIN_NICE_LEVEL, MAX_NICE_LEVEL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def405]
pipewire-1.4.8/src/modules/module-rtp-sap.c:796:28: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1830:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1841:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1842:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1845:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1852:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1857:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1872:20: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1875:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1875:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1875:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1879:59: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1890:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1901:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1913:22: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1923:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1924:24: branch_true: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1951:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  794|   		const char *str;
#  795|   
#  796|-> 		if ((str = pw_properties_get(sess->props, "source.ip")) == NULL) {
#  797|   			if (impl->ifname) {
#  798|   				int fd = socket(impl->sap_addr.ss_family, SOCK_DGRAM, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def406]
pipewire-1.4.8/src/modules/module-rtp-sap.c:1789:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1830:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1841:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1842:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1845:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1852:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1853:24: branch_true: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1951:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 1787|   		close(impl->sap_fd);
# 1788|   	if (impl->ptp_fd != -1)
# 1789|-> 		close(impl->ptp_fd);
# 1790|   
# 1791|   	pw_properties_free(impl->props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def407]
pipewire-1.4.8/src/modules/module-rtp-sap.c:1791:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1830:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.8/src/modules/module-rtp-sap.c:1841:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1842:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1845:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1852:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-rtp-sap.c:1853:24: branch_true: ...to here
pipewire-1.4.8/src/modules/module-rtp-sap.c:1951:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 1789|   		close(impl->ptp_fd);
# 1790|   
# 1791|-> 	pw_properties_free(impl->props);
# 1792|   
# 1793|   	free(impl->extra_attrs_preamble);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def408]
pipewire-1.4.8/src/modules/module-rtp-source.c:588:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rtp-source.c:571:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rtp-source.c:572:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rtp-source.c:575:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-source.c:580:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rtp-source.c:586:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rtp-source.c:588:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  586|   	impl->module = module;
#  587|   	impl->context = context;
#  588|-> 	impl->loop = pw_context_get_main_loop(context);
#  589|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  590|   

Error: CPPCHECK_WARNING (CWE-457): [#def409]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:1287: error[uninitvar]: Uninitialized variable: ctype
# 1285|   		return -EINVAL;
# 1286|   
# 1287|-> 	if (ctype != SPA_TYPE_Id)
# 1288|   		return -EINVAL;
# 1289|   

Error: CPPCHECK_WARNING (CWE-457): [#def410]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:1307: error[uninitvar]: Uninitialized variable: ctype
# 1305|   		return -EINVAL;
# 1306|   
# 1307|-> 	if (ctype != SPA_TYPE_Id)
# 1308|   		return -EINVAL;
# 1309|   

Error: CPPCHECK_WARNING (CWE-457): [#def411]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:1809: error[uninitvar]: Uninitialized variable: ctype
# 1807|   		return -EINVAL;
# 1808|   
# 1809|-> 	if (ctype != SPA_TYPE_Id)
# 1810|   		return -EINVAL;
# 1811|   

Error: CPPCHECK_WARNING (CWE-457): [#def412]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:1829: error[uninitvar]: Uninitialized variable: ctype
# 1827|   		return -EINVAL;
# 1828|   
# 1829|-> 	if (ctype != SPA_TYPE_Id)
# 1830|   		return -EINVAL;
# 1831|   

Error: CPPCHECK_WARNING (CWE-457): [#def413]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2323: error[uninitvar]: Uninitialized variable: ctype
# 2321|   		return -EINVAL;
# 2322|   
# 2323|-> 	if (ctype != SPA_TYPE_Id)
# 2324|   		return -EINVAL;
# 2325|   

Error: CPPCHECK_WARNING (CWE-457): [#def414]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2343: error[uninitvar]: Uninitialized variable: ctype
# 2341|   		return -EINVAL;
# 2342|   
# 2343|-> 	if (ctype != SPA_TYPE_Id)
# 2344|   		return -EINVAL;
# 2345|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def415]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2806:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2788:12: enter_function: entry to ‘session_proxy_demarshal_param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘session_proxy_demarshal_param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:13: return_function: returning to ‘session_proxy_demarshal_param’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:13: call_function: calling ‘spa_pod_parser_get’ from ‘session_proxy_demarshal_param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:13: return_function: returning to ‘session_proxy_demarshal_param’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2798:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2806:16: branch_false: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2806:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2806:16: danger: use of uninitialized value ‘param’ here
# 2804|   		return -EINVAL;
# 2805|   
# 2806|-> 	return pw_proxy_notify(proxy, struct pw_session_events,
# 2807|   				param, 0, seq, id, index, next, param);
# 2808|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def416]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2828:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2810:12: enter_function: entry to ‘session_resource_demarshal_param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘session_resource_demarshal_param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:13: return_function: returning to ‘session_resource_demarshal_param’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:13: call_function: calling ‘spa_pod_parser_get’ from ‘session_resource_demarshal_param’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:13: return_function: returning to ‘session_resource_demarshal_param’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2820:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2828:16: branch_false: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2828:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2828:16: danger: use of uninitialized value ‘param’ here
# 2826|   		return -EINVAL;
# 2827|   
# 2828|-> 	return pw_resource_notify(resource, struct pw_session_events,
# 2829|   				param, 0, seq, id, index, next, param);
# 2830|   }

Error: CPPCHECK_WARNING (CWE-457): [#def417]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2845: error[uninitvar]: Uninitialized variable: ctype
# 2843|   		return -EINVAL;
# 2844|   
# 2845|-> 	if (ctype != SPA_TYPE_Id)
# 2846|   		return -EINVAL;
# 2847|   

Error: CPPCHECK_WARNING (CWE-457): [#def418]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2865: error[uninitvar]: Uninitialized variable: ctype
# 2863|   		return -EINVAL;
# 2864|   
# 2865|-> 	if (ctype != SPA_TYPE_Id)
# 2866|   		return -EINVAL;
# 2867|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def419]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2890:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘filter’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2872:12: enter_function: entry to ‘session_proxy_demarshal_enum_params’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘session_proxy_demarshal_enum_params’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:13: return_function: returning to ‘session_proxy_demarshal_enum_params’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:13: call_function: calling ‘spa_pod_parser_get’ from ‘session_proxy_demarshal_enum_params’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:13: return_function: returning to ‘session_proxy_demarshal_enum_params’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2882:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2890:16: branch_false: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2890:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2890:16: danger: use of uninitialized value ‘filter’ here
# 2888|   		return -EINVAL;
# 2889|   
# 2890|-> 	return pw_proxy_notify(proxy, struct pw_session_methods,
# 2891|   				enum_params, 0, seq, id, index, num, filter);
# 2892|   }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def420]
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2912:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘filter’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2894:12: enter_function: entry to ‘session_resource_demarshal_enum_params’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘session_resource_demarshal_enum_params’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:13: return_function: returning to ‘session_resource_demarshal_enum_params’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:13: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:13: branch_true: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:13: call_function: calling ‘spa_pod_parser_get’ from ‘session_resource_demarshal_enum_params’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:13: return_function: returning to ‘session_resource_demarshal_enum_params’ from ‘spa_pod_parser_get’
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2904:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2912:16: branch_false: ...to here
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2912:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/modules/module-session-manager/protocol-native.c:2912:16: danger: use of uninitialized value ‘filter’ here
# 2910|   		return -EINVAL;
# 2911|   
# 2912|-> 	return pw_resource_notify(resource, struct pw_session_methods,
# 2913|   				enum_params, 0, seq, id, index, num, filter);
# 2914|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def421]
pipewire-1.4.8/src/modules/module-vban-recv.c:684:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-vban-recv.c:667:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-vban-recv.c:668:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-vban-recv.c:671:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-vban-recv.c:676:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-vban-recv.c:682:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-vban-recv.c:684:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  682|   	impl->module = module;
#  683|   	impl->context = context;
#  684|-> 	impl->loop = pw_context_get_main_loop(context);
#  685|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  686|   	spa_list_init(&impl->streams);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def422]
pipewire-1.4.8/src/pipewire/array.h:140:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*impl.mems.data’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:636:1: enter_function: entry to ‘impl_node_port_set_io’
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:648:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:649:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:661:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:665:12: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:665:12: branch_true: following ‘true’ branch (when ‘data’ is non-NULL)...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:666:28: branch_true: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:666:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:669:30: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:671:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:674:31: branch_false: ...to here
pipewire-1.4.8/src/modules/module-client-node/v0/client-node.c:675:21: call_function: calling ‘ensure_mem’ from ‘impl_node_port_set_io’
#  138|   
#  139|   	p = SPA_PTROFF(arr->data, arr->size, void);
#  140|-> 	arr->size += size;
#  141|   
#  142|   	return p;

Error: CPPCHECK_WARNING (CWE-190): [#def423]
pipewire-1.4.8/src/pipewire/impl-link.c:763: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  761|   
#  762|   	spa_list_remove(&this->input_link);
#  763|-> 	pw_impl_port_emit_link_removed(this->input, this);
#  764|   
#  765|   	pw_impl_port_recalc_latency(this->input);

Error: CPPCHECK_WARNING (CWE-190): [#def424]
pipewire-1.4.8/src/pipewire/impl-link.c:793: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  791|   
#  792|   	spa_list_remove(&this->output_link);
#  793|-> 	pw_impl_port_emit_link_removed(this->output, this);
#  794|   
#  795|   	pw_impl_port_recalc_latency(this->output);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def425]
pipewire-1.4.8/src/pipewire/properties.h:120:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.8/src/modules/module-rt.c:1072:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.8/src/modules/module-rt.c:1081:16: acquire_memory: allocated here
pipewire-1.4.8/src/modules/module-rt.c:1082:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1085:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/modules/module-rt.c:1087:17: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1088:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.4.8/src/modules/module-rt.c:1092:9: branch_false: ...to here
pipewire-1.4.8/src/modules/module-rt.c:1095:28: call_function: inlined call to ‘pw_properties_get_int32’ from ‘pipewire__module_init’
#  118|   {
#  119|   	int32_t val = deflt;
#  120|-> 	pw_properties_fetch_int32(properties, key, &val);
#  121|   	return val;
#  122|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def426]
pipewire-1.4.8/src/pipewire/thread-loop.c:165:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.4.8/src/pipewire/thread-loop.c:141:16: acquire_memory: allocated here
pipewire-1.4.8/src/pipewire/thread-loop.c:142:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.4.8/src/pipewire/thread-loop.c:145:9: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:145:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/pipewire/thread-loop.c:146:12: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:152:12: branch_false: following ‘false’ branch (when ‘loop’ is non-NULL)...
pipewire-1.4.8/src/pipewire/thread-loop.c:160:9: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:165:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/pipewire/thread-loop.c:165:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  163|   	spa_hook_list_init(&this->listener_list);
#  164|   
#  165|-> 	CHECK(pthread_mutexattr_init(&attr), clean_this);
#  166|   	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), clean_this);
#  167|   	CHECK(pthread_mutex_init(&this->lock, &attr), clean_this);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def427]
pipewire-1.4.8/src/pipewire/thread-loop.c:166:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.4.8/src/pipewire/thread-loop.c:141:16: acquire_memory: allocated here
pipewire-1.4.8/src/pipewire/thread-loop.c:142:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.4.8/src/pipewire/thread-loop.c:145:9: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:145:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/pipewire/thread-loop.c:146:12: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:152:12: branch_false: following ‘false’ branch (when ‘loop’ is non-NULL)...
pipewire-1.4.8/src/pipewire/thread-loop.c:160:9: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:165:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/pipewire/thread-loop.c:166:9: branch_false: ...to here
pipewire-1.4.8/src/pipewire/thread-loop.c:166:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/pipewire/thread-loop.c:166:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  164|   
#  165|   	CHECK(pthread_mutexattr_init(&attr), clean_this);
#  166|-> 	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), clean_this);
#  167|   	CHECK(pthread_mutex_init(&this->lock, &attr), clean_this);
#  168|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def428]
pipewire-1.4.8/src/pipewire/thread-loop.c:193:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.4.8/src/pipewire/thread-loop.c:213:24: enter_function: entry to ‘pw_thread_loop_new’
pipewire-1.4.8/src/pipewire/thread-loop.c:216:16: call_function: calling ‘loop_new’ from ‘pw_thread_loop_new’
#  191|   clean_this:
#  192|   	if (this->created && this->loop)
#  193|-> 		pw_loop_destroy(this->loop);
#  194|   	free(this);
#  195|   	errno = -res;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def429]
pipewire-1.4.8/src/tools/midifile.c:66:20: warning[-Wanalyzer-file-leak]: leak of FILE
pipewire-1.4.8/src/tools/midifile.c:278:1: enter_function: entry to ‘midi_file_open’
pipewire-1.4.8/src/tools/midifile.c:284:12: branch_false: following ‘false’ branch (when ‘mf’ is non-NULL)...
pipewire-1.4.8/src/tools/midifile.c:287:13: branch_false: ...to here
pipewire-1.4.8/src/tools/midifile.c:287:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/midifile.c:288:28: branch_true: ...to here
pipewire-1.4.8/src/tools/midifile.c:288:28: call_function: calling ‘open_read’ from ‘midi_file_open’
#   64|   	if (mf->pos == offs)
#   65|   		return 0;
#   66|-> 	if ((res = fseek(mf->file, offs, SEEK_SET)) != 0)
#   67|   		return -errno;
#   68|   	mf->pos = offs;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def430]
pipewire-1.4.8/src/tools/midifile.c:66:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/src/tools/midifile.c:278:1: enter_function: entry to ‘midi_file_open’
pipewire-1.4.8/src/tools/midifile.c:284:12: branch_false: following ‘false’ branch (when ‘mf’ is non-NULL)...
pipewire-1.4.8/src/tools/midifile.c:287:13: branch_false: ...to here
pipewire-1.4.8/src/tools/midifile.c:287:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/midifile.c:288:28: branch_true: ...to here
pipewire-1.4.8/src/tools/midifile.c:288:28: call_function: calling ‘open_read’ from ‘midi_file_open’
#   64|   	if (mf->pos == offs)
#   65|   		return 0;
#   66|-> 	if ((res = fseek(mf->file, offs, SEEK_SET)) != 0)
#   67|   		return -errno;
#   68|   	mf->pos = offs;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def431]
pipewire-1.4.8/src/tools/pw-cli.c:159:33: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘params’
pipewire-1.4.8/src/tools/pw-cli.c:1047:13: enter_function: entry to ‘session_event_info’
pipewire-1.4.8/src/tools/pw-cli.c:1054:12: branch_true: following ‘true’ branch (when ‘info’ is NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1055:35: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1056:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1057:28: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1058:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1059:42: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1061:40: acquire_memory: this call could return NULL
pipewire-1.4.8/src/tools/pw-cli.c:1065:20: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1071:13: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1071:12: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1073:13: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1073:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1074:17: call_function: calling ‘info_session’ from ‘session_event_info’
#  157|   				spa_debug_type_find_name(type_info, params[i].id),
#  158|   				params[i].flags & SPA_PARAM_INFO_READ ? 'r' : '-',
#  159|-> 				params[i].flags & SPA_PARAM_INFO_WRITE ? 'w' : '-');
#  160|   		params[i].user = 0;
#  161|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def432]
pipewire-1.4.8/src/tools/pw-cli.c:1062:46: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)*info.n_params * 32)’
pipewire-1.4.8/src/tools/pw-cli.c:1054:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1057:28: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1058:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1059:42: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1061:40: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:1062:46: danger: ‘malloc((long unsigned int)*info.n_params * 32)’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
# 1060|   			free(info->params);
# 1061|   			info->params = malloc(info->n_params * sizeof(struct spa_param_info));
# 1062|-> 			memcpy(info->params, update->params,
# 1063|   				info->n_params * sizeof(struct spa_param_info));
# 1064|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def433]
pipewire-1.4.8/src/tools/pw-cli.c:1106:37: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/src/tools/pw-cli.c:1101:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1104:28: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1105:30: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1105:45: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1105:45: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:1106:37: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/4)
# 1104|   		info->id = update->id;
# 1105|   		info->name = update->name ? strdup(update->name) : NULL;
# 1106|-> 		info->media_class = update->media_class ? strdup(update->media_class) : NULL;
# 1107|   		info->direction = update->direction;
# 1108|   		info->flags = update->flags;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def434]
pipewire-1.4.8/src/tools/pw-cli.c:1107:35: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/src/tools/pw-cli.c:1101:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1104:28: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1105:30: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1105:17: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1106:37: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1106:59: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1106:59: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:1107:35: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 1105|   		info->name = update->name ? strdup(update->name) : NULL;
# 1106|   		info->media_class = update->media_class ? strdup(update->media_class) : NULL;
# 1107|-> 		info->direction = update->direction;
# 1108|   		info->flags = update->flags;
# 1109|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def435]
pipewire-1.4.8/src/tools/pw-cli.c:1118:46: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)*info.n_params * 32)’
pipewire-1.4.8/src/tools/pw-cli.c:1101:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1104:28: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1105:30: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1105:17: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1106:37: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1106:17: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1114:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1115:42: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1117:40: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:1118:46: danger: ‘malloc((long unsigned int)*info.n_params * 32)’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
# 1116|   			free(info->params);
# 1117|   			info->params = malloc(info->n_params * sizeof(struct spa_param_info));
# 1118|-> 			memcpy(info->params, update->params,
# 1119|   				info->n_params * sizeof(struct spa_param_info));
# 1120|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def436]
pipewire-1.4.8/src/tools/pw-cli.c:1163:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/src/tools/pw-cli.c:1156:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1159:28: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1161:30: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1161:45: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1161:45: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:1163:21: danger: ‘<unknown>’ leaks here; was allocated at [(5)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/4)
# 1161|   		info->name = update->name ? strdup(update->name) : NULL;
# 1162|   
# 1163|-> 		if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PARAMS) {
# 1164|   			info->n_params = update->n_params;
# 1165|   			free(info->params);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
pipewire-1.4.8/src/tools/pw-cli.c:1167:46: warning[-Wanalyzer-malloc-leak]: leak of ‘malloc((long unsigned int)*info.n_params * 32)’
pipewire-1.4.8/src/tools/pw-cli.c:1156:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:1159:28: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1161:30: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1161:17: branch_false: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1163:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:1164:42: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:1166:40: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:1167:46: danger: ‘malloc((long unsigned int)*info.n_params * 32)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
# 1165|   			free(info->params);
# 1166|   			info->params = malloc(info->n_params * sizeof(struct spa_param_info));
# 1167|-> 			memcpy(info->params, update->params,
# 1168|   				info->n_params * sizeof(struct spa_param_info));
# 1169|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def438]
pipewire-1.4.8/src/tools/pw-cli.c:2171:13: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
pipewire-1.4.8/src/tools/pw-cli.c:2196:13: enter_function: entry to ‘input_process_line’
pipewire-1.4.8/src/tools/pw-cli.c:2201:12: branch_true: following ‘true’ branch (when ‘line’ is NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:2202:24: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:2202:24: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:2204:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:2206:17: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:2208:22: call_function: calling ‘parse’ from ‘input_process_line’
# 2169|   		*p = '\0';
# 2170|   
# 2171|-> 	p = pw_strip(buf, "\n\r \t");
# 2172|   
# 2173|   	if (*p == '\0')

Error: GCC_ANALYZER_WARNING (CWE-476): [#def439]
pipewire-1.4.8/src/tools/pw-cli.c:2204:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘line’
pipewire-1.4.8/src/tools/pw-cli.c:2201:12: branch_true: following ‘true’ branch (when ‘line’ is NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:2202:24: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:2202:24: acquire_memory: this call could return NULL
pipewire-1.4.8/src/tools/pw-cli.c:2204:13: danger: ‘line’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
# 2202|   		line = strdup("quit");
# 2203|   
# 2204|-> 	if (line[0] != '\0') {
# 2205|   #ifdef HAVE_READLINE
# 2206|   		add_history(line);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
pipewire-1.4.8/src/tools/pw-cli.c:2206:17: warning[-Wanalyzer-malloc-leak]: leak of ‘line’
pipewire-1.4.8/src/tools/pw-cli.c:2201:12: branch_true: following ‘true’ branch (when ‘line’ is NULL)...
pipewire-1.4.8/src/tools/pw-cli.c:2202:24: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:2202:24: acquire_memory: allocated here
pipewire-1.4.8/src/tools/pw-cli.c:2204:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/pw-cli.c:2206:17: branch_true: ...to here
pipewire-1.4.8/src/tools/pw-cli.c:2206:17: danger: ‘line’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
# 2204|   	if (line[0] != '\0') {
# 2205|   #ifdef HAVE_READLINE
# 2206|-> 		add_history(line);
# 2207|   #endif
# 2208|   		if (!parse(d, line, &error)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
pipewire-1.4.8/src/tools/reserve.c:398:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.8/src/tools/reserve.c:339:1: enter_function: entry to ‘rd_device_new’
pipewire-1.4.8/src/tools/reserve.c:345:14: call_function: calling ‘rd_device_valid_device_name’ from ‘rd_device_new’
pipewire-1.4.8/src/tools/reserve.c:345:14: return_function: returning to ‘rd_device_new’ from ‘rd_device_valid_device_name’
pipewire-1.4.8/src/tools/reserve.c:345:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/reserve.c:350:13: branch_true: ...to here
pipewire-1.4.8/src/tools/reserve.c:351:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
pipewire-1.4.8/src/tools/reserve.c:354:9: branch_false: ...to here
pipewire-1.4.8/src/tools/reserve.c:359:31: acquire_memory: allocated here
pipewire-1.4.8/src/tools/reserve.c:361:26: branch_false: following ‘false’ branch...
pipewire-1.4.8/src/tools/reserve.c:361:26: branch_false: ...to here
pipewire-1.4.8/src/tools/reserve.c:362:12: branch_true: following ‘true’ branch...
pipewire-1.4.8/src/tools/reserve.c:363:24: branch_true: ...to here
pipewire-1.4.8/src/tools/reserve.c:398:9: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/13)
#  396|   	free(d->service_name);
#  397|   	free(d->object_path);
#  398|-> 	free(d);
#  399|   	errno = -res;
#  400|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def442]
pipewire-1.4.8/test/test-logger.c:97:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:93:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:97:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:97:25: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   95|   		if (strstr(buffer, "MARK")) {
#   96|   			mark_line_found = true;
#   97|-> 			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RESET));
#   98|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RED));
#   99|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BRIGHT_RED));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def443]
pipewire-1.4.8/test/test-logger.c:98:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:93:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:97:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.4.8/test/test-logger.c:98:25: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:98:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:98:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:98:25: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   96|   			mark_line_found = true;
#   97|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RESET));
#   98|-> 			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RED));
#   99|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BRIGHT_RED));
#  100|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BOLD_RED));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def444]
pipewire-1.4.8/test/test-logger.c:99:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:93:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:97:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.4.8/test/test-logger.c:98:25: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:98:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.4.8/test/test-logger.c:99:25: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:99:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:99:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:99:25: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   97|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RESET));
#   98|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RED));
#   99|-> 			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BRIGHT_RED));
#  100|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BOLD_RED));
#  101|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def445]
pipewire-1.4.8/test/test-logger.c:100:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:93:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:97:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.4.8/test/test-logger.c:98:25: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:98:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.4.8/test/test-logger.c:99:25: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:99:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.4.8/test/test-logger.c:100:25: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:100:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:100:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:100:25: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   98|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_RED));
#   99|   			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BRIGHT_RED));
#  100|-> 			pwtest_ptr_null(strstr(buffer, SPA_ANSI_BOLD_RED));
#  101|   		}
#  102|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def446]
pipewire-1.4.8/test/test-logger.c:183:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:179:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:180:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:180:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:183:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  181|   	unsetenv("PIPEWIRE_DEBUG");
#  182|   
#  183|-> 	pw_log_set_level(level);
#  184|   
#  185|   	test_log_levels(level);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def447]
pipewire-1.4.8/test/test-logger.c:213:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:198:1: enter_function: entry to ‘logger_debug_env’
pipewire-1.4.8/test/test-logger.c:206:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:207:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:207:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:209:9: call_function: calling ‘spa_scnprintf’ from ‘logger_debug_env’
pipewire-1.4.8/test/test-logger.c:209:9: return_function: returning to ‘logger_debug_env’ from ‘spa_scnprintf’
pipewire-1.4.8/test/test-logger.c:213:9: danger: ‘oldenv’ leaks here; was allocated at [(4)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/3)
#  211|   
#  212|   	/* Disable logging, let PIPEWIRE_DEBUG set the level */
#  213|-> 	pw_log_set_level(SPA_LOG_LEVEL_NONE);
#  214|   
#  215|   	test_log_levels(level);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def448]
pipewire-1.4.8/test/test-logger.c:249:25: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:238:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:239:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:239:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:249:25: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/2)
#  247|   		case SPA_LOG_LEVEL_TRACE: lvl = "T"; break;
#  248|   		default:
#  249|-> 			pwtest_fail_if_reached();
#  250|   			break;
#  251|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def449]
pipewire-1.4.8/test/test-logger.c:255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:238:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:239:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:239:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:255:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  253|   
#  254|   	/* Disable logging, let PIPEWIRE_DEBUG set the level */
#  255|-> 	pw_log_set_level(SPA_LOG_LEVEL_NONE);
#  256|   
#  257|   	test_log_levels(level);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def450]
pipewire-1.4.8/test/test-logger.c:292:25: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:281:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:282:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:282:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:292:25: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/2)
#  290|   		case SPA_LOG_LEVEL_TRACE: lvl = "T"; break;
#  291|   		default:
#  292|-> 			pwtest_fail_if_reached();
#  293|   			break;
#  294|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def451]
pipewire-1.4.8/test/test-logger.c:301:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:272:1: enter_function: entry to ‘logger_debug_env_topic_all’
pipewire-1.4.8/test/test-logger.c:281:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:282:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:282:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:297:9: call_function: calling ‘spa_scnprintf’ from ‘logger_debug_env_topic_all’
pipewire-1.4.8/test/test-logger.c:297:9: return_function: returning to ‘logger_debug_env_topic_all’ from ‘spa_scnprintf’
pipewire-1.4.8/test/test-logger.c:301:9: danger: ‘oldenv’ leaks here; was allocated at [(4)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/3)
#  299|   
#  300|   	/* Disable logging, let PIPEWIRE_DEBUG set the level */
#  301|-> 	pw_log_set_level(SPA_LOG_LEVEL_NONE);
#  302|   
#  303|   	test_log_levels(level);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def452]
pipewire-1.4.8/test/test-logger.c:346:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:346:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/2)
#  344|   	/* The error message during pw_init() will go to stderr because no
#  345|   	 * logger has been set up yet. Intercept that in our temp file */
#  346|-> 	pwtest_mkstemp(fname);
#  347|   	fd = open(fname, O_RDWR);
#  348|   	pwtest_errno_ok(fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def453]
pipewire-1.4.8/test/test-logger.c:347:14: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:347:14: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/2)
#  345|   	 * logger has been set up yet. Intercept that in our temp file */
#  346|   	pwtest_mkstemp(fname);
#  347|-> 	fd = open(fname, O_RDWR);
#  348|   	pwtest_errno_ok(fd);
#  349|   	rc = dup2(fd, STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def454]
pipewire-1.4.8/test/test-logger.c:348:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:348:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:348:9: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:348:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  346|   	pwtest_mkstemp(fname);
#  347|   	fd = open(fname, O_RDWR);
#  348|-> 	pwtest_errno_ok(fd);
#  349|   	rc = dup2(fd, STDERR_FILENO);
#  350|   	setlinebuf(stderr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def455]
pipewire-1.4.8/test/test-logger.c:351:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:351:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  349|   	rc = dup2(fd, STDERR_FILENO);
#  350|   	setlinebuf(stderr);
#  351|-> 	pwtest_errno_ok(rc);
#  352|   
#  353|   	setenv("PIPEWIRE_DEBUG", envvars[which], 1);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def456]
pipewire-1.4.8/test/test-logger.c:354:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:354:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  352|   
#  353|   	setenv("PIPEWIRE_DEBUG", envvars[which], 1);
#  354|-> 	pw_init(0, NULL);
#  355|   
#  356|   	fsync(STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def457]
pipewire-1.4.8/test/test-logger.c:356:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:356:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
#  354|   	pw_init(0, NULL);
#  355|   
#  356|-> 	fsync(STDERR_FILENO);
#  357|   	lseek(fd, SEEK_SET, 0);
#  358|   	while ((rc = read(fd, buf, sizeof(buf) - 1) > 0)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def458]
pipewire-1.4.8/test/test-logger.c:365:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:365:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  363|   	}
#  364|   	pwtest_errno_ok(rc);
#  365|-> 	close(fd);
#  366|   	pwtest_bool_true(error_message_found);
#  367|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def459]
pipewire-1.4.8/test/test-logger.c:366:9: warning[-Wanalyzer-malloc-leak]: leak of ‘oldenv’
pipewire-1.4.8/test/test-logger.c:341:12: branch_true: following ‘true’ branch (when ‘oldenv’ is non-NULL)...
pipewire-1.4.8/test/test-logger.c:342:26: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:342:26: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.4.8/test/test-logger.c:351:9: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:366:9: branch_false: following ‘false’ branch (when ‘error_message_found == 0’)...
pipewire-1.4.8/test/test-logger.c:366:9: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:366:9: danger: ‘oldenv’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
#  364|   	pwtest_errno_ok(rc);
#  365|   	close(fd);
#  366|-> 	pwtest_bool_true(error_message_found);
#  367|   
#  368|   	if (oldenv) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def460]
pipewire-1.4.8/test/test-logger.c:416:25: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:412:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:413:16: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:414:21: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:414:20: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:416:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:416:25: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-logger.c:416:25: branch_true: ...to here
pipewire-1.4.8/test/test-logger.c:416:25: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
#  414|   		if (strstr(buffer, "MARK")) {
#  415|   			mark_line_found = true;
#  416|-> 			pwtest_str_contains(buffer, "my topic");
#  417|   		}
#  418|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def461]
pipewire-1.4.8/test/test-logger.c:420:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:412:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:420:9: branch_false: following ‘false’ branch (when ‘mark_line_found == 0’)...
pipewire-1.4.8/test/test-logger.c:420:9: branch_false: ...to here
pipewire-1.4.8/test/test-logger.c:420:9: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  418|   	}
#  419|   
#  420|-> 	pwtest_bool_true(mark_line_found);
#  421|   	pwtest_spa_plugin_destroy(plugin);
#  422|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def462]
pipewire-1.4.8/test/test-logger.c:421:9: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&fname, "re")’
pipewire-1.4.8/test/test-logger.c:412:14: acquire_memory: allocated here
pipewire-1.4.8/test/test-logger.c:421:9: danger: ‘fopen(&fname, "re")’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
#  419|   
#  420|   	pwtest_bool_true(mark_line_found);
#  421|-> 	pwtest_spa_plugin_destroy(plugin);
#  422|   
#  423|   	fclose(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def463]
pipewire-1.4.8/test/test-spa-buffer.c:117:25: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.4.8/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.4.8/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.4.8/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.4.8/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.4.8/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.4.8/test/test-spa-buffer.c:106:29: branch_true: following ‘true’ branch (when ‘j != 4’)...
pipewire-1.4.8/test/test-spa-buffer.c:107:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-buffer.c:113:29: branch_true: following ‘true’ branch (when ‘j != 2’)...
pipewire-1.4.8/test/test-spa-buffer.c:114:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-buffer.c:117:25: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-buffer.c:117:25: branch_false: ...to here
pipewire-1.4.8/test/test-spa-buffer.c:117:25: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/22)
#  115|   			fprintf(stderr, " data %d %p %p\n", j, b->datas[j].chunk, b->datas[j].data);
#  116|   			pwtest_bool_true(SPA_IS_ALIGNED(b->datas[j].chunk, 8));
#  117|-> 			pwtest_bool_true(SPA_IS_ALIGNED(b->datas[j].data, aligns[j]));
#  118|   		}
#  119|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def464]
pipewire-1.4.8/test/test-spa-utils.c:259:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:259:9: branch_true: following ‘true’ branch (when ‘e != _a’)...
pipewire-1.4.8/test/test-spa-utils.c:259:9: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:259:9: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  257|   	spa_list_insert(head, &e->node);
#  258|   	pwtest_bool_false(spa_list_is_empty(head));
#  259|-> 	pwtest_ptr_eq(spa_list_first(head, struct string_list, node), e);
#  260|   	pwtest_ptr_eq(spa_list_last(head, struct string_list, node), e);
#  261|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def465]
pipewire-1.4.8/test/test-spa-utils.c:260:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:260:9: branch_true: following ‘true’ branch (when ‘e != _a’)...
pipewire-1.4.8/test/test-spa-utils.c:260:9: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:260:9: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  258|   	pwtest_bool_false(spa_list_is_empty(head));
#  259|   	pwtest_ptr_eq(spa_list_first(head, struct string_list, node), e);
#  260|-> 	pwtest_ptr_eq(spa_list_last(head, struct string_list, node), e);
#  261|   
#  262|   	e = malloc(sizeof(struct string_list));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def466]
pipewire-1.4.8/test/test-spa-utils.c:266:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_true: following ‘true’ branch (when ‘e != _a’)...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:266:9: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  264|   	spa_list_append(head, &e->node);
#  265|   	pwtest_bool_false(spa_list_is_empty(head));
#  266|-> 	pwtest_ptr_eq(spa_list_last(head, struct string_list, node), e);
#  267|   
#  268|   	e = malloc(sizeof(struct string_list));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def467]
pipewire-1.4.8/test/test-spa-utils.c:272:9: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:272:9: branch_true: following ‘true’ branch (when ‘e != _a’)...
pipewire-1.4.8/test/test-spa-utils.c:272:9: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:272:9: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  270|   	spa_list_prepend(head, &e->node);
#  271|   	pwtest_bool_false(spa_list_is_empty(head));
#  272|-> 	pwtest_ptr_eq(spa_list_first(head, struct string_list, node), e);
#  273|   
#  274|   	i = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def468]
pipewire-1.4.8/test/test-spa-utils.c:278:33: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:278:33: call_function: calling ‘spa_streq’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:278:33: return_function: returning to ‘utils_list’ from ‘spa_streq’
pipewire-1.4.8/test/test-spa-utils.c:278:33: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:278:33: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:278:33: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/1)
#  276|   		switch (i++) {
#  277|   			case 0:
#  278|-> 				pwtest_str_eq(e->string, "First element");
#  279|   				break;
#  280|   			case 1:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def469]
pipewire-1.4.8/test/test-spa-utils.c:281:33: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:278:33: call_function: calling ‘spa_streq’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:278:33: return_function: returning to ‘utils_list’ from ‘spa_streq’
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:281:33: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:281:33: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:281:33: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/1)
#  279|   				break;
#  280|   			case 1:
#  281|-> 				pwtest_str_eq(e->string, "test");
#  282|   				break;
#  283|   			case 2:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def470]
pipewire-1.4.8/test/test-spa-utils.c:284:33: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:255:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:278:33: call_function: calling ‘spa_streq’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:278:33: return_function: returning to ‘utils_list’ from ‘spa_streq’
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:284:33: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:284:33: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:284:33: danger: ‘e’ leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
#  282|   				break;
#  283|   			case 2:
#  284|-> 				pwtest_str_eq(e->string, "pipewire!");
#  285|   				break;
#  286|   			default:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def471]
pipewire-1.4.8/test/test-spa-utils.c:287:33: warning[-Wanalyzer-malloc-leak]: leak of ‘e’
pipewire-1.4.8/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.8/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.8/test/test-spa-utils.c:268:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:270:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:278:33: call_function: calling ‘spa_streq’ from ‘utils_list’
pipewire-1.4.8/test/test-spa-utils.c:278:33: return_function: returning to ‘utils_list’ from ‘spa_streq’
pipewire-1.4.8/test/test-spa-utils.c:275:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:276:25: branch_true: ...to here
pipewire-1.4.8/test/test-spa-utils.c:287:33: danger: ‘e’ leaks here; was allocated at [(4)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/3)
#  285|   				break;
#  286|   			default:
#  287|-> 				pwtest_fail_if_reached();
#  288|   				break;
#  289|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def472]
pipewire-1.4.8/test/test-spa-utils.c:370:9: warning[-Wanalyzer-malloc-leak]: leak of ‘h’
pipewire-1.4.8/test/test-spa-utils.c:344:1: enter_function: entry to ‘utils_hook’
pipewire-1.4.8/test/test-spa-utils.c:361:13: acquire_memory: allocated here
pipewire-1.4.8/test/test-spa-utils.c:362:9: call_function: calling ‘spa_hook_list_append’ from ‘utils_hook’
pipewire-1.4.8/test/test-spa-utils.c:362:9: return_function: returning to ‘utils_hook’ from ‘spa_hook_list_append’
pipewire-1.4.8/test/test-spa-utils.c:370:9: branch_true: following ‘true’ branch...
pipewire-1.4.8/test/test-spa-utils.c:370:9: danger: ‘h’ leaks here; was allocated at [(2)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/1)
#  368|   
#  369|   	/* iterate with the simple API */
#  370|-> 	spa_hook_list_call_simple(&hl, struct my_hook, invoke, HOOK_VERSION);
#  371|   	pwtest_bool_eq(data.cb1, false);
#  372|   	pwtest_bool_eq(data.cb2, true);

Scan Properties

analyzer-version-clippy1.90.0
analyzer-version-cppcheck2.18.3
analyzer-version-gcc15.2.1
analyzer-version-gcc-analyzer16.0.0
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.90.0
diffbase-analyzer-version-cppcheck2.18.3
diffbase-analyzer-version-gcc15.2.1
diffbase-analyzer-version-gcc-analyzer16.0.0
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-157.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-gcc-latest-x86_64
diffbase-project-namepipewire-1.5.81-2.fc44
diffbase-store-results-to/tmp/tmpf1tptasj/pipewire-1.5.81-2.fc44.tar.xz
diffbase-time-created2025-10-28 19:51:28
diffbase-time-finished2025-10-28 20:08:46
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpf1tptasj/pipewire-1.5.81-2.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpf1tptasj/pipewire-1.5.81-2.fc44.src.rpm'
diffbase-tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-157.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250521.132812.g8eff701.main-1.el9.noarch
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepipewire-1.4.8-2.fc43
store-results-to/tmp/tmpx0jrrix4/pipewire-1.4.8-2.fc43.tar.xz
time-created2025-10-28 19:33:51
time-finished2025-10-28 19:50:31
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'gcc,cppcheck,shellcheck,clippy,unicontrol' '-o' '/tmp/tmpx0jrrix4/pipewire-1.4.8-2.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpx0jrrix4/pipewire-1.4.8-2.fc43.src.rpm'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9