pipewire-1.5.81-2.fc44

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/ctl_pipewire.c:510: warning[uninitvar]: Uninitialized variable: volumes
#  508|   		spa_pod_builder_prop(b, SPA_PROP_channelVolumes, 0);
#  509|   		spa_pod_builder_array(b, sizeof(float),
#  510|-> 			SPA_TYPE_Float, n_volumes, volumes);
#  511|   	}
#  512|   	if (mute) {

Error: CPPCHECK_WARNING (CWE-457): [#def2]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/ctl_pipewire.c:912: error[uninitvar]: Uninitialized variable: direction
#  910|   			return;
#  911|   		}
#  912|-> 		if (direction == SPA_DIRECTION_OUTPUT)
#  913|   			g->device.active_route_output = idx;
#  914|                   else

Error: CPPCHECK_WARNING (CWE-457): [#def3]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/ctl_pipewire.c:913: error[uninitvar]: Uninitialized variable: idx
#  911|   		}
#  912|   		if (direction == SPA_DIRECTION_OUTPUT)
#  913|-> 			g->device.active_route_output = idx;
#  914|                   else
#  915|                           g->device.active_route_input = idx;

Error: CPPCHECK_WARNING (CWE-457): [#def4]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/ctl_pipewire.c:921: error[uninitvar]: Uninitialized variable: device
#  919|   				idx);
#  920|   
#  921|-> 		ng = find_node_for_route(ctl, g->id, device);
#  922|   		if (props && ng)
#  923|   			parse_props(ng, props, true);

Error: CPPCHECK_WARNING (CWE-476): [#def5]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/pcm_pipewire.c:949: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: map
#  947|   	map = calloc(1, sizeof(snd_pcm_chmap_t) +
#  948|   				 channels * sizeof(unsigned int));
#  949|-> 	map->channels = channels;
#  950|   	for (i = 0; i < channels; i++)
#  951|   		map->pos[i] = channel_to_chmap(position[i]);

Error: CPPCHECK_WARNING (CWE-476): [#def6]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/pcm_pipewire.c:951: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: map
#  949|   	map->channels = channels;
#  950|   	for (i = 0; i < channels; i++)
#  951|-> 		map->pos[i] = channel_to_chmap(position[i]);
#  952|   
#  953|   	return map;

Error: CPPCHECK_WARNING (CWE-476): [#def7]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/pcm_pipewire.c:961: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: maps
#  959|   	int i;
#  960|   
#  961|-> 	maps[index] = malloc(sizeof(snd_pcm_chmap_query_t) + (channels * sizeof(unsigned int)));
#  962|   	maps[index]->type = SND_CHMAP_TYPE_FIXED;
#  963|   	maps[index]->map.channels = channels;

Error: CPPCHECK_WARNING (CWE-476): [#def8]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/pcm_pipewire.c:962: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: maps
#  960|   
#  961|   	maps[index] = malloc(sizeof(snd_pcm_chmap_query_t) + (channels * sizeof(unsigned int)));
#  962|-> 	maps[index]->type = SND_CHMAP_TYPE_FIXED;
#  963|   	maps[index]->map.channels = channels;
#  964|   	va_start(args, channels);

Error: CPPCHECK_WARNING (CWE-476): [#def9]
pipewire-1.5.81/pipewire-alsa/alsa-plugins/pcm_pipewire.c:963: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: maps
#  961|   	maps[index] = malloc(sizeof(snd_pcm_chmap_query_t) + (channels * sizeof(unsigned int)));
#  962|   	maps[index]->type = SND_CHMAP_TYPE_FIXED;
#  963|-> 	maps[index]->map.channels = channels;
#  964|   	va_start(args, channels);
#  965|   	for (i = 0; i < channels; i++)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def10]
pipewire-1.5.81/pipewire-jack/jack/jslist.h:229:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘jack_slist_alloc()’
pipewire-1.5.81/pipewire-jack/jack/jslist.h:222:1: enter_function: entry to ‘jack_slist_append’
pipewire-1.5.81/pipewire-jack/jack/jslist.h:228:16: call_function: calling ‘jack_slist_alloc’ from ‘jack_slist_append’
pipewire-1.5.81/pipewire-jack/jack/jslist.h:228:16: return_function: returning to ‘jack_slist_append’ from ‘jack_slist_alloc’
pipewire-1.5.81/pipewire-jack/jack/jslist.h:229:5: danger: dereference of NULL ‘jack_slist_alloc()’
#  227|   
#  228|       new_list = jack_slist_alloc ();
#  229|->     new_list->data = data;
#  230|   
#  231|       if (list) {

Error: GCC_ANALYZER_WARNING (CWE-404): [#def11]
pipewire-1.5.81/pipewire-jack/src/control.c:432:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/pipewire-jack/src/control.c:431:9: acquire_resource: ‘va_start’ called here
pipewire-1.5.81/pipewire-jack/src/control.c:432:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  430|   	va_list args;
#  431|   	va_start(args, format);
#  432|-> 	pw_log_logv(SPA_LOG_LEVEL_ERROR, "", 0, "", format, args);
#  433|   	va_end(args);
#  434|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def12]
pipewire-1.5.81/pipewire-jack/src/control.c:441:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/pipewire-jack/src/control.c:440:9: acquire_resource: ‘va_start’ called here
pipewire-1.5.81/pipewire-jack/src/control.c:441:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  439|   	va_list args;
#  440|   	va_start(args, format);
#  441|-> 	pw_log_logv(SPA_LOG_LEVEL_INFO, "", 0, "", format, args);
#  442|   	va_end(args);
#  443|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def13]
pipewire-1.5.81/pipewire-jack/src/control.c:450:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/pipewire-jack/src/control.c:449:9: acquire_resource: ‘va_start’ called here
pipewire-1.5.81/pipewire-jack/src/control.c:450:9: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  448|   	va_list args;
#  449|   	va_start(args, format);
#  450|-> 	pw_log_logv(SPA_LOG_LEVEL_DEBUG, "", 0, "", format, args);
#  451|   	va_end(args);
#  452|   }

Error: CPPCHECK_WARNING (CWE-457): [#def14]
pipewire-1.5.81/pipewire-v4l2/src/pipewire-v4l2.c:2243: error[uninitvar]: Uninitialized variable: prop_id
# 2241|   			continue;
# 2242|   
# 2243|-> 		if ((ctrl_id = prop_id_to_control(prop_id)) == SPA_ID_INVALID)
# 2244|   			continue;
# 2245|   

Error: CPPCHECK_WARNING (CWE-457): [#def15]
pipewire-1.5.81/pipewire-v4l2/src/pipewire-v4l2.c:2257: error[uninitvar]: Uninitialized variable: type
# 2255|   
# 2256|   			// check type and populate range
# 2257|-> 			pod = spa_pod_get_values(type, &n_vals, &choice);
# 2258|   			if (spa_pod_is_int(pod)) {
# 2259|   				if (n_vals < 4)

Error: CPPCHECK_WARNING (CWE-457): [#def16]
pipewire-1.5.81/pipewire-v4l2/src/pipewire-v4l2.c:2322: error[uninitvar]: Uninitialized variable: prop_id
# 2320|   			continue;
# 2321|   
# 2322|-> 		if ((ctrl_id = prop_id_to_control(prop_id)) == SPA_ID_INVALID)
# 2323|   			continue;
# 2324|   

Error: CPPCHECK_WARNING (CWE-457): [#def17]
pipewire-1.5.81/pipewire-v4l2/src/pipewire-v4l2.c:2332: error[uninitvar]: Uninitialized variable: type
# 2330|   		if (ctrl_id == arg->id) {
# 2331|   			// TODO: support getting true ctrl values instead of defaults
# 2332|-> 			pod = spa_pod_get_values(type, &n_vals, &choice);
# 2333|   			if (spa_pod_is_int(pod)) {
# 2334|   				if (n_vals < 4)

Error: CPPCHECK_WARNING (CWE-457): [#def18]
pipewire-1.5.81/pipewire-v4l2/src/pipewire-v4l2.c:2388: error[uninitvar]: Uninitialized variable: prop_id
# 2386|   			continue;
# 2387|   
# 2388|-> 		if ((ctrl_id = prop_id_to_control(prop_id)) == SPA_ID_INVALID)
# 2389|   			continue;
# 2390|   

Error: CPPCHECK_WARNING (CWE-457): [#def19]
pipewire-1.5.81/pipewire-v4l2/src/pipewire-v4l2.c:2401: error[uninitvar]: Uninitialized variable: type
# 2399|   			struct spa_pod_frame f[1];
# 2400|   			struct spa_pod *param;
# 2401|-> 			pod = spa_pod_get_values(type, &n_vals, &choice);
# 2402|   			if (n_vals < 1)
# 2403|   				break;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def20]
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:37:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  oflag)’
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:50:16: enter_function: entry to ‘__open_2’
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:53:16: acquire_resource: opened here
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:53:16: call_function: calling ‘open’ from ‘__open_2’
#   35|   static inline bool needs_mode(int flags)
#   36|   {
#   37|-> 	return (flags & O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE);
#   38|   }
#   39|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def21]
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:46:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  oflag)’
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:50:16: enter_function: entry to ‘__open_2’
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:53:16: acquire_resource: opened here
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:53:16: call_function: calling ‘open’ from ‘__open_2’
#   44|   		extract_va_arg(mode_t, mode, oflag);
#   45|   
#   46|-> 	return get_fops()->openat(AT_FDCWD, path, oflag, mode);
#   47|   }
#   48|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def22]
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:46:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  oflag)’
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:50:16: enter_function: entry to ‘__open_2’
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:53:16: acquire_resource: opened here
pipewire-1.5.81/pipewire-v4l2/src/v4l2-func.c:53:16: call_function: calling ‘open’ from ‘__open_2’
#   44|   		extract_va_arg(mode_t, mode, oflag);
#   45|   
#   46|-> 	return get_fops()->openat(AT_FDCWD, path, oflag, mode);
#   47|   }
#   48|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def23]
pipewire-1.5.81/spa/examples/adapter-control.c:205:24: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.5.81/spa/examples/adapter-control.c:964:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/examples/adapter-control.c:1038:20: call_function: calling ‘init_data’ from ‘main’
#  203|   	if ((res = load_handle (data, &handle, "support/libspa-support.so",
#  204|   			SPA_NAME_SUPPORT_LOG, &info)) < 0)
#  205|-> 		return res;
#  206|   	if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_Log, &iface)) < 0) {
#  207|   		printf("can't get System interface %d\n", res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def24]
pipewire-1.5.81/spa/examples/example-control.c:482:24: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.5.81/spa/examples/example-control.c:460:12: enter_function: entry to ‘init_data’
pipewire-1.5.81/spa/examples/example-control.c:479:20: call_function: calling ‘load_handle’ from ‘init_data’
pipewire-1.5.81/spa/examples/example-control.c:479:20: return_function: returning to ‘init_data’ from ‘load_handle’
pipewire-1.5.81/spa/examples/example-control.c:479:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/examples/example-control.c:482:24: branch_true: ...to here
pipewire-1.5.81/spa/examples/example-control.c:482:24: danger: ‘handle’ leaks here; was allocated at [(17)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/16)
#  480|   					"support/libspa-support.so",
#  481|   					SPA_NAME_SUPPORT_SYSTEM)) < 0)
#  482|-> 		return res;
#  483|   	if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_System, &iface)) < 0) {
#  484|   		printf("can't get System interface %d\n", res);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def25]
pipewire-1.5.81/spa/include-private/spa-private/dbus-helpers.h:34:1: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*thing’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:1715:6: enter_function: entry to ‘telephony_call_unregister’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:1721:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:1724:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:1727:42: call_function: calling ‘_spa_autoptr_cleanup_func_DBusMessage’ from ‘telephony_call_unregister’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:1746:42: call_function: calling ‘_spa_autoptr_cleanup_func_DBusMessage’ from ‘telephony_call_unregister’
#   32|   }
#   33|   
#   34|-> SPA_DEFINE_AUTOPTR_CLEANUP(DBusMessage, DBusMessage, {
#   35|   	spa_clear_ptr(*thing, dbus_message_unref);
#   36|   })

Error: GCC_ANALYZER_WARNING (CWE-401): [#def26]
pipewire-1.5.81/spa/include-private/spa-private/dbus-helpers.h:68:1: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:404:1: enter_function: entry to ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:417:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: call_function: calling ‘spa_log_topic_init’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: return_function: returning to ‘telephony_new’ from ‘spa_log_topic_init’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:441:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:442:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:445:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: call_function: calling ‘spa_dbus_get_connection’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:407:29: call_function: calling ‘_spa_auto_cleanup_func_DBusError’ from ‘telephony_new’
#   66|   }
#   67|   
#   68|-> SPA_DEFINE_AUTO_CLEANUP(DBusError, DBusError, {
#   69|   	dbus_error_free(thing);
#   70|   })

Error: COMPILER_WARNING: [#def27]
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘process_json’
pipewire-1.5.81/spa/include/spa/debug/file.h:56:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#   56 | ({                                                                              \
#      | ^
pipewire-1.5.81/spa/tools/spa-json-dump.c:206:25: note: in expansion of macro ‘spa_debug_file_error_location’
#  206 |                         spa_debug_file_error_location(stderr, &loc,
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#   54|   
#   55|   #define spa_debug_file_error_location(f,loc,fmt,...)				\
#   56|-> ({										\
#   57|   	struct spa_debug_file_ctx c = SPA_DEBUG_FILE_INIT(f);			\
#   58|   	if (fmt) spa_debugc(&c.ctx, fmt, __VA_ARGS__);				\

Error: CPPCHECK_WARNING (CWE-190): [#def28]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   			const struct spa_filter_graph_events *events, void *data)
#   91|   {
#   92|-> 	return spa_api_method_r(int, -ENOTSUP,
#   93|   			spa_filter_graph, &object->iface, add_listener, 0, listener,
#   94|   			events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def29]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:100: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   98|   		uint32_t idx, struct spa_pod_builder *b, struct spa_pod **param)
#   99|   {
#  100|-> 	return spa_api_method_r(int, -ENOTSUP,
#  101|   			spa_filter_graph, &object->iface, enum_prop_info, 0, idx, b, param);
#  102|   }

Error: CPPCHECK_WARNING (CWE-190): [#def30]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:106: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  104|   		struct spa_pod_builder *b, struct spa_pod **props)
#  105|   {
#  106|-> 	return spa_api_method_r(int, -ENOTSUP,
#  107|   			spa_filter_graph, &object->iface, get_props, 0, b, props);
#  108|   }

Error: CPPCHECK_WARNING (CWE-190): [#def31]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  111|   		enum spa_direction direction, const struct spa_pod *props)
#  112|   {
#  113|-> 	return spa_api_method_r(int, -ENOTSUP,
#  114|   			spa_filter_graph, &object->iface, set_props, 0, direction, props);
#  115|   }

Error: CPPCHECK_WARNING (CWE-190): [#def32]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:119: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  117|   SPA_API_FILTER_GRAPH int spa_filter_graph_activate(struct spa_filter_graph *object, const struct spa_dict *props)
#  118|   {
#  119|-> 	return spa_api_method_r(int, -ENOTSUP,
#  120|   			spa_filter_graph, &object->iface, activate, 0, props);
#  121|   }

Error: CPPCHECK_WARNING (CWE-190): [#def33]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:124: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  122|   SPA_API_FILTER_GRAPH int spa_filter_graph_deactivate(struct spa_filter_graph *object)
#  123|   {
#  124|-> 	return spa_api_method_r(int, -ENOTSUP,
#  125|   			spa_filter_graph, &object->iface, deactivate, 0);
#  126|   }

Error: CPPCHECK_WARNING (CWE-190): [#def34]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:130: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  128|   SPA_API_FILTER_GRAPH int spa_filter_graph_reset(struct spa_filter_graph *object)
#  129|   {
#  130|-> 	return spa_api_method_r(int, -ENOTSUP,
#  131|   			spa_filter_graph, &object->iface, reset, 0);
#  132|   }

Error: CPPCHECK_WARNING (CWE-190): [#def35]
pipewire-1.5.81/spa/include/spa/filter-graph/filter-graph.h:137: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  135|   			const void *in[], void *out[], uint32_t n_samples)
#  136|   {
#  137|-> 	return spa_api_method_r(int, -ENOTSUP,
#  138|   			spa_filter_graph, &object->iface, process, 0, in, out, n_samples);
#  139|   }

Error: CPPCHECK_WARNING (CWE-190): [#def36]
pipewire-1.5.81/spa/include/spa/monitor/device.h:236: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  234|   			void *data)
#  235|   {
#  236|-> 	return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, add_listener, 0,
#  237|   			listener, events, data);
#  238|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def37]
pipewire-1.5.81/spa/include/spa/monitor/device.h:236:16: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
pipewire-1.5.81/src/examples/bluez-session.c:203:23: enter_function: entry to ‘create_object’
pipewire-1.5.81/src/examples/bluez-session.c:214:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:219:25: branch_true: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:220:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:225:53: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:225:20: call_function: calling ‘spa_handle_get_interface’ from ‘create_object’
pipewire-1.5.81/src/examples/bluez-session.c:225:20: return_function: returning to ‘create_object’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/examples/bluez-session.c:225:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:230:15: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:230:15: acquire_memory: allocated here
pipewire-1.5.81/src/examples/bluez-session.c:231:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
pipewire-1.5.81/src/examples/bluez-session.c:234:9: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:240:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:243:9: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:245:9: call_function: calling ‘spa_device_add_listener’ from ‘create_object’
#  234|   			void *data)
#  235|   {
#  236|-> 	return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, add_listener, 0,
#  237|   			listener, events, data);
#  238|   

Error: CPPCHECK_WARNING (CWE-190): [#def38]
pipewire-1.5.81/spa/include/spa/monitor/device.h:242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  240|   SPA_API_DEVICE int spa_device_sync(struct spa_device *object, int seq)
#  241|   {
#  242|-> 	return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, sync, 0,
#  243|   			seq);
#  244|   }

Error: CPPCHECK_WARNING (CWE-190): [#def39]
pipewire-1.5.81/spa/include/spa/monitor/device.h:249: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  247|   			    const struct spa_pod *filter)
#  248|   {
#  249|-> 	return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, enum_params, 0,
#  250|   			seq, id, index, max, filter);
#  251|   }

Error: CPPCHECK_WARNING (CWE-190): [#def40]
pipewire-1.5.81/spa/include/spa/monitor/device.h:256: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  254|   			  const struct spa_pod *param)
#  255|   {
#  256|-> 	return spa_api_method_r(int, -ENOTSUP, spa_device, &object->iface, set_param, 0,
#  257|   			id, flags, param);
#  258|   }

Error: CPPCHECK_WARNING (CWE-190): [#def41]
pipewire-1.5.81/spa/include/spa/node/node.h:650: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  648|   			void *data)
#  649|   {
#  650|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, add_listener, 0,
#  651|   			listener, events, data);
#  652|   }

Error: CPPCHECK_WARNING (CWE-190): [#def42]
pipewire-1.5.81/spa/include/spa/node/node.h:657: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  655|   			      void *data)
#  656|   {
#  657|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, set_callbacks, 0,
#  658|   			callbacks, data);
#  659|   }

Error: CPPCHECK_WARNING (CWE-190): [#def43]
pipewire-1.5.81/spa/include/spa/node/node.h:662: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  660|   SPA_API_NODE int spa_node_sync(struct spa_node *object, int seq)
#  661|   {
#  662|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, sync, 0,
#  663|   			seq);
#  664|   }

Error: CPPCHECK_WARNING (CWE-190): [#def44]
pipewire-1.5.81/spa/include/spa/node/node.h:669: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  667|   			    const struct spa_pod *filter)
#  668|   {
#  669|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, enum_params, 0,
#  670|   			seq, id, start, max, filter);
#  671|   }

Error: CPPCHECK_WARNING (CWE-190): [#def45]
pipewire-1.5.81/spa/include/spa/node/node.h:676: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  674|   			  const struct spa_pod *param)
#  675|   {
#  676|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, set_param, 0,
#  677|   			id, flags, param);
#  678|   }

Error: CPPCHECK_WARNING (CWE-190): [#def46]
pipewire-1.5.81/spa/include/spa/node/node.h:682: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  680|   		       uint32_t id, void *data, size_t size)
#  681|   {
#  682|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, set_io, 0,
#  683|   			id, data, size);
#  684|   }

Error: CPPCHECK_WARNING (CWE-190): [#def47]
pipewire-1.5.81/spa/include/spa/node/node.h:688: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  686|   		const struct spa_command *command)
#  687|   {
#  688|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, send_command, 0,
#  689|   			command);
#  690|   }

Error: CPPCHECK_WARNING (CWE-190): [#def48]
pipewire-1.5.81/spa/include/spa/node/node.h:695: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  693|   			const struct spa_dict *props)
#  694|   {
#  695|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, add_port, 0,
#  696|   			direction, port_id, props);
#  697|   }

Error: CPPCHECK_WARNING (CWE-190): [#def49]
pipewire-1.5.81/spa/include/spa/node/node.h:701: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  699|   			enum spa_direction direction, uint32_t port_id)
#  700|   {
#  701|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, remove_port, 0,
#  702|   			direction, port_id);
#  703|   }

Error: CPPCHECK_WARNING (CWE-190): [#def50]
pipewire-1.5.81/spa/include/spa/node/node.h:709: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  707|   				 const struct spa_pod *filter)
#  708|   {
#  709|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_enum_params, 0,
#  710|   			seq, direction, port_id, id, start, max, filter);
#  711|   }

Error: CPPCHECK_WARNING (CWE-190): [#def51]
pipewire-1.5.81/spa/include/spa/node/node.h:718: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  716|   			       const struct spa_pod *param)
#  717|   {
#  718|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_set_param, 0,
#  719|   			direction, port_id, id, flags, param);
#  720|   }

Error: CPPCHECK_WARNING (CWE-190): [#def52]
pipewire-1.5.81/spa/include/spa/node/node.h:728: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  726|   				 uint32_t n_buffers)
#  727|   {
#  728|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_use_buffers, 0,
#  729|   			direction, port_id, flags, buffers, n_buffers);
#  730|   }

Error: CPPCHECK_WARNING (CWE-190): [#def53]
pipewire-1.5.81/spa/include/spa/node/node.h:736: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  734|   			    uint32_t id, void *data, size_t size)
#  735|   {
#  736|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_set_io, 0,
#  737|   			direction, port_id, id, data, size);
#  738|   }

Error: CPPCHECK_WARNING (CWE-190): [#def54]
pipewire-1.5.81/spa/include/spa/node/node.h:742: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  740|   SPA_API_NODE int spa_node_port_reuse_buffer(struct spa_node *object, uint32_t port_id, uint32_t buffer_id)
#  741|   {
#  742|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, port_reuse_buffer, 0,
#  743|   			port_id, buffer_id);
#  744|   }

Error: CPPCHECK_WARNING (CWE-190): [#def55]
pipewire-1.5.81/spa/include/spa/node/node.h:752: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  750|   SPA_API_NODE int spa_node_process(struct spa_node *object)
#  751|   {
#  752|-> 	return spa_api_method_r(int, -ENOTSUP, spa_node, &object->iface, process, 0);
#  753|   }
#  754|   SPA_API_NODE int spa_node_process_fast(struct spa_node *object)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def56]
pipewire-1.5.81/spa/include/spa/pod/body.h:157:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/examples/audio-capture.c:81:1: enter_function: entry to ‘on_stream_param_changed’
pipewire-1.5.81/src/examples/audio-capture.c:98:9: call_function: calling ‘spa_format_audio_raw_parse’ from ‘on_stream_param_changed’
#  155|   	/* TODO this is wrong per C standard, but if it breaks so does the Linux kernel. */
#  156|   	SPA_BARRIER;
#  157|-> 	memcpy(value, body, sizeof *value);
#  158|   	SPA_BARRIER;
#  159|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def57]
pipewire-1.5.81/spa/include/spa/pod/body.h:172:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/examples/audio-capture.c:81:1: enter_function: entry to ‘on_stream_param_changed’
pipewire-1.5.81/src/examples/audio-capture.c:98:9: call_function: calling ‘spa_format_audio_raw_parse’ from ‘on_stream_param_changed’
#  170|   		return -EINVAL;
#  171|   	SPA_BARRIER;
#  172|-> 	memcpy(value, body, sizeof *value);
#  173|   	SPA_BARRIER;
#  174|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def58]
pipewire-1.5.81/spa/include/spa/pod/body.h:187:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/examples/audio-capture.c:81:1: enter_function: entry to ‘on_stream_param_changed’
pipewire-1.5.81/src/examples/audio-capture.c:98:9: call_function: calling ‘spa_format_audio_raw_parse’ from ‘on_stream_param_changed’
#  185|   		return -EINVAL;
#  186|   	SPA_BARRIER;
#  187|-> 	memcpy(value, body, sizeof *value);
#  188|   	SPA_BARRIER;
#  189|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
pipewire-1.5.81/spa/include/spa/pod/body.h:267:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘body’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1909:12: enter_function: entry to ‘security_context_demarshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1919:13: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘security_context_demarshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1919:13: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘security_context_demarshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1921:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1921:13: call_function: calling ‘spa_pod_parser_get’ from ‘security_context_demarshal_create’
#  265|   		return -EINVAL;
#  266|   	SPA_BARRIER;
#  267|-> 	memcpy(value, body, sizeof *value);
#  268|   	SPA_BARRIER;
#  269|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def60]
pipewire-1.5.81/spa/include/spa/pod/body.h:386:16: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:604:6: enter_function: entry to ‘update_object_info’
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:607:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:608:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:608:17: call_function: calling ‘update_device_info’ from ‘update_object_info’
#  384|   SPA_API_POD_BODY int spa_pod_is_object(const struct spa_pod *pod)
#  385|   {
#  386|-> 	return SPA_POD_CHECK(pod, SPA_TYPE_Object, sizeof(struct spa_pod_object_body));
#  387|   }
#  388|   SPA_API_POD_BODY int spa_pod_body_get_object(const struct spa_pod *pod, const void *body,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def61]
pipewire-1.5.81/spa/include/spa/pod/builder.h:101:40: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:123:12: enter_function: entry to ‘method_subscribe_params’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:132:21: branch_true: following ‘true’ branch (when ‘i < n_ids’)...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:133:42: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:136:17: call_function: calling ‘method_enum_params’ from ‘method_subscribe_params’
#   99|   	if (offset + UINT64_C(8) <= size) {
#  100|   		struct spa_pod *pod = SPA_PTROFF(builder->data, offset, struct spa_pod);
#  101|-> 		if (offset + (uint64_t)SPA_POD_SIZE(pod) <= size &&
#  102|   		    SPA_POD_IS_VALID(pod))
#  103|   			return pod;

Error: CPPCHECK_WARNING (CWE-190): [#def62]
pipewire-1.5.81/spa/include/spa/pod/builder.h:156: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  154|   		res = -ENOSPC;
#  155|   		if (offset <= builder->size)
#  156|-> 			spa_callbacks_call_res(&builder->callbacks,
#  157|   					struct spa_pod_builder_callbacks, res,
#  158|   					overflow, 0, total_size);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def63]
pipewire-1.5.81/spa/include/spa/pod/builder.h:156:25: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1889:12: enter_function: entry to ‘security_context_marshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1899:9: call_function: calling ‘spa_pod_builder_add’ from ‘security_context_marshal_create’
#  154|   		res = -ENOSPC;
#  155|   		if (offset <= builder->size)
#  156|-> 			spa_callbacks_call_res(&builder->callbacks,
#  157|   					struct spa_pod_builder_callbacks, res,
#  158|   					overflow, 0, total_size);

Error: GCC_ANALYZER_WARNING (CWE-686): [#def64]
pipewire-1.5.81/spa/include/spa/pod/builder.h:636:25: 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.5.81/src/modules/module-protocol-native/protocol-native.c:1889:12: enter_function: entry to ‘security_context_marshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1899:9: call_function: calling ‘spa_pod_builder_add’ from ‘security_context_marshal_create’ with 5 variadic arguments
#  634|   		switch (ftype) {
#  635|   		case SPA_TYPE_Object:
#  636|-> 			key = va_arg(args, uint32_t);
#  637|   			if (key == 0)
#  638|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def65]
pipewire-1.5.81/spa/include/spa/pod/builder.h:645:25: 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.5.81/src/modules/module-protocol-native/protocol-native.c:1889:12: enter_function: entry to ‘security_context_marshal_create’
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1899:9: call_function: calling ‘spa_pod_builder_add’ from ‘security_context_marshal_create’ with 5 variadic arguments
#  643|   			break;
#  644|   		case SPA_TYPE_Sequence:
#  645|-> 			offset = va_arg(args, uint32_t);
#  646|   			type = va_arg(args, uint32_t);
#  647|   			if (type == 0)

Error: GCC_ANALYZER_WARNING (CWE-686): [#def66]
pipewire-1.5.81/spa/include/spa/pod/builder.h:646:25: 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.5.81/spa/plugins/control/mixer.c:294:12: enter_function: entry to ‘port_enum_formats’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: call_function: calling ‘spa_pod_builder_push_object’ from ‘port_enum_formats’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: return_function: returning to ‘port_enum_formats’ from ‘spa_pod_builder_push_object’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: call_function: calling ‘spa_pod_builder_add’ from ‘port_enum_formats’ with 7 variadic arguments
#  644|   		case SPA_TYPE_Sequence:
#  645|   			offset = va_arg(args, uint32_t);
#  646|-> 			type = va_arg(args, uint32_t);
#  647|   			if (type == 0)
#  648|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def67]
pipewire-1.5.81/spa/include/spa/pod/builder.h:653:21: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘const char *’ but received ‘int’ for variadic argument 1 of ‘args’
pipewire-1.5.81/spa/plugins/control/mixer.c:294:12: enter_function: entry to ‘port_enum_formats’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: call_function: calling ‘spa_pod_builder_push_object’ from ‘port_enum_formats’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: return_function: returning to ‘port_enum_formats’ from ‘spa_pod_builder_push_object’
pipewire-1.5.81/spa/plugins/control/mixer.c:301:26: call_function: calling ‘spa_pod_builder_add’ from ‘port_enum_formats’ with 7 variadic arguments
#  651|   
#  652|   
#  653|-> 		if ((format = va_arg(args, const char *)) == NULL)
#  654|   			break;
#  655|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def68]
pipewire-1.5.81/spa/include/spa/pod/dynamic.h:42:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_data’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:34:12: enter_function: entry to ‘endpoint_stream_enum_params’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:51:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:54:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:60:21: call_function: calling ‘spa_pod_filter’ from ‘endpoint_stream_enum_params’
#   40|   		return -errno;
#   41|   	if (old_data == d->data && new_data != old_data && old_size > 0)
#   42|-> 		memcpy(new_data, old_data, old_size);
#   43|   	d->b.data = new_data;
#   44|   	d->b.size = new_size;

Error: CPPCHECK_WARNING (CWE-476): [#def69]
pipewire-1.5.81/spa/include/spa/pod/parser.h:55: warning[nullPointer]: Possible null pointer dereference: (struct spa_pod*)(pod)
#   53|   				      const struct spa_pod *pod)
#   54|   {
#   55|-> 	spa_pod_parser_init(parser, pod, SPA_POD_SIZE(pod));
#   56|   }
#   57|   

Error: COMPILER_WARNING: [#def70]
pipewire-1.5.81/spa/include/spa/param/format-utils.h:8: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/debug/format.h:15: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/debug/file.h:16: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/pod/parser.h: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.5.81/spa/include/spa/pod/parser.h:577:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  577 | ({                                                                                      \
#      | ^
pipewire-1.5.81/spa/include/spa/pod/parser.h:827:21: note: in expansion of macro ‘SPA_POD_PARSER_COLLECT_BODY’
#  827 |                 if (SPA_POD_PARSER_COLLECT_BODY(&pod, body, *format, args) >= 0) {
#      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  575|   
#  576|   #define SPA_POD_PARSER_COLLECT_BODY(_pod,_body,_type,args)				\
#  577|-> ({											\
#  578|   	int res = 0;									\
#  579|   	struct spa_pod_choice choice;							\

Error: GCC_ANALYZER_WARNING (CWE-686): [#def71]
pipewire-1.5.81/spa/include/spa/pod/parser.h:803: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.5.81/src/modules/module-metadata/protocol-native.c:206:12: enter_function: entry to ‘metadata_demarshal_property’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘metadata_demarshal_property’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: call_function: inlined call to ‘spa_pod_parser_push_struct’ from ‘metadata_demarshal_property’
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: branch_true: ...to here
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:209:16: call_function: calling ‘spa_pod_parser_get’ from ‘metadata_demarshal_property’ with 9 variadic arguments
#  801|   
#  802|   		if (f->pod.type == SPA_TYPE_Object) {
#  803|-> 			uint32_t key = va_arg(args, uint32_t), *flags = NULL;
#  804|   
#  805|   			if (key == 0)

Error: GCC_ANALYZER_WARNING (CWE-686): [#def72]
pipewire-1.5.81/spa/include/spa/pod/parser.h:818:21: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘const char *’ but received ‘int’ for variadic argument 1 of ‘args’
pipewire-1.5.81/spa/tools/spa-inspect.c:37:13: enter_function: entry to ‘print_param’
pipewire-1.5.81/spa/tools/spa-inspect.c:44:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/tools/spa-inspect.c:45:25: call_function: inlined call to ‘spa_debug_format’ from ‘print_param’
#  816|   		}
#  817|   
#  818|-> 		if ((format = va_arg(args, char *)) == NULL)
#  819|   			break;
#  820|   

Error: COMPILER_WARNING: [#def73]
pipewire-1.5.81/spa/include/spa/param/format-utils.h: scope_hint: In function ‘spa_format_parse’
pipewire-1.5.81/spa/include/spa/pod/parser.h:876:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  876 | ({                                                                              \
#      | ^
pipewire-1.5.81/spa/include/spa/pod/parser.h:901:9: note: in expansion of macro ‘spa_pod_parser_get_object’
#  901 |         spa_pod_parser_get_object(&_p,type,id,##__VA_ARGS__);   \
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/pod/parser.h:905:9: note: in expansion of macro ‘spa_pod_body_parse_object’
#  905 |         spa_pod_body_parse_object(pod,SPA_POD_BODY_CONST(pod),type,id,##__VA_ARGS__)
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/param/format-utils.h:32:16: note: in expansion of macro ‘spa_pod_parse_object’
#   32 |         return spa_pod_parse_object(format,
#      |                ^~~~~~~~~~~~~~~~~~~~
#  874|   
#  875|   #define spa_pod_parser_get_object(p,type,id,...)				\
#  876|-> ({										\
#  877|   	struct spa_pod_frame _f;						\
#  878|   	int _res;								\

Error: COMPILER_WARNING: [#def74]
pipewire-1.5.81/spa/include/spa/pod/parser.h:898:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  898 | ({                                                              \
#      | ^
pipewire-1.5.81/spa/include/spa/pod/parser.h:905:9: note: in expansion of macro ‘spa_pod_body_parse_object’
#  905 |         spa_pod_body_parse_object(pod,SPA_POD_BODY_CONST(pod),type,id,##__VA_ARGS__)
#      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/param/format-utils.h:32:16: note: in expansion of macro ‘spa_pod_parse_object’
#   32 |         return spa_pod_parse_object(format,
#      |                ^~~~~~~~~~~~~~~~~~~~
#  896|   
#  897|   #define spa_pod_body_parse_object(pod,body,type,id,...)		\
#  898|-> ({								\
#  899|   	struct spa_pod_parser _p;				\
#  900|   	spa_pod_parser_init_pod_body(&_p, pod, body);		\

Error: CPPCHECK_WARNING (CWE-190): [#def75]
pipewire-1.5.81/spa/include/spa/support/cpu.h:173: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  171|   SPA_API_CPU uint32_t spa_cpu_get_flags(struct spa_cpu *c)
#  172|   {
#  173|-> 	return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_flags, 0);
#  174|   }
#  175|   SPA_API_CPU int spa_cpu_force_flags(struct spa_cpu *c, uint32_t flags)

Error: CPPCHECK_WARNING (CWE-190): [#def76]
pipewire-1.5.81/spa/include/spa/support/cpu.h:177: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  175|   SPA_API_CPU int spa_cpu_force_flags(struct spa_cpu *c, uint32_t flags)
#  176|   {
#  177|-> 	return spa_api_method_r(int, -ENOTSUP, spa_cpu, &c->iface, force_flags, 0, flags);
#  178|   }
#  179|   SPA_API_CPU uint32_t spa_cpu_get_count(struct spa_cpu *c)

Error: CPPCHECK_WARNING (CWE-190): [#def77]
pipewire-1.5.81/spa/include/spa/support/cpu.h:181: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  179|   SPA_API_CPU uint32_t spa_cpu_get_count(struct spa_cpu *c)
#  180|   {
#  181|-> 	return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_count, 0);
#  182|   }
#  183|   SPA_API_CPU uint32_t spa_cpu_get_max_align(struct spa_cpu *c)

Error: CPPCHECK_WARNING (CWE-190): [#def78]
pipewire-1.5.81/spa/include/spa/support/cpu.h:185: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  183|   SPA_API_CPU uint32_t spa_cpu_get_max_align(struct spa_cpu *c)
#  184|   {
#  185|-> 	return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_max_align, 0);
#  186|   }
#  187|   SPA_API_CPU uint32_t spa_cpu_get_vm_type(struct spa_cpu *c)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
pipewire-1.5.81/spa/include/spa/support/cpu.h:189:16: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5535:15: call_function: calling ‘spa_support_find’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5535:15: return_function: returning to ‘pw_protocol_pulse_new’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:36: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:36: call_function: calling ‘spa_cpu_get_vm_type’ from ‘pw_protocol_pulse_new’
#  187|   SPA_API_CPU uint32_t spa_cpu_get_vm_type(struct spa_cpu *c)
#  188|   {
#  189|-> 	return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_vm_type, 1);
#  190|   }
#  191|   SPA_API_CPU int spa_cpu_zero_denormals(struct spa_cpu *c, bool enable)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def80]
pipewire-1.5.81/spa/include/spa/support/cpu.h:189:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5535:15: call_function: calling ‘spa_support_find’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5535:15: return_function: returning to ‘pw_protocol_pulse_new’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:36: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:36: call_function: calling ‘spa_cpu_get_vm_type’ from ‘pw_protocol_pulse_new’
#  187|   SPA_API_CPU uint32_t spa_cpu_get_vm_type(struct spa_cpu *c)
#  188|   {
#  189|-> 	return spa_api_method_r(uint32_t, 0, spa_cpu, &c->iface, get_vm_type, 1);
#  190|   }
#  191|   SPA_API_CPU int spa_cpu_zero_denormals(struct spa_cpu *c, bool enable)

Error: CPPCHECK_WARNING (CWE-190): [#def81]
pipewire-1.5.81/spa/include/spa/support/dbus.h:94: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   92|   SPA_API_DBUS void *spa_dbus_connection_get(struct spa_dbus_connection *conn)
#   93|   {
#   94|-> 	return spa_api_func_r(void *, NULL, conn, get, 0);
#   95|   }
#   96|   /** \copydoc spa_dbus_connection.destroy

Error: CPPCHECK_WARNING (CWE-190): [#def82]
pipewire-1.5.81/spa/include/spa/support/dbus.h:100: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   98|   SPA_API_DBUS void spa_dbus_connection_destroy(struct spa_dbus_connection *conn)
#   99|   {
#  100|-> 	spa_api_func_v(conn, destroy, 0);
#  101|   }
#  102|   /** \copydoc spa_dbus_connection.add_listener

Error: CPPCHECK_WARNING (CWE-190): [#def83]
pipewire-1.5.81/spa/include/spa/support/dbus.h:138: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  136|   spa_dbus_get_connection(struct spa_dbus *dbus, enum spa_dbus_type type)
#  137|   {
#  138|-> 	return spa_api_method_r(struct spa_dbus_connection *, NULL,
#  139|   			spa_dbus, &dbus->iface, get_connection, 0, type);
#  140|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def84]
pipewire-1.5.81/spa/include/spa/support/dbus.h:138:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:349:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: call_function: calling ‘spa_support_find’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: return_function: returning to ‘pipewire__module_init’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:363:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:367:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:372:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:28: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:35: branch_true: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:378:22: call_function: calling ‘spa_dbus_get_connection’ from ‘pipewire__module_init’
#  136|   spa_dbus_get_connection(struct spa_dbus *dbus, enum spa_dbus_type type)
#  137|   {
#  138|-> 	return spa_api_method_r(struct spa_dbus_connection *, NULL,
#  139|   			spa_dbus, &dbus->iface, get_connection, 0, type);
#  140|   }

Error: CPPCHECK_WARNING (CWE-190): [#def85]
pipewire-1.5.81/spa/include/spa/support/i18n.h:67: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   65|   spa_i18n_text(struct spa_i18n *i18n, const char *msgid)
#   66|   {
#   67|-> 	return spa_api_method_null_r(const char *, msgid, spa_i18n, i18n, &i18n->iface,
#   68|   			text, 0, msgid);
#   69|   }

Error: CPPCHECK_WARNING (CWE-190): [#def86]
pipewire-1.5.81/spa/include/spa/support/i18n.h:75: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   73|   		const char *msgid_plural, unsigned long int n)
#   74|   {
#   75|-> 	return spa_api_method_null_r(const char *, n == 1 ? msgid : msgid_plural,
#   76|   			spa_i18n, i18n, &i18n->iface, ntext, 0, msgid, msgid_plural, n);
#   77|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def87]
pipewire-1.5.81/spa/include/spa/support/log.h:229:9: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1474:24: enter_function: entry to ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1490:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1491:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1494:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1505:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1509:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1512:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1512:9: call_function: calling ‘spa_log_topic_init’ from ‘backend_hsphfpd_new’
#  227|   		return;
#  228|   
#  229|-> 	spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
#  230|   }
#  231|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def88]
pipewire-1.5.81/spa/include/spa/support/log.h:229:9: warning[-Wanalyzer-malloc-leak]: leak of ‘group’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:363:22: enter_function: entry to ‘group_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:378:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:379:12: branch_false: following ‘false’ branch (when ‘group’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:382:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:382:9: call_function: calling ‘spa_log_topic_init’ from ‘group_create’
#  227|   		return;
#  228|   
#  229|-> 	spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
#  230|   }
#  231|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
pipewire-1.5.81/spa/include/spa/support/log.h:229:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:176:35: enter_function: entry to ‘load_media_codecs’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:200:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:201:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:204:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:207:9: call_function: calling ‘spa_log_topic_init’ from ‘load_media_codecs’
#  227|   		return;
#  228|   
#  229|-> 	spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
#  230|   }
#  231|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def90]
pipewire-1.5.81/spa/include/spa/support/log.h:273:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/spa/plugins/support/journal.c:39:1: enter_function: entry to ‘impl_log_logtv’
pipewire-1.5.81/spa/plugins/support/journal.c:56:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/journal.c:58:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/journal.c:58:17: acquire_resource: ‘va_copy’ called here
pipewire-1.5.81/spa/plugins/support/journal.c:60:17: call_function: calling ‘spa_log_logtv’ from ‘impl_log_logtv’
#  271|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(l, topic, level))) {
#  272|   		struct spa_interface *i = &l->iface;
#  273|-> 		if (!spa_interface_call(i,
#  274|   				struct spa_log_methods, logtv, 1,
#  275|   				level, topic,

Error: CPPCHECK_WARNING (CWE-190): [#def91]
pipewire-1.5.81/spa/include/spa/support/log.h:277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  275|   				level, topic,
#  276|   				file, line, func, fmt, args))
#  277|-> 		    spa_interface_call(i,
#  278|   				struct spa_log_methods, logv, 0,
#  279|   				level, file, line, func, fmt, args);

Error: GCC_ANALYZER_WARNING (CWE-404): [#def92]
pipewire-1.5.81/spa/include/spa/support/log.h:277:21: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/spa/plugins/support/journal.c:39:1: enter_function: entry to ‘impl_log_logtv’
pipewire-1.5.81/spa/plugins/support/journal.c:56:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/journal.c:58:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/journal.c:58:17: acquire_resource: ‘va_copy’ called here
pipewire-1.5.81/spa/plugins/support/journal.c:60:17: call_function: calling ‘spa_log_logtv’ from ‘impl_log_logtv’
#  275|   				level, topic,
#  276|   				file, line, func, fmt, args))
#  277|-> 		    spa_interface_call(i,
#  278|   				struct spa_log_methods, logv, 0,
#  279|   				level, file, line, func, fmt, args);

Error: CPPCHECK_WARNING (CWE-190): [#def93]
pipewire-1.5.81/spa/include/spa/support/loop.h:162: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  160|   SPA_API_LOOP int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
#  161|   {
#  162|-> 	return spa_api_method_r(int, -ENOTSUP,
#  163|   			spa_loop, &object->iface, add_source, 0, source);
#  164|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def94]
pipewire-1.5.81/spa/include/spa/support/loop.h:162:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
pipewire-1.5.81/test/test-loop.c:185:1: enter_function: entry to ‘pwtest_loop_recurse2’
pipewire-1.5.81/test/test-loop.c:198:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:210:9: call_function: inlined call to ‘pw_loop_add_source’ from ‘pwtest_loop_recurse2’
#  160|   SPA_API_LOOP int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
#  161|   {
#  162|-> 	return spa_api_method_r(int, -ENOTSUP,
#  163|   			spa_loop, &object->iface, add_source, 0, source);
#  164|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
pipewire-1.5.81/spa/include/spa/support/loop.h:162:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
pipewire-1.5.81/test/test-loop.c:185:1: enter_function: entry to ‘pwtest_loop_recurse2’
pipewire-1.5.81/test/test-loop.c:199:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:210:9: call_function: inlined call to ‘pw_loop_add_source’ from ‘pwtest_loop_recurse2’
#  160|   SPA_API_LOOP int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
#  161|   {
#  162|-> 	return spa_api_method_r(int, -ENOTSUP,
#  163|   			spa_loop, &object->iface, add_source, 0, source);
#  164|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def96]
pipewire-1.5.81/spa/include/spa/support/loop.h:162:16: warning[-Wanalyzer-malloc-leak]: leak of ‘group’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:363:22: enter_function: entry to ‘group_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:378:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:379:12: branch_false: following ‘false’ branch (when ‘group’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:382:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:393:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:400:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:405:9: call_function: calling ‘spa_loop_add_source’ from ‘group_create’
#  160|   SPA_API_LOOP int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
#  161|   {
#  162|-> 	return spa_api_method_r(int, -ENOTSUP,
#  163|   			spa_loop, &object->iface, add_source, 0, source);
#  164|   }

Error: CPPCHECK_WARNING (CWE-190): [#def97]
pipewire-1.5.81/spa/include/spa/support/loop.h:167: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  165|   SPA_API_LOOP int spa_loop_update_source(struct spa_loop *object, struct spa_source *source)
#  166|   {
#  167|-> 	return spa_api_method_r(int, -ENOTSUP,
#  168|   			spa_loop, &object->iface, update_source, 0, source);
#  169|   }

Error: CPPCHECK_WARNING (CWE-190): [#def98]
pipewire-1.5.81/spa/include/spa/support/loop.h:172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  170|   SPA_API_LOOP int spa_loop_remove_source(struct spa_loop *object, struct spa_source *source)
#  171|   {
#  172|-> 	return spa_api_method_r(int, -ENOTSUP,
#  173|   			spa_loop, &object->iface, remove_source, 0, source);
#  174|   }

Error: CPPCHECK_WARNING (CWE-190): [#def99]
pipewire-1.5.81/spa/include/spa/support/loop.h:179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  177|   		size_t size, bool block, void *user_data)
#  178|   {
#  179|-> 	return spa_api_method_r(int, -ENOTSUP,
#  180|   			spa_loop, &object->iface, invoke, 0, func, seq, data,
#  181|   			size, block, user_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def100]
pipewire-1.5.81/spa/include/spa/support/loop.h:179:16: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:172:13: enter_function: entry to ‘handle_module_group’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:194:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_false: following ‘false’ branch (when ‘i == 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:200:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:200:9: call_function: inlined call to ‘pw_loop_invoke’ from ‘handle_module_group’
#  177|   		size_t size, bool block, void *user_data)
#  178|   {
#  179|-> 	return spa_api_method_r(int, -ENOTSUP,
#  180|   			spa_loop, &object->iface, invoke, 0, func, seq, data,
#  181|   			size, block, user_data);

Error: CPPCHECK_WARNING (CWE-190): [#def101]
pipewire-1.5.81/spa/include/spa/support/loop.h:187: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  185|   		size_t size, void *user_data)
#  186|   {
#  187|-> 	return spa_api_method_r(int, -ENOTSUP,
#  188|   			spa_loop, &object->iface, locked, 0, func, seq, data,
#  189|   			size, user_data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def102]
pipewire-1.5.81/spa/include/spa/support/loop.h:187:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  185|   		size_t size, void *user_data)
#  186|   {
#  187|-> 	return spa_api_method_r(int, -ENOTSUP,
#  188|   			spa_loop, &object->iface, locked, 0, func, seq, data,
#  189|   			size, user_data);

Error: CPPCHECK_WARNING (CWE-190): [#def103]
pipewire-1.5.81/spa/include/spa/support/loop.h:381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  379|   SPA_API_LOOP int spa_loop_control_get_fd(struct spa_loop_control *object)
#  380|   {
#  381|-> 	return spa_api_method_r(int, -ENOTSUP,
#  382|   			spa_loop_control, &object->iface, get_fd, 0);
#  383|   }

Error: CPPCHECK_WARNING (CWE-190): [#def104]
pipewire-1.5.81/spa/include/spa/support/loop.h:388: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  386|   		void *data)
#  387|   {
#  388|-> 	spa_api_method_v(spa_loop_control, &object->iface, add_hook, 0,
#  389|   			hook, hooks, data);
#  390|   }

Error: CPPCHECK_WARNING (CWE-190): [#def105]
pipewire-1.5.81/spa/include/spa/support/loop.h:393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  391|   SPA_API_LOOP void spa_loop_control_enter(struct spa_loop_control *object)
#  392|   {
#  393|-> 	spa_api_method_v(spa_loop_control, &object->iface, enter, 0);
#  394|   }
#  395|   SPA_API_LOOP void spa_loop_control_leave(struct spa_loop_control *object)

Error: CPPCHECK_WARNING (CWE-190): [#def106]
pipewire-1.5.81/spa/include/spa/support/loop.h:397: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  395|   SPA_API_LOOP void spa_loop_control_leave(struct spa_loop_control *object)
#  396|   {
#  397|-> 	spa_api_method_v(spa_loop_control, &object->iface, leave, 0);
#  398|   }
#  399|   SPA_API_LOOP int spa_loop_control_iterate(struct spa_loop_control *object,

Error: CPPCHECK_WARNING (CWE-190): [#def107]
pipewire-1.5.81/spa/include/spa/support/loop.h:402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  400|   		int timeout)
#  401|   {
#  402|-> 	return spa_api_method_r(int, -ENOTSUP,
#  403|   			spa_loop_control, &object->iface, iterate, 0, timeout);
#  404|   }

Error: CPPCHECK_WARNING (CWE-190): [#def108]
pipewire-1.5.81/spa/include/spa/support/loop.h:502: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  500|   		bool close, spa_source_io_func_t func, void *data)
#  501|   {
#  502|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  503|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  504|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def109]
pipewire-1.5.81/spa/include/spa/support/loop.h:502:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:139:20: enter_function: entry to ‘add_watch’
pipewire-1.5.81/spa/plugins/support/dbus.c:147:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: call_function: calling ‘spa_loop_utils_add_io’ from ‘add_watch’
#  500|   		bool close, spa_source_io_func_t func, void *data)
#  501|   {
#  502|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  503|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  504|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def110]
pipewire-1.5.81/spa/include/spa/support/loop.h:502:16: warning[-Wanalyzer-malloc-leak]: leak of ‘mmrp’
pipewire-1.5.81/src/modules/module-avb/mmrp.c:178:18: enter_function: entry to ‘avb_mmrp_register’
pipewire-1.5.81/src/modules/module-avb/mmrp.c:184:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/mmrp.c:188:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:188:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:189:12: branch_false: following ‘false’ branch (when ‘mmrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/mmrp.c:194:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:197:24: call_function: inlined call to ‘pw_loop_add_io’ from ‘avb_mmrp_register’
#  500|   		bool close, spa_source_io_func_t func, void *data)
#  501|   {
#  502|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  503|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  504|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def111]
pipewire-1.5.81/spa/include/spa/support/loop.h:502:16: warning[-Wanalyzer-malloc-leak]: leak of ‘msrp’
pipewire-1.5.81/src/modules/module-avb/msrp.c:403:18: enter_function: entry to ‘avb_msrp_register’
pipewire-1.5.81/src/modules/module-avb/msrp.c:409:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/msrp.c:413:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/msrp.c:413:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/msrp.c:414:12: branch_false: following ‘false’ branch (when ‘msrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/msrp.c:419:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/msrp.c:422:24: call_function: inlined call to ‘pw_loop_add_io’ from ‘avb_msrp_register’
#  500|   		bool close, spa_source_io_func_t func, void *data)
#  501|   {
#  502|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  503|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  504|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def112]
pipewire-1.5.81/spa/include/spa/support/loop.h:502:16: warning[-Wanalyzer-malloc-leak]: leak of ‘mvrp’
pipewire-1.5.81/src/modules/module-avb/mvrp.c:241:18: enter_function: entry to ‘avb_mvrp_register’
pipewire-1.5.81/src/modules/module-avb/mvrp.c:247:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/mvrp.c:251:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:252:12: branch_false: following ‘false’ branch (when ‘mvrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/mvrp.c:257:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:260:24: call_function: inlined call to ‘pw_loop_add_io’ from ‘avb_mvrp_register’
#  500|   		bool close, spa_source_io_func_t func, void *data)
#  501|   {
#  502|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  503|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  504|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def113]
pipewire-1.5.81/spa/include/spa/support/loop.h:502:16: warning[-Wanalyzer-malloc-leak]: leak of ‘w’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:61:20: enter_function: entry to ‘watch_new’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:67:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:68:12: branch_false: following ‘false’ branch (when ‘w’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:71:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:75:21: call_function: inlined call to ‘pw_loop_add_io’ from ‘watch_new’
#  500|   		bool close, spa_source_io_func_t func, void *data)
#  501|   {
#  502|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  503|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  504|   }

Error: CPPCHECK_WARNING (CWE-190): [#def114]
pipewire-1.5.81/spa/include/spa/support/loop.h:508: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  506|   		struct spa_source *source, uint32_t mask)
#  507|   {
#  508|-> 	return spa_api_method_r(int, -ENOTSUP,
#  509|   			spa_loop_utils, &object->iface, update_io, 0, source, mask);
#  510|   }

Error: CPPCHECK_WARNING (CWE-190): [#def115]
pipewire-1.5.81/spa/include/spa/support/loop.h:515: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  513|   		spa_source_idle_func_t func, void *data)
#  514|   {
#  515|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  516|   			spa_loop_utils, &object->iface, add_idle, 0, enabled, func, data);
#  517|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def116]
pipewire-1.5.81/spa/include/spa/support/loop.h:515:16: warning[-Wanalyzer-malloc-leak]: leak of ‘conn’
pipewire-1.5.81/spa/plugins/support/dbus.c:415:1: enter_function: entry to ‘impl_get_connection’
pipewire-1.5.81/spa/plugins/support/dbus.c:422:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:426:32: call_function: calling ‘spa_loop_utils_add_idle’ from ‘impl_get_connection’
#  513|   		spa_source_idle_func_t func, void *data)
#  514|   {
#  515|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  516|   			spa_loop_utils, &object->iface, add_idle, 0, enabled, func, data);
#  517|   }

Error: CPPCHECK_WARNING (CWE-190): [#def117]
pipewire-1.5.81/spa/include/spa/support/loop.h:521: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  519|   		struct spa_source *source, bool enabled)
#  520|   {
#  521|-> 	return spa_api_method_r(int, -ENOTSUP,
#  522|   			spa_loop_utils, &object->iface, enable_idle, 0, source, enabled);
#  523|   }

Error: CPPCHECK_WARNING (CWE-190): [#def118]
pipewire-1.5.81/spa/include/spa/support/loop.h:527: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  525|   spa_loop_utils_add_event(struct spa_loop_utils *object, spa_source_event_func_t func, void *data)
#  526|   {
#  527|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  528|   			spa_loop_utils, &object->iface, add_event, 0, func, data);
#  529|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def119]
pipewire-1.5.81/spa/include/spa/support/loop.h:527:16: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/work-queue.c:79:23: enter_function: entry to ‘pw_work_queue_new’
pipewire-1.5.81/src/pipewire/work-queue.c:84:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/work-queue.c:85:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:90:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:92:24: call_function: inlined call to ‘pw_loop_add_event’ from ‘pw_work_queue_new’
#  525|   spa_loop_utils_add_event(struct spa_loop_utils *object, spa_source_event_func_t func, void *data)
#  526|   {
#  527|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  528|   			spa_loop_utils, &object->iface, add_event, 0, func, data);
#  529|   }

Error: CPPCHECK_WARNING (CWE-190): [#def120]
pipewire-1.5.81/spa/include/spa/support/loop.h:533: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  531|   		struct spa_source *source)
#  532|   {
#  533|-> 	return spa_api_method_r(int, -ENOTSUP,
#  534|   			spa_loop_utils, &object->iface, signal_event, 0, source);
#  535|   }

Error: CPPCHECK_WARNING (CWE-190): [#def121]
pipewire-1.5.81/spa/include/spa/support/loop.h:539: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  537|   spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
#  538|   {
#  539|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  540|   			spa_loop_utils, &object->iface, add_timer, 0, func, data);
#  541|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def122]
pipewire-1.5.81/spa/include/spa/support/loop.h:539:16: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:880:24: enter_function: entry to ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:893:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:894:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:897:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:903:24: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:903:24: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:904:25: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:904:25: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:905:30: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:905:30: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:906:32: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:906:32: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:907:31: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:907:31: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:910:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:914:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:917:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:919:26: call_function: calling ‘spa_loop_utils_add_timer’ from ‘backend_ofono_new’
#  537|   spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
#  538|   {
#  539|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  540|   			spa_loop_utils, &object->iface, add_timer, 0, func, data);
#  541|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def123]
pipewire-1.5.81/spa/include/spa/support/loop.h:539:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:210:20: enter_function: entry to ‘add_timeout’
pipewire-1.5.81/spa/plugins/support/dbus.c:218:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/dbus.c:221:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/dbus.c:223:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:225:24: call_function: calling ‘spa_loop_utils_add_timer’ from ‘add_timeout’
#  537|   spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
#  538|   {
#  539|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  540|   			spa_loop_utils, &object->iface, add_timer, 0, func, data);
#  541|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def124]
pipewire-1.5.81/spa/include/spa/support/loop.h:539:16: warning[-Wanalyzer-malloc-leak]: leak of ‘queue’
pipewire-1.5.81/src/pipewire/timer-queue.c:73:24: enter_function: entry to ‘pw_timer_queue_new’
pipewire-1.5.81/src/pipewire/timer-queue.c:78:17: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/timer-queue.c:79:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
pipewire-1.5.81/src/pipewire/timer-queue.c:82:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/timer-queue.c:83:24: call_function: inlined call to ‘pw_loop_add_timer’ from ‘pw_timer_queue_new’
#  537|   spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
#  538|   {
#  539|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  540|   			spa_loop_utils, &object->iface, add_timer, 0, func, data);
#  541|   }

Error: CPPCHECK_WARNING (CWE-190): [#def125]
pipewire-1.5.81/spa/include/spa/support/loop.h:546: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  544|   		struct timespec *interval, bool absolute)
#  545|   {
#  546|-> 	return spa_api_method_r(int, -ENOTSUP,
#  547|   			spa_loop_utils, &object->iface, update_timer, 0, source,
#  548|   			value, interval, absolute);

Error: CPPCHECK_WARNING (CWE-190): [#def126]
pipewire-1.5.81/spa/include/spa/support/loop.h:554: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  552|   		spa_source_signal_func_t func, void *data)
#  553|   {
#  554|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  555|   			spa_loop_utils, &object->iface, add_signal, 0,
#  556|   			signal_number, func, data);

Error: CPPCHECK_WARNING (CWE-190): [#def127]
pipewire-1.5.81/spa/include/spa/support/loop.h:561: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  559|   		struct spa_source *source)
#  560|   {
#  561|-> 	spa_api_method_v(spa_loop_utils, &object->iface, destroy_source, 0, source);
#  562|   }
#  563|   

Error: CPPCHECK_WARNING (CWE-190): [#def128]
pipewire-1.5.81/spa/include/spa/support/plugin-loader.h:62: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   60|   spa_plugin_loader_load(struct spa_plugin_loader *loader, const char *factory_name, const struct spa_dict *info)
#   61|   {
#   62|-> 	return spa_api_method_null_r(struct spa_handle *, NULL, spa_plugin_loader, loader, &loader->iface,
#   63|   			load, 0, factory_name, info);
#   64|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def129]
pipewire-1.5.81/spa/include/spa/support/plugin-loader.h:62:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:176:35: enter_function: entry to ‘load_media_codecs’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:200:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:201:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:204:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:209:21: branch_true: following ‘true’ branch (when ‘i != 14’)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:210:66: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:210:17: call_function: calling ‘load_media_codecs_from’ from ‘load_media_codecs’
#   60|   spa_plugin_loader_load(struct spa_plugin_loader *loader, const char *factory_name, const struct spa_dict *info)
#   61|   {
#   62|-> 	return spa_api_method_null_r(struct spa_handle *, NULL, spa_plugin_loader, loader, &loader->iface,
#   63|   			load, 0, factory_name, info);
#   64|   }

Error: CPPCHECK_WARNING (CWE-190): [#def130]
pipewire-1.5.81/spa/include/spa/support/plugin-loader.h:69: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   67|   spa_plugin_loader_unload(struct spa_plugin_loader *loader, struct spa_handle *handle)
#   68|   {
#   69|-> 	return spa_api_method_null_r(int, -1, spa_plugin_loader, loader, &loader->iface,
#   70|   			unload, 0, handle);
#   71|   }

Error: CPPCHECK_WARNING (CWE-190): [#def131]
pipewire-1.5.81/spa/include/spa/support/plugin.h:69: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   67|   		const char *type, void **iface)
#   68|   {
#   69|-> 	return spa_api_func_r(int, -ENOTSUP, object, get_interface, 0, type, iface);
#   70|   }
#   71|   SPA_API_PLUGIN int

Error: GCC_ANALYZER_WARNING (CWE-401): [#def132]
pipewire-1.5.81/spa/include/spa/support/plugin.h:69:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:60:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
#   67|   		const char *type, void **iface)
#   68|   {
#   69|-> 	return spa_api_func_r(int, -ENOTSUP, object, get_interface, 0, type, iface);
#   70|   }
#   71|   SPA_API_PLUGIN int

Error: CPPCHECK_WARNING (CWE-190): [#def133]
pipewire-1.5.81/spa/include/spa/support/plugin.h:74: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   72|   spa_handle_clear(struct spa_handle *object)
#   73|   {
#   74|-> 	return spa_api_func_r(int, -ENOTSUP, object, clear, 0);
#   75|   }
#   76|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def134]
pipewire-1.5.81/spa/include/spa/support/plugin.h:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.adapter_handle’
pipewire-1.5.81/spa/plugins/audioconvert/test-audioadapter.c:267:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/plugins/audioconvert/test-audioadapter.c:273:9: call_function: calling ‘setup_context’ from ‘main’
#  190|   		const struct spa_support *support, uint32_t n_support)
#  191|   {
#  192|-> 	return spa_api_func_r(int, -ENOTSUP, object, init, 1, handle, info,
#  193|   			support, n_support);
#  194|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def135]
pipewire-1.5.81/spa/include/spa/support/plugin.h:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.convert_handle’
pipewire-1.5.81/spa/plugins/audioconvert/test-audioconvert.c:1119:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/plugins/audioconvert/test-audioconvert.c:1125:9: call_function: calling ‘setup_context’ from ‘main’
#  190|   		const struct spa_support *support, uint32_t n_support)
#  191|   {
#  192|-> 	return spa_api_func_r(int, -ENOTSUP, object, init, 1, handle, info,
#  193|   			support, n_support);
#  194|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def136]
pipewire-1.5.81/spa/include/spa/support/plugin.h:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘ctx.follower_handle’
pipewire-1.5.81/spa/plugins/audioconvert/test-audioadapter.c:267:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/plugins/audioconvert/test-audioadapter.c:273:9: call_function: calling ‘setup_context’ from ‘main’
#  190|   		const struct spa_support *support, uint32_t n_support)
#  191|   {
#  192|-> 	return spa_api_func_r(int, -ENOTSUP, object, init, 1, handle, info,
#  193|   			support, n_support);
#  194|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def137]
pipewire-1.5.81/spa/include/spa/support/plugin.h:192:16: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.5.81/spa/plugins/audioconvert/test-channelmix.c:371:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/plugins/audioconvert/test-channelmix.c:380:21: call_function: calling ‘get_cpu_flags’ from ‘main’
#  190|   		const struct spa_support *support, uint32_t n_support)
#  191|   {
#  192|-> 	return spa_api_func_r(int, -ENOTSUP, object, init, 1, handle, info,
#  193|   			support, n_support);
#  194|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def138]
pipewire-1.5.81/spa/include/spa/support/system.h:159:16: warning[-Wanalyzer-malloc-leak]: leak of ‘group’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:363:22: enter_function: entry to ‘group_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:378:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:379:12: branch_false: following ‘false’ branch (when ‘group’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:382:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:391:26: call_function: inlined call to ‘spa_system_timerfd_create’ from ‘group_create’
#  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): [#def139]
pipewire-1.5.81/spa/include/spa/support/system.h:185:16: warning[-Wanalyzer-malloc-leak]: leak of ‘get_source(object)’
pipewire-1.5.81/spa/plugins/support/loop.c:1340:1: enter_function: entry to ‘impl_init’
pipewire-1.5.81/spa/plugins/support/loop.c:1352:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1353:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1353:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1355:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1385:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1386:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1386:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1387:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1390:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1391:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1393:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1394:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1394:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1396:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1396:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1397:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1397:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1398:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1402:24: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/support/loop.c:1402:24: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/support/loop.c:1404:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1409:20: call_function: inlined call to ‘spa_system_pollfd_create’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/support/loop.c:1409:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:1414:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:1420:24: call_function: calling ‘loop_add_event’ from ‘impl_init’
#  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): [#def140]
pipewire-1.5.81/spa/include/spa/support/system.h:185:16: warning[-Wanalyzer-malloc-leak]: leak of ‘queue’
pipewire-1.5.81/spa/plugins/support/loop.c:222:22: enter_function: entry to ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:228:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/loop.c:229:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
pipewire-1.5.81/spa/plugins/support/loop.c:232:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:239:12: branch_true: following ‘true’ branch (when ‘with_fd != 0’)...
pipewire-1.5.81/spa/plugins/support/loop.c:240:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:240:28: call_function: inlined call to ‘spa_system_eventfd_create’ from ‘loop_create_queue’
#  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: CPPCHECK_WARNING (CWE-190): [#def141]
pipewire-1.5.81/spa/include/spa/support/thread.h:72: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   70|   		const struct spa_dict *props, void *(*start_routine)(void*), void *arg)
#   71|   {
#   72|-> 	return spa_api_method_r(struct spa_thread *, NULL,
#   73|   			spa_thread_utils, &o->iface, create, 0,
#   74|   			props, start_routine, arg);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def142]
pipewire-1.5.81/spa/include/spa/support/thread.h:72:16: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-rt.c:719:27: enter_function: entry to ‘impl_create’
pipewire-1.5.81/src/modules/module-rt.c:726:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:733:18: call_function: calling ‘pw_thread_utils_create’ from ‘impl_create’
#   70|   		const struct spa_dict *props, void *(*start_routine)(void*), void *arg)
#   71|   {
#   72|-> 	return spa_api_method_r(struct spa_thread *, NULL,
#   73|   			spa_thread_utils, &o->iface, create, 0,
#   74|   			props, start_routine, arg);

Error: CPPCHECK_WARNING (CWE-190): [#def143]
pipewire-1.5.81/spa/include/spa/support/thread.h:82: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   80|   		struct spa_thread *thread, void **retval)
#   81|   {
#   82|-> 	return spa_api_method_r(int, -ENOTSUP,
#   83|   			spa_thread_utils, &o->iface, join, 0,
#   84|   			thread, retval);

Error: CPPCHECK_WARNING (CWE-190): [#def144]
pipewire-1.5.81/spa/include/spa/support/thread.h:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   		const struct spa_dict *props, int *min, int *max)
#   91|   {
#   92|-> 	return spa_api_method_r(int, -ENOTSUP,
#   93|   			spa_thread_utils, &o->iface, get_rt_range, 0,
#   94|   			props, min, max);

Error: CPPCHECK_WARNING (CWE-190): [#def145]
pipewire-1.5.81/spa/include/spa/support/thread.h:102: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  100|   		struct spa_thread *thread, int priority)
#  101|   {
#  102|-> 	return spa_api_method_r(int, -ENOTSUP,
#  103|   			spa_thread_utils, &o->iface, acquire_rt, 0,
#  104|   			thread, priority);

Error: CPPCHECK_WARNING (CWE-190): [#def146]
pipewire-1.5.81/spa/include/spa/support/thread.h:112: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  110|   		struct spa_thread *thread)
#  111|   {
#  112|-> 	return spa_api_method_r(int, -ENOTSUP,
#  113|   			spa_thread_utils, &o->iface, drop_rt, 0, thread);
#  114|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def147]
pipewire-1.5.81/spa/include/spa/utils/cleanup.h:96:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘_old_value_’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2999:13: enter_function: entry to ‘sco_listen’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3004:34: acquire_resource: socket created here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3005:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3011:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3015:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3020:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3028:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3029:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3004:27: call_function: calling ‘_spa_autoclose_cleanup_func’ from ‘sco_listen’
#   94|   {
#   95|   	int save_errno = errno;
#   96|-> 	spa_clear_fd(*fd);
#   97|   	errno = save_errno;
#   98|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
pipewire-1.5.81/spa/include/spa/utils/cleanup.h:96:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:39: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:39: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: call_function: calling ‘make_unix_socket’ from ‘pipewire__module_init’
#   94|   {
#   95|   	int save_errno = errno;
#   96|-> 	spa_clear_fd(*fd);
#   97|   	errno = save_errno;
#   98|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def149]
pipewire-1.5.81/spa/include/spa/utils/cleanup.h:96:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:39: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: call_function: calling ‘make_unix_socket’ from ‘pipewire__module_init’
#   94|   {
#   95|   	int save_errno = errno;
#   96|-> 	spa_clear_fd(*fd);
#   97|   	errno = save_errno;
#   98|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def150]
pipewire-1.5.81/spa/include/spa/utils/cleanup.h:98:1: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:39: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:39: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: call_function: calling ‘make_unix_socket’ from ‘pipewire__module_init’
#   96|   	spa_clear_fd(*fd);
#   97|   	errno = save_errno;
#   98|-> }
#   99|   #define spa_autoclose spa_cleanup(_spa_autoclose_cleanup_func)
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def151]
pipewire-1.5.81/spa/include/spa/utils/cleanup.h:98:1: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:39: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1899:32: call_function: calling ‘make_unix_socket’ from ‘pipewire__module_init’
#   96|   	spa_clear_fd(*fd);
#   97|   	errno = save_errno;
#   98|-> }
#   99|   #define spa_autoclose spa_cleanup(_spa_autoclose_cleanup_func)
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def152]
pipewire-1.5.81/spa/include/spa/utils/cleanup.h:113:1: warning[-Wanalyzer-malloc-leak]: leak of ‘_old_value_’
pipewire-1.5.81/src/pipewire/impl-module.c:38:14: enter_function: entry to ‘find_module’
pipewire-1.5.81/src/pipewire/impl-module.c:45:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:45:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:46:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:49:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:58:12: branch_false: following ‘false’ branch (when ‘level > 0’)...
pipewire-1.5.81/src/pipewire/impl-module.c:61:32: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:62:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:69:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:70:31: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:70:21: call_function: calling ‘spa_streq’ from ‘find_module’
pipewire-1.5.81/src/pipewire/impl-module.c:70:21: return_function: returning to ‘find_module’ from ‘spa_streq’
pipewire-1.5.81/src/pipewire/impl-module.c:70:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:70:54: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:70:54: call_function: calling ‘spa_streq’ from ‘find_module’
pipewire-1.5.81/src/pipewire/impl-module.c:70:54: return_function: returning to ‘find_module’ from ‘spa_streq’
pipewire-1.5.81/src/pipewire/impl-module.c:70:21: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:73:46: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:73:46: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:73:46: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:74:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/impl-module.c:77:21: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-module.c:79:36: call_function: calling ‘find_module’ from ‘find_module’
#  111|   #include <dirent.h>
#  112|   
#  113|-> SPA_DEFINE_AUTOPTR_CLEANUP(DIR, DIR, {
#  114|   	spa_clear_ptr(*thing, closedir);
#  115|   })

Error: COMPILER_WARNING: [#def153]
pipewire-1.5.81/spa/include/spa/utils/json-core.h: scope_hint: In function ‘spa_json_next’
pipewire-1.5.81/spa/include/spa/utils/defs.h:83:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#   83 | ({                                                                      \
#      | ^
pipewire-1.5.81/spa/include/spa/utils/defs.h:91:81: note: in expansion of macro ‘SPA_FLAG_CLEAR’
#   91 | #define SPA_FLAG_UPDATE(field,flag,val) ((val) ? SPA_FLAG_SET((field),(flag)) : SPA_FLAG_CLEAR((field),(flag)))
#      |                                                                                 ^~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/json-core.h:142:41: note: in expansion of macro ‘SPA_FLAG_UPDATE’
#  142 |                                         SPA_FLAG_UPDATE(flag, __KEY_FLAG, !(flag & __KEY_FLAG));
#      |                                         ^~~~~~~~~~~~~~~
#   81|   #define SPA_FLAG_SET(field,flag)	((field) |= (flag))
#   82|   #define SPA_FLAG_CLEAR(field, flag)					\
#   83|-> ({									\
#   84|   	SPA_STATIC_ASSERT(__builtin_constant_p(flag) ?			\
#   85|   	              (__typeof__(flag))(__typeof__(field))(__typeof__(flag))(flag) == (flag) : \

Error: COMPILER_WARNING: [#def154]
pipewire-1.5.81/spa/include/spa/utils/defs.h:85:95: warning[-Wpedantic]: expression in static assertion is not an integer constant expression
#   84 |         SPA_STATIC_ASSERT(__builtin_constant_p(flag) ?                  \
#      |                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                      
#   85 |                       (__typeof__(flag))(__typeof__(field))(__typeof__(flag))(flag) == (flag) : \
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
#   86 |                       sizeof(field) >= sizeof(flag),                    \
#      |                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                            
pipewire-1.5.81/spa/include/spa/utils/defs.h:27:65: note: in definition of macro ‘SPA_STATIC_ASSERT_IMPL’
#   27 | #  define SPA_STATIC_ASSERT_IMPL(expr, msg, ...) _Static_assert(expr, msg)
#      |                                                                 ^~~~
pipewire-1.5.81/spa/include/spa/utils/defs.h:84:9: note: in expansion of macro ‘SPA_STATIC_ASSERT’
#   84 |         SPA_STATIC_ASSERT(__builtin_constant_p(flag) ?                  \
#      |         ^~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/defs.h:91:81: note: in expansion of macro ‘SPA_FLAG_CLEAR’
#   91 | #define SPA_FLAG_UPDATE(field,flag,val) ((val) ? SPA_FLAG_SET((field),(flag)) : SPA_FLAG_CLEAR((field),(flag)))
#      |                                                                                 ^~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/utils/json-core.h:167:41: note: in expansion of macro ‘SPA_FLAG_UPDATE’
#  167 |                                         SPA_FLAG_UPDATE(array_stack[(iter->depth-1) >> 6], mask, flag & __ARRAY_FLAG);
#      |                                         ^~~~~~~~~~~~~~~
#   83|   ({									\
#   84|   	SPA_STATIC_ASSERT(__builtin_constant_p(flag) ?			\
#   85|-> 	              (__typeof__(flag))(__typeof__(field))(__typeof__(flag))(flag) == (flag) : \
#   86|   		      sizeof(field) >= sizeof(flag),			\
#   87|   			"truncation problem when masking " #field	\

Error: COMPILER_WARNING: [#def155]
pipewire-1.5.81/spa/include/spa/utils/result.h:10: included_from: Included from here.
pipewire-1.5.81/spa/tools/spa-json-dump.c:16: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/utils/string.h: scope_hint: In function ‘spa_strbuf_append’
pipewire-1.5.81/spa/include/spa/utils/defs.h:147:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  147 | ({                                                      \
#      | ^
pipewire-1.5.81/spa/include/spa/utils/string.h:392:29: note: in expansion of macro ‘SPA_MIN’
#  392 |                 buf->pos += SPA_MIN(remain, (size_t)written);
#      |                             ^~~~~~~
#  145|   })
#  146|   #define SPA_MIN(a,b)					\
#  147|-> ({							\
#  148|   	__typeof__(a) _min_a = (a);			\
#  149|   	__typeof__(b) _min_b = (b);			\

Error: COMPILER_WARNING: [#def156]
pipewire-1.5.81/spa/include/spa/utils/json-core.h: scope_hint: In function ‘spa_json_get_error’
pipewire-1.5.81/spa/include/spa/utils/defs.h:153:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  153 | ({                                                      \
#      | ^
pipewire-1.5.81/spa/include/spa/utils/defs.h:148:20: note: in definition of macro ‘SPA_MIN’
#  148 |         __typeof__(a) _min_a = (a);                     \
#      |                    ^
pipewire-1.5.81/spa/include/spa/utils/defs.h:163:17: note: in expansion of macro ‘SPA_MAX’
#  163 |         SPA_MIN(SPA_MAX(_v, _low), _high);              \
#      |                 ^~~~~~~
pipewire-1.5.81/spa/include/spa/utils/json-core.h:379:24: note: in expansion of macro ‘SPA_CLAMP’
#  379 |                 code = SPA_CLAMP(iter->state & 0xff, 0u, SPA_N_ELEMENTS(reasons)-1);
#      |                        ^~~~~~~~~
#  151|   })
#  152|   #define SPA_MAX(a,b)					\
#  153|-> ({							\
#  154|   	__typeof__(a) _max_a = (a);			\
#  155|   	__typeof__(b) _max_b = (b);			\

Error: COMPILER_WARNING: [#def157]
pipewire-1.5.81/spa/include/spa/utils/defs.h:159:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  159 | ({                                                      \
#      | ^
pipewire-1.5.81/spa/include/spa/utils/json-core.h:379:24: note: in expansion of macro ‘SPA_CLAMP’
#  379 |                 code = SPA_CLAMP(iter->state & 0xff, 0u, SPA_N_ELEMENTS(reasons)-1);
#      |                        ^~~~~~~~~
#  157|   })
#  158|   #define SPA_CLAMP(v,low,high)				\
#  159|-> ({							\
#  160|   	__typeof__(v) _v = (v);				\
#  161|   	__typeof__(low) _low = (low);			\

Error: COMPILER_WARNING: [#def158]
pipewire-1.5.81/spa/include/spa/support/log.h:12: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/debug/file.h:13: included_from: Included from here.
pipewire-1.5.81/spa/tools/spa-json-dump.c:18: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/support/log.h: scope_hint: In function ‘spa_log_topic_init’
pipewire-1.5.81/spa/include/spa/utils/hook.h:165:1: warning[-Wpedantic]: ISO C forbids braced-groups within expressions
#  165 | ({                                                                              \
#      | ^
pipewire-1.5.81/spa/include/spa/utils/hook.h:238:9: note: in expansion of macro ‘spa_callbacks_call’
#  238 |         spa_callbacks_call(&(iface)->cb,method_type,method,vers,##__VA_ARGS__)
#      |         ^~~~~~~~~~~~~~~~~~
pipewire-1.5.81/spa/include/spa/support/log.h:229:9: note: in expansion of macro ‘spa_interface_call’
#  229 |         spa_interface_call(&log->iface, struct spa_log_methods, topic_init, 1, topic);
#      |         ^~~~~~~~~~~~~~~~~~
#  163|    */
#  164|   #define spa_callbacks_call(callbacks,type,method,vers,...)			\
#  165|-> ({										\
#  166|   	const type *_f = (const type *) (callbacks)->funcs;			\
#  167|   	bool _res = SPA_CALLBACK_CHECK(_f,method,vers);				\

Error: GCC_ANALYZER_WARNING (CWE-688): [#def159]
pipewire-1.5.81/spa/include/spa/utils/hook.h:441:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘hook’ where non-null expected
pipewire-1.5.81/test/test-spa-utils.c:344:1: enter_function: entry to ‘utils_hook’
pipewire-1.5.81/test/test-spa-utils.c:361:13: acquire_memory: this call could return NULL
pipewire-1.5.81/test/test-spa-utils.c:362:9: call_function: calling ‘spa_hook_list_append’ from ‘utils_hook’
#argument 1 of ‘__builtin_memset’ must be non-null
#  439|   					const void *funcs, void *data)
#  440|   {
#  441|-> 	spa_zero(*hook);
#  442|   	hook->cb = SPA_CALLBACKS_INIT(funcs, data);
#  443|   	spa_list_append(&list->list, &hook->link);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def160]
pipewire-1.5.81/spa/include/spa/utils/hook.h:462:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/impl-metadata.c:266:26: enter_function: entry to ‘pw_context_create_metadata’
pipewire-1.5.81/src/pipewire/impl-metadata.c:279:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-metadata.c:280:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-metadata.c:284:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-metadata.c:294:9: call_function: calling ‘pw_impl_metadata_set_implementation’ from ‘pw_context_create_metadata’
#  460|   		spa_list_remove(&hook->link);
#  461|   	if (hook->removed)
#  462|-> 		hook->removed(hook);
#  463|   }
#  464|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def161]
pipewire-1.5.81/spa/include/spa/utils/json-core.h:112:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘value’
pipewire-1.5.81/src/modules/module-protocol-pulse/cmd.c:67:12: enter_function: entry to ‘parse_cmd’
pipewire-1.5.81/src/modules/module-protocol-pulse/cmd.c:75:32: acquire_memory: this call could return NULL
pipewire-1.5.81/src/modules/module-protocol-pulse/cmd.c:76:13: call_function: inlined call to ‘spa_json_begin_array’ from ‘parse_cmd’
#  110|   
#  111|   	for (; iter->cur < iter->end; iter->cur++) {
#  112|-> 		unsigned char cur = (unsigned char)*iter->cur;
#  113|   		uint32_t flag;
#  114|   

Error: COMPILER_WARNING: [#def162]
pipewire-1.5.81/spa/include/spa/utils/json.h:15: included_from: Included from here.
pipewire-1.5.81/spa/tools/spa-json-dump.c:17: included_from: Included from here.
pipewire-1.5.81/spa/include/spa/utils/json-core.h:251:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
#  251 |                         case 240 ... 247:
#      |                         ^~~~
#  249|   					continue;
#  250|   				return ++iter->cur - *value;
#  251|-> 			case 240 ... 247:
#  252|   				utf8_remain++;
#  253|   				SPA_FALLTHROUGH;

Error: COMPILER_WARNING: [#def163]
pipewire-1.5.81/spa/include/spa/utils/json-core.h:254:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
#  254 |                         case 224 ... 239:
#      |                         ^~~~
#  252|   				utf8_remain++;
#  253|   				SPA_FALLTHROUGH;
#  254|-> 			case 224 ... 239:
#  255|   				utf8_remain++;
#  256|   				SPA_FALLTHROUGH;

Error: COMPILER_WARNING: [#def164]
pipewire-1.5.81/spa/include/spa/utils/json-core.h:257:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
#  257 |                         case 192 ... 223:
#      |                         ^~~~
#  255|   				utf8_remain++;
#  256|   				SPA_FALLTHROUGH;
#  257|-> 			case 192 ... 223:
#  258|   				utf8_remain++;
#  259|   				iter->state = __UTF8 | flag;

Error: COMPILER_WARNING: [#def165]
pipewire-1.5.81/spa/include/spa/utils/json-core.h:268:25: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
#  268 |                         case 128 ... 191:
#      |                         ^~~~
#  266|   		case __UTF8:
#  267|   			switch (cur) {
#  268|-> 			case 128 ... 191:
#  269|   				if (--utf8_remain == 0)
#  270|   					iter->state = __STRING | flag;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def166]
pipewire-1.5.81/spa/include/spa/utils/json-core.h:391:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘value’
pipewire-1.5.81/src/modules/module-protocol-pulse/cmd.c:67:12: enter_function: entry to ‘parse_cmd’
pipewire-1.5.81/src/modules/module-protocol-pulse/cmd.c:75:32: acquire_memory: this call could return NULL
pipewire-1.5.81/src/modules/module-protocol-pulse/cmd.c:76:13: call_function: inlined call to ‘spa_json_begin_array’ from ‘parse_cmd’
#  389|   SPA_API_JSON int spa_json_is_container(const char *val, int len)
#  390|   {
#  391|-> 	return len > 0 && (*val == '{'  || *val == '[');
#  392|   }
#  393|   

Error: COMPILER_WARNING: [#def167]
pipewire-1.5.81/spa/include/spa/utils/json-core.h: scope_hint: In function ‘spa_json_parse_float’
pipewire-1.5.81/spa/include/spa/utils/json-core.h:424:37: warning[-Wpedantic]: ISO C does not support range expressions in switch statements before C2Y
#  424 |                 case '+': case '-': case '0' ... '9': case '.': case 'e': case 'E': break;
#      |                                     ^~~~
#  422|   	for (pos = 0; pos < len; ++pos) {
#  423|   		switch (val[pos]) {
#  424|-> 		case '+': case '-': case '0' ... '9': case '.': case 'e': case 'E': break;
#  425|   		default: return 0;
#  426|   		}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def168]
pipewire-1.5.81/spa/include/spa/utils/list.h:53:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘e’
pipewire-1.5.81/test/test-spa-utils.c:255:13: acquire_memory: this call could return NULL
pipewire-1.5.81/test/test-spa-utils.c:257:9: call_function: inlined call to ‘spa_list_insert’ from ‘utils_list’
#   51|   SPA_API_LIST void spa_list_insert(struct spa_list *list, struct spa_list *elem)
#   52|   {
#   53|-> 	elem->prev = list;
#   54|   	elem->next = list->next;
#   55|   	list->next = elem;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def169]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:496:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:511:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:515:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:516:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:537:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:538:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:538:17: call_function: calling ‘impl_free’ from ‘pipewire__module_init’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def170]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cpid’
pipewire-1.5.81/test/pwtest.c:862:12: enter_function: entry to ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:872:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
pipewire-1.5.81/test/pwtest.c:886:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:886:9: call_function: calling ‘close_pipes’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:886:9: return_function: returning to ‘start_test_forked’ from ‘close_pipes’
pipewire-1.5.81/test/pwtest.c:889:9: call_function: calling ‘free_cleanup_pids’ from ‘start_test_forked’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def171]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘e’
pipewire-1.5.81/test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.5.81/test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-utils.c:293:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-spa-utils.c:294:17: call_function: inlined call to ‘spa_list_remove’ from ‘utils_list’
pipewire-1.5.81/test/test-spa-utils.c:295:17: release_memory: freed here
pipewire-1.5.81/test/test-spa-utils.c:293:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-spa-utils.c:294:17: call_function: inlined call to ‘spa_list_remove’ from ‘utils_list’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def172]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘g’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:279:12: enter_function: entry to ‘module_gsettings_unload’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:291:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: call_function: calling ‘unload_module’ from ‘module_gsettings_unload’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: return_function: returning to ‘module_gsettings_unload’ from ‘unload_module’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:291:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: call_function: calling ‘unload_module’ from ‘module_gsettings_unload’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def173]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘item’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2515:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2516:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2520:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2536:25: call_function: calling ‘rfcomm_process_events’ from ‘rfcomm_event’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def174]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘s’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:474:12: enter_function: entry to ‘module_device_restore_unload’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:479:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: call_function: calling ‘remove_subscribe’ from ‘module_device_restore_unload’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: return_function: returning to ‘module_device_restore_unload’ from ‘remove_subscribe’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:479:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: call_function: calling ‘remove_subscribe’ from ‘module_device_restore_unload’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def175]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘t’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:496:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:515:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:516:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:537:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:538:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:538:17: call_function: calling ‘impl_free’ from ‘pipewire__module_init’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def176]
pipewire-1.5.81/spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘updated_call’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2506:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2507:17: call_function: calling ‘rfcomm_free’ from ‘rfcomm_event’
#   69|   SPA_API_LIST void spa_list_remove(struct spa_list *elem)
#   70|   {
#   71|-> 	elem->prev->next = elem->next;
#   72|   	elem->next->prev = elem->prev;
#   73|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def177]
pipewire-1.5.81/spa/include/spa/utils/string.h:229:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buffer’
pipewire-1.5.81/test/pwtest.c:1020:13: enter_function: entry to ‘run_test’
pipewire-1.5.81/test/pwtest.c:1028:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/pwtest.c:1029:29: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1029:29: call_function: calling ‘pw_array_add’ from ‘run_test’
pipewire-1.5.81/test/pwtest.c:1029:29: return_function: returning to ‘run_test’ from ‘pw_array_add’
pipewire-1.5.81/test/pwtest.c:1030:17: call_function: calling ‘spa_scnprintf’ from ‘run_test’
#  227|   	r = vsnprintf(buffer, size, format, args);
#  228|   	if (SPA_UNLIKELY(r < 0))
#  229|-> 		buffer[0] = '\0';
#  230|   	if (SPA_LIKELY(r < (ssize_t)size))
#  231|   		return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def178]
pipewire-1.5.81/spa/plugins/alsa/acp-tool.c:607:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data.properties’
pipewire-1.5.81/spa/plugins/alsa/acp-tool.c:722:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/plugins/alsa/acp-tool.c:726:44: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp-tool.c:756:20: call_function: calling ‘do_probe’ from ‘main’
#  605|   	struct spa_json it;
#  606|   
#  607|-> 	acp_set_log_func(log_func, data);
#  608|   	acp_set_log_level(data->verbose);
#  609|   

Error: CPPCHECK_WARNING (CWE-457): [#def179]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-mixer.c:3655: error[legacyUninitvar]: Uninitialized variable: a_limit
# 3653|                   pa_assert_not_reached();
# 3654|   
# 3655|->             if (a_limit > b->volume_limit)
# 3656|                   return false;
# 3657|           }

Error: CPPCHECK_WARNING (CWE-457): [#def180]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-ucm.c:1307: warning[uninitvar]: Uninitialized variables: sorted.next, sorted.prev, sorted.proplist, sorted.type, sorted.playback_priority, sorted.capture_priority, sorted.playback_rate, sorted.capture_rate, sorted.playback_channels, sorted.capture_channels, sorted.playback_volumes, sorted.capture_volumes, sorted.playback_mapping, sorted.capture_mapping, sorted.conflicting_devices, sorted.supported_devices, sorted.ucm_ports, sorted.jack, sorted.hw_mute_jacks, sorted.available, sorted.eld_mixer_device_name, sorted.eld_device, sorted.playbac [...]
# 1305|   
# 1306|       /* Sort by alphabetical order so as to have a deterministic naming scheme */
# 1307|->     qsort(&sorted[0], num, sizeof(pa_alsa_ucm_device *), pa_alsa_ucm_device_cmp);
# 1308|   
# 1309|       for (i = 0; i < num; i++) {
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-ucm.c:1307: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-457): [#def181]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-ucm.c:1339: warning[uninitvar]: Uninitialized variables: sorted.next, sorted.prev, sorted.proplist, sorted.type, sorted.playback_priority, sorted.capture_priority, sorted.playback_rate, sorted.capture_rate, sorted.playback_channels, sorted.capture_channels, sorted.playback_volumes, sorted.capture_volumes, sorted.playback_mapping, sorted.capture_mapping, sorted.conflicting_devices, sorted.supported_devices, sorted.ucm_ports, sorted.jack, sorted.hw_mute_jacks, sorted.available, sorted.eld_mixer_device_name, sorted.eld_device, sorted.playbac [...]
# 1337|   
# 1338|       /* Sort by alphabetical order to match devset_name() */
# 1339|->     qsort(&sorted[0], num, sizeof(pa_alsa_ucm_device *), pa_alsa_ucm_device_cmp);
# 1340|   
# 1341|       for (i = 0; i < num; i++) {
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-ucm.c:1339: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-476): [#def182]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-ucm.c:2231: warning[nullPointer]: Possible null pointer dereference: c
# 2229|           char *verb_cmp, *c;
# 2230|           c = verb_cmp = pa_xstrdup(verb_name);
# 2231|->         while (*c) {
# 2232|               if (*c == '_') *c = ' ';
# 2233|               c++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def183]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1519:20: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1516:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1516:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1516:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1518:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1519:20: danger: ‘_mem_alloc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/13/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-401): [#def184]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:20: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1597:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:20: danger: ‘_mem_alloc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/14/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: GCC_ANALYZER_WARNING (CWE-401): [#def185]
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1635:12: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1532:21: enter_function: entry to ‘pa_alsa_get_supported_formats’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1597:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/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: GCC_ANALYZER_WARNING (CWE-476): [#def186]
pipewire-1.5.81/spa/plugins/alsa/acp/array.h:55:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:183:8: branch_true: following ‘true’ branch (when ‘proplist’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:184:26: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:184:26: call_function: calling ‘pa_proplist_new’ from ‘pa_config_parse’
#   53|   {
#   54|   	arr->data = NULL;
#   55|-> 	arr->size = arr->alloc = 0;
#   56|   	arr->extend = extend;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def187]
pipewire-1.5.81/spa/plugins/alsa/acp/array.h:81:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1061:6: enter_function: entry to ‘pa_alsa_init_proplist_pcm’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1077:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1080:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1080:9: call_function: calling ‘pa_alsa_init_proplist_pcm_info’ from ‘pa_alsa_init_proplist_pcm’
#   79|   		while (alloc < need)
#   80|   			alloc *= 2;
#   81|-> 		if ((data = realloc(arr->data, alloc)) == NULL)
#   82|   			return -errno;
#   83|   		arr->data = data;

Error: CPPCHECK_WARNING (CWE-476): [#def188]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:129: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  127|   	p = calloc(1, sizeof(pa_device_port) + extra);
#  128|   
#  129|-> 	p->port.name = p->name = data->name;
#  130|   	data->name = NULL;
#  131|   	p->port.description = p->description = data->description;

Error: CPPCHECK_WARNING (CWE-476): [#def189]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:131: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  129|   	p->port.name = p->name = data->name;
#  130|   	data->name = NULL;
#  131|-> 	p->port.description = p->description = data->description;
#  132|   	data->description = NULL;
#  133|   	p->priority = p->port.priority = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def190]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:133: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  131|   	p->port.description = p->description = data->description;
#  132|   	data->description = NULL;
#  133|-> 	p->priority = p->port.priority = 0;
#  134|   	p->available = data->available;
#  135|   	p->port.available = (enum acp_available) data->available;

Error: CPPCHECK_WARNING (CWE-476): [#def191]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:134: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  132|   	data->description = NULL;
#  133|   	p->priority = p->port.priority = 0;
#  134|-> 	p->available = data->available;
#  135|   	p->port.available = (enum acp_available) data->available;
#  136|   	p->availability_group = data->availability_group;

Error: CPPCHECK_WARNING (CWE-476): [#def192]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:135: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  133|   	p->priority = p->port.priority = 0;
#  134|   	p->available = data->available;
#  135|-> 	p->port.available = (enum acp_available) data->available;
#  136|   	p->availability_group = data->availability_group;
#  137|   	data->availability_group = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def193]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  134|   	p->available = data->available;
#  135|   	p->port.available = (enum acp_available) data->available;
#  136|-> 	p->availability_group = data->availability_group;
#  137|   	data->availability_group = NULL;
#  138|   	p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);

Error: CPPCHECK_WARNING (CWE-476): [#def194]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:138: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  136|   	p->availability_group = data->availability_group;
#  137|   	data->availability_group = NULL;
#  138|-> 	p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
#  139|   	p->direction = data->direction;
#  140|   	p->port.direction = data->direction == PA_DIRECTION_OUTPUT ?

Error: CPPCHECK_WARNING (CWE-476): [#def195]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:139: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  137|   	data->availability_group = NULL;
#  138|   	p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
#  139|-> 	p->direction = data->direction;
#  140|   	p->port.direction = data->direction == PA_DIRECTION_OUTPUT ?
#  141|   		ACP_DIRECTION_PLAYBACK : ACP_DIRECTION_CAPTURE;

Error: CPPCHECK_WARNING (CWE-476): [#def196]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:140: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  138|   	p->profiles = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func);
#  139|   	p->direction = data->direction;
#  140|-> 	p->port.direction = data->direction == PA_DIRECTION_OUTPUT ?
#  141|   		ACP_DIRECTION_PLAYBACK : ACP_DIRECTION_CAPTURE;
#  142|   	p->type = data->type;

Error: CPPCHECK_WARNING (CWE-476): [#def197]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:142: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  140|   	p->port.direction = data->direction == PA_DIRECTION_OUTPUT ?
#  141|   		ACP_DIRECTION_PLAYBACK : ACP_DIRECTION_CAPTURE;
#  142|-> 	p->type = data->type;
#  143|   
#  144|   	p->proplist = pa_proplist_new();

Error: CPPCHECK_WARNING (CWE-476): [#def198]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:144: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  142|   	p->type = data->type;
#  143|   
#  144|-> 	p->proplist = pa_proplist_new();
#  145|   	pa_proplist_sets(p->proplist, ACP_KEY_PORT_TYPE, str_port_type(data->type));
#  146|   	if (p->availability_group)

Error: CPPCHECK_WARNING (CWE-476): [#def199]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:145: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  143|   
#  144|   	p->proplist = pa_proplist_new();
#  145|-> 	pa_proplist_sets(p->proplist, ACP_KEY_PORT_TYPE, str_port_type(data->type));
#  146|   	if (p->availability_group)
#  147|   		pa_proplist_sets(p->proplist, ACP_KEY_PORT_AVAILABILITY_GROUP, p->availability_group);

Error: CPPCHECK_WARNING (CWE-476): [#def200]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:146: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  144|   	p->proplist = pa_proplist_new();
#  145|   	pa_proplist_sets(p->proplist, ACP_KEY_PORT_TYPE, str_port_type(data->type));
#  146|-> 	if (p->availability_group)
#  147|   		pa_proplist_sets(p->proplist, ACP_KEY_PORT_AVAILABILITY_GROUP, p->availability_group);
#  148|   

Error: CPPCHECK_WARNING (CWE-682): [#def201]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:149: error[nullPointerArithmeticOutOfMemory]: If memory allocation fails: pointer addition with NULL pointer.
#  147|   		pa_proplist_sets(p->proplist, ACP_KEY_PORT_AVAILABILITY_GROUP, p->availability_group);
#  148|   
#  149|-> 	p->user_data = (void*)((uint8_t*)p + sizeof(pa_device_port));
#  150|   
#  151|   	return p;

Error: CPPCHECK_WARNING (CWE-476): [#def202]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:149: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  147|   		pa_proplist_sets(p->proplist, ACP_KEY_PORT_AVAILABILITY_GROUP, p->availability_group);
#  148|   
#  149|-> 	p->user_data = (void*)((uint8_t*)p + sizeof(pa_device_port));
#  150|   
#  151|   	return p;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def203]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:223:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:217:14: enter_function: entry to ‘try_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:219:20: call_function: calling ‘pa_maybe_prefix_path’ from ‘try_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:219:20: return_function: returning to ‘try_path’ from ‘pa_maybe_prefix_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:223:9: danger: argument 1 (‘pa_maybe_prefix_path(fname,  path)’) NULL where non-null expected
#  221|       pa_log_trace("Check for file: %s", result);
#  222|   
#  223|->     if (access(result, R_OK) == 0)
#  224|   	return result;
#  225|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def204]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:223:9: warning[-Wanalyzer-null-argument]: use of NULL ‘base’ where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:247:7: enter_function: entry to ‘get_data_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:254:24: release_memory: ‘base’ is NULL
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:257:8: branch_true: following ‘true’ branch (when ‘data_dir’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:258:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:258:23: call_function: calling ‘try_path’ from ‘get_data_path’
#  221|       pa_log_trace("Check for file: %s", result);
#  222|   
#  223|->     if (access(result, R_OK) == 0)
#  224|   	return result;
#  225|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def205]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_true: following ‘true’ branch (when ‘f’ is NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:21: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:21: acquire_resource: opened here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: call_function: calling ‘pa_log_level_meta’ from ‘pa_config_parse’
#  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): [#def206]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1532:21: enter_function: entry to ‘pa_alsa_get_supported_formats’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1573:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1578:24: branch_true: following ‘true’ branch (when ‘i != 13’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1579:78: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1585:8: branch_false: following ‘false’ branch (when ‘n == 0’)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1595:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1597:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1598:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/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.5.81/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): [#def207]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_true: following ‘true’ branch (when ‘f’ is NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:21: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: call_function: calling ‘pa_log_level_meta’ from ‘pa_config_parse’
#  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): [#def208]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pa_maybe_prefix_path(fname,  path)’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:217:14: enter_function: entry to ‘try_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:219:20: call_function: calling ‘pa_maybe_prefix_path’ from ‘try_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:219:20: return_function: returning to ‘try_path’ from ‘pa_maybe_prefix_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:221:5: call_function: calling ‘pa_log_level_meta’ from ‘try_path’
#  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): [#def209]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-malloc-leak]: leak of ‘state.section’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:195:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:197:13: call_function: calling ‘parse_line’ from ‘pa_config_parse’
#  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-404): [#def210]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:242:9: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:217:14: enter_function: entry to ‘try_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:219:20: call_function: calling ‘pa_maybe_prefix_path’ from ‘try_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:219:20: return_function: returning to ‘try_path’ from ‘pa_maybe_prefix_path’
pipewire-1.5.81/spa/plugins/alsa/acp/compat.c:221:5: call_function: calling ‘pa_log_level_meta’ from ‘try_path’
#  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-688): [#def211]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:379:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sb.f’ where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1462:13: enter_function: entry to ‘dump_supported_rates’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1468:11: call_function: calling ‘pa_strbuf_new’ from ‘dump_supported_rates’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1468:11: return_function: returning to ‘dump_supported_rates’ from ‘pa_strbuf_new’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1470:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1471:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1471:9: call_function: calling ‘pa_strbuf_printf’ from ‘dump_supported_rates’
#  377|   	va_list args;
#  378|   	va_start(args, format);
#  379|-> 	ret = vfprintf(sb->f, format, args);
#  380|   	va_end(args);
#  381|   	return ret > 0 ? ret : 0;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def212]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:398:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*<unknown>.f’ where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1462:13: enter_function: entry to ‘dump_supported_rates’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1468:11: call_function: calling ‘pa_strbuf_new’ from ‘dump_supported_rates’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1468:11: return_function: returning to ‘dump_supported_rates’ from ‘pa_strbuf_new’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1470:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1474:11: call_function: inlined call to ‘pa_strbuf_to_string_free’ from ‘dump_supported_rates’
#  396|   {
#  397|   	char *ptr;
#  398|-> 	fclose(sb->f);
#  399|   	ptr = sb->ptr;
#  400|   	free(sb);

Error: CPPCHECK_WARNING (CWE-476): [#def213]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:598: warning[nullPointer]: Possible null pointer dereference: s
#  596|   {
#  597|       char *e, *l = NULL;
#  598|->     s += strspn(s, PA_WHITESPACE);
#  599|       for (e = s; *e; e++)
#  600|           if (!strchr(PA_WHITESPACE, *e))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def214]
pipewire-1.5.81/spa/plugins/alsa/acp/compat.h:682:18: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1405:7: enter_function: entry to ‘pa_alsa_get_driver_name’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1408:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1410:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1410:9: call_function: calling ‘pa_sprintf_malloc’ from ‘pa_alsa_get_driver_name’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1410:9: return_function: returning to ‘pa_alsa_get_driver_name’ from ‘pa_sprintf_malloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1411:9: call_function: calling ‘pa_readlink’ from ‘pa_alsa_get_driver_name’
#  680|               return NULL;
#  681|   
#  682|->         if ((n = readlink(p, c, l-1)) < 0) {
#  683|               pa_xfree(c);
#  684|               return NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def215]
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:119:13: warning[-Wanalyzer-null-argument]: use of NULL ‘state.section’ where non-null expected
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:195:9: branch_false: ...to here
pipewire-1.5.81/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): [#def216]
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘state.proplist’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:183:8: branch_true: following ‘true’ branch (when ‘proplist’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:184:26: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:184:26: call_function: calling ‘pa_proplist_new’ from ‘pa_config_parse’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:184:26: return_function: returning to ‘pa_config_parse’ from ‘pa_proplist_new’
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/conf-parser.c:187:14: danger: ‘state.proplist’ leaks here; was allocated at [(12)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/11)
#  185|   
#  186|       while (!feof(f)) {
#  187|->         if (!fgets(state.buf, sizeof(state.buf), f)) {
#  188|               if (feof(f))
#  189|                   break;

Error: CPPCHECK_WARNING (CWE-476): [#def217]
pipewire-1.5.81/spa/plugins/alsa/acp/dynarray.h:26: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: array
#   24|   {
#   25|   	pa_array_init(&array->array, 16);
#   26|-> 	array->free_cb = free_cb;
#   27|   }
#   28|   

Error: CPPCHECK_WARNING (CWE-476): [#def218]
pipewire-1.5.81/spa/plugins/alsa/acp/hashmap.h:34: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
#   32|           pa_hashmap *m = calloc(1, sizeof(pa_hashmap));
#   33|           pa_array_init(&m->array, 16);
#   34|-> 	m->hash_func = hash_func;
#   35|   	m->compare_func = compare_func;
#   36|   	return m;

Error: CPPCHECK_WARNING (CWE-476): [#def219]
pipewire-1.5.81/spa/plugins/alsa/acp/hashmap.h:35: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: m
#   33|           pa_array_init(&m->array, 16);
#   34|   	m->hash_func = hash_func;
#   35|-> 	m->compare_func = compare_func;
#   36|   	return m;
#   37|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def220]
pipewire-1.5.81/spa/plugins/alsa/acp/hashmap.h:85:42: warning[-Wanalyzer-malloc-leak]: leak of ‘_mem_alloc’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1839:16: enter_function: entry to ‘pa_alsa_create_mixer’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1842:10: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1842:10: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1846:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_false: ...to here
pipewire-1.5.81/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-476): [#def221]
pipewire-1.5.81/spa/plugins/alsa/acp/hashmap.h:105:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1839:16: enter_function: entry to ‘pa_alsa_create_mixer’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1842:10: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1846:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_true: following ‘true’ branch (when ‘dev’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1848:5: call_function: calling ‘pa_hashmap_put’ from ‘pa_alsa_create_mixer’
#  103|   		return -1;
#  104|   	item = pa_hashmap_find_free(h);
#  105|-> 	item->key = key;
#  106|   	item->value = value;
#  107|   	return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def222]
pipewire-1.5.81/spa/plugins/alsa/acp/idxset.h:57: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
#   55|           pa_idxset *s = calloc(1, sizeof(pa_idxset));
#   56|           pa_array_init(&s->array, 16);
#   57|-> 	s->hash_func = hash_func;
#   58|   	s->compare_func = compare_func;
#   59|   	return s;

Error: CPPCHECK_WARNING (CWE-476): [#def223]
pipewire-1.5.81/spa/plugins/alsa/acp/idxset.h:58: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
#   56|           pa_array_init(&s->array, 16);
#   57|   	s->hash_func = hash_func;
#   58|-> 	s->compare_func = compare_func;
#   59|   	return s;
#   60|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def224]
pipewire-1.5.81/spa/plugins/alsa/acp/proplist.h:98:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1083:6: enter_function: entry to ‘pa_alsa_init_proplist_ctl’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1089:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1091:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1093:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1098:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1098:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1104:14: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1104:8: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1105:9: call_function: calling ‘pa_proplist_sets’ from ‘pa_alsa_init_proplist_ctl’
#   96|           else
#   97|                   item = pa_array_add(&p->array, sizeof(*item));
#   98|-> 	item->key = strdup(key);
#   99|   	item->value = strdup(value);
#  100|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def225]
pipewire-1.5.81/spa/plugins/alsa/acp/proplist.h:99:23: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(key)’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1083:6: enter_function: entry to ‘pa_alsa_init_proplist_ctl’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1089:5: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1091:5: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1093:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1098:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1098:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1104:14: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1104:8: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1105:9: call_function: calling ‘pa_proplist_sets’ from ‘pa_alsa_init_proplist_ctl’
#   97|                   item = pa_array_add(&p->array, sizeof(*item));
#   98|   	item->key = strdup(key);
#   99|-> 	item->value = strdup(value);
#  100|   	return 0;
#  101|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def226]
pipewire-1.5.81/spa/plugins/alsa/acp/proplist.h:124:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1061:6: enter_function: entry to ‘pa_alsa_init_proplist_pcm’
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1069:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1073:21: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1073:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1074:13: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/acp/alsa-util.c:1074:13: call_function: calling ‘pa_proplist_setf’ from ‘pa_alsa_init_proplist_pcm’
#  122|           else
#  123|                   item = pa_array_add(&p->array, sizeof(*item));
#  124|-> 	item->key = strdup(key);
#  125|   	if ((res = vasprintf(&item->value, format, args)) < 0)
#  126|   		res = -errno;

Error: CPPCHECK_WARNING (CWE-190): [#def227]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:222: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  220|   	info.props = &SPA_DICT_INIT(items, n_items);
#  221|   
#  222|-> 	spa_device_emit_object_info(&this->hooks, dev->index, &info);
#  223|   
#  224|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def228]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:269: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  267|   			}
#  268|   		}
#  269|-> 		spa_device_emit_info(&this->hooks, &this->info);
#  270|   		this->info.change_mask = old;
#  271|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def229]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:317: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  315|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  316|   
#  317|-> 	spa_device_emit_result(&this->hooks, seq, 0, 0, NULL);
#  318|   
#  319|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def230]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:607: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  605|   		goto next;
#  606|   
#  607|-> 	spa_device_emit_result(&this->hooks, seq, 0,
#  608|   			SPA_RESULT_TYPE_DEVICE_PARAMS, &result);
#  609|   

Error: CPPCHECK_WARNING (CWE-190): [#def231]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:624: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  622|   	struct spa_pod_frame f[1];
#  623|   
#  624|-> 	spa_log_info(this->log, "device %s latency changed", dev->name);
#  625|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
#  626|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def232]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:639: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  637|   	event = spa_pod_builder_pop(&b, &f[0]);
#  638|   
#  639|-> 	spa_device_emit_event(&this->hooks, event);
#  640|   }
#  641|   

Error: CPPCHECK_WARNING (CWE-190): [#def233]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:650: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  648|   	struct spa_pod_frame f[1];
#  649|   
#  650|-> 	spa_log_info(this->log, "device %s codecs changed", dev->name);
#  651|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
#  652|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def234]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:666: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  664|   	event = spa_pod_builder_pop(&b, &f[0]);
#  665|   
#  666|-> 	spa_device_emit_event(&this->hooks, event);
#  667|   }
#  668|   

Error: CPPCHECK_WARNING (CWE-190): [#def235]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:816: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  814|   				SPA_PARAM_PROFILE_name, SPA_POD_OPT_String(&name),
#  815|   				SPA_PARAM_PROFILE_save, SPA_POD_OPT_Bool(&save))) < 0) {
#  816|-> 			spa_log_warn(this->log, "can't parse profile");
#  817|   			spa_debug_log_pod(this->log, SPA_LOG_LEVEL_DEBUG, 0, NULL, param);
#  818|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def236]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:821: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  819|   		}
#  820|   		if (idx == SPA_ID_INVALID && name == NULL) {
#  821|-> 			spa_log_warn(this->log, "profile needs name or index");
#  822|   			return -EINVAL;
#  823|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def237]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:827: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  825|   			idx = find_profile_by_name(this->card, name);
#  826|   		if (idx == SPA_ID_INVALID) {
#  827|-> 			spa_log_warn(this->log, "unknown profile %s", name);
#  828|   			return -EINVAL;
#  829|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def238]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:852: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  850|   				SPA_PARAM_ROUTE_props, SPA_POD_OPT_Pod(&props),
#  851|   				SPA_PARAM_ROUTE_save, SPA_POD_OPT_Bool(&save))) < 0) {
#  852|-> 			spa_log_warn(this->log, "can't parse route");
#  853|   			spa_debug_log_pod(this->log, SPA_LOG_LEVEL_DEBUG, 0, NULL, param);
#  854|   			return res;

Error: CPPCHECK_WARNING (CWE-457): [#def239]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:856: error[uninitvar]: Uninitialized variable: device
#  854|   			return res;
#  855|   		}
#  856|-> 		if (device >= this->card->n_devices)
#  857|   			return -EINVAL;
#  858|   		if (idx == SPA_ID_INVALID && name == NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def240]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:895: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  893|   {
#  894|   	struct impl *this = data;
#  895|-> 	spa_log_info(this->log, "card properties changed");
#  896|   }
#  897|   

Error: CPPCHECK_WARNING (CWE-190): [#def241]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:916: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  914|   	uint32_t i;
#  915|   
#  916|-> 	spa_log_info(this->log, "card profile changed from %s to %s",
#  917|   			op->name, np->name);
#  918|   

Error: CPPCHECK_WARNING (CWE-190): [#def242]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:923: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  921|   		if (has_device(np, index))
#  922|   			continue;
#  923|-> 		spa_device_emit_object_info(&this->hooks, index, NULL);
#  924|   	}
#  925|   	for (i = 0; i < np->n_devices; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def243]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:943: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  941|   	struct acp_card_profile *p = card->profiles[index];
#  942|   
#  943|-> 	spa_log_info(this->log, "card profile %s available %s -> %s", p->name,
#  944|   			acp_available_str(old), acp_available_str(available));
#  945|   

Error: CPPCHECK_WARNING (CWE-190): [#def244]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:963: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  961|   	struct acp_port *np = card->ports[new_index];
#  962|   
#  963|-> 	spa_log_info(this->log, "card port changed from %s to %s",
#  964|   			op->name, np->name);
#  965|   

Error: CPPCHECK_WARNING (CWE-190): [#def245]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:977: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  975|   	struct acp_port *p = card->ports[index];
#  976|   
#  977|-> 	spa_log_info(this->log, "card port %s available %s -> %s", p->name,
#  978|   			acp_available_str(old), acp_available_str(available));
#  979|   

Error: CPPCHECK_WARNING (CWE-190): [#def246]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:1011: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1009|   	float soft_volume[n_volume];
# 1010|   
# 1011|-> 	spa_log_info(this->log, "device %s volume changed", dev->name);
# 1012|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
# 1013|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def247]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:1037: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1035|   	event = spa_pod_builder_pop(&b, &f[0]);
# 1036|   
# 1037|-> 	spa_device_emit_event(&this->hooks, event);
# 1038|   }
# 1039|   

Error: CPPCHECK_WARNING (CWE-190): [#def248]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:1049: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1047|   	bool mute;
# 1048|   
# 1049|-> 	spa_log_info(this->log, "device %s mute changed", dev->name);
# 1050|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
# 1051|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def249]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:1068: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1066|   	event = spa_pod_builder_pop(&b, &f[0]);
# 1067|   
# 1068|-> 	spa_device_emit_event(&this->hooks, event);
# 1069|   }
# 1070|   

Error: CPPCHECK_WARNING (CWE-190): [#def250]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:1152: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1150|   	acp_i18n = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_I18N);
# 1151|   	if (this->loop == NULL) {
# 1152|-> 		spa_log_error(this->log, "a Loop interface is needed");
# 1153|   		return -EINVAL;
# 1154|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def251]
pipewire-1.5.81/spa/plugins/alsa/alsa-acp-device.c:1180: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1178|   	}
# 1179|   
# 1180|-> 	spa_log_debug(this->log, "probe card %s", this->props.device);
# 1181|   	if ((str = strchr(this->props.device, ':')) == NULL)
# 1182|   		return -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def252]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:29:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:815:1: enter_function: entry to ‘impl_init’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:823:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:824:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:824:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:826:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:831:21: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:831:21: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:834:29: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:834:29: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:835:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:835:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:836:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:836:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:838:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:842:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:842:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:846:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:846:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:851:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm-source.c:873:9: call_function: calling ‘reset_props’ from ‘impl_init’
#   27|   static void reset_props(struct props *props)
#   28|   {
#   29|-> 	strncpy(props->device, default_device, 64);
#   30|   	props->use_chmap = DEFAULT_USE_CHMAP;
#   31|   	spa_scnprintf(props->media_class, sizeof(props->media_class), "%s", "Audio/Source");

Error: CPPCHECK_WARNING (CWE-476): [#def253]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:51: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#   49|   
#   50|   	c = calloc(1, sizeof(*c));
#   51|-> 	c->ref = 1;
#   52|   	c->index = index;
#   53|   

Error: CPPCHECK_WARNING (CWE-476): [#def254]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:52: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#   50|   	c = calloc(1, sizeof(*c));
#   51|   	c->ref = 1;
#   52|-> 	c->index = index;
#   53|   
#   54|   	if (ucm) {

Error: CPPCHECK_WARNING (CWE-190): [#def255]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:147: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  145|   
#  146|   		default:
#  147|-> 			spa_log_warn(state->log, "%s ctl '%s' not supported",
#  148|   					snd_ctl_elem_type_name(snd_ctl_elem_info_get_type(info)),
#  149|   					snd_ctl_elem_info_get_name(info));

Error: CPPCHECK_WARNING (CWE-190): [#def256]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:154: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  152|   
#  153|   		if(changed)
#  154|-> 			CHECK(snd_ctl_elem_write(state->ctl, state->bound_ctls[i].value), "snd_ctl_elem_write");
#  155|   		return 0;
#  156|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def257]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:167: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  165|   		state->default_channels = atoi(s);
#  166|   		if (state->default_channels > SPA_AUDIO_MAX_CHANNELS) {
#  167|-> 			spa_log_warn(state->log, "%p: %s: %s > %d, clamping",
#  168|   					state, k, s, SPA_AUDIO_MAX_CHANNELS);
#  169|   			state->default_channels = SPA_AUDIO_MAX_CHANNELS;

Error: CPPCHECK_WARNING (CWE-190): [#def258]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:283: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  281|   	if (!info) {
#  282|   		// This will end iteration early, so print a warning
#  283|-> 		spa_log_warn(state->log, "Don't have prop info for bind ctl, bailing");
#  284|   		return NULL;
#  285|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def259]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:331: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  329|   		default:
#  330|   			// FIXME: we can probably support bytes but the length seems unknown in the API
#  331|-> 			spa_log_warn(state->log, "%s ctl '%s' not supported",
#  332|   					snd_ctl_elem_type_name(snd_ctl_elem_info_get_type(info)),
#  333|   					snd_ctl_elem_info_get_name(info));

Error: CPPCHECK_WARNING (CWE-190): [#def260]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:561: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  559|   
#  560|   		default:
#  561|-> 			spa_log_warn(state->log, "%s ctl '%s' not supported",
#  562|   					snd_ctl_elem_type_name(snd_ctl_elem_info_get_type(info)),
#  563|   					snd_ctl_elem_info_get_name(info));

Error: CPPCHECK_WARNING (CWE-190): [#def261]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:582: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  580|   		err = snd_ctl_elem_read(state->ctl, state->bound_ctls[i].value);
#  581|   		if (err < 0) {
#  582|-> 			spa_log_warn(state->log, "Could not read elem value for '%s': %s",
#  583|   					state->bound_ctls[i].name, snd_strerror(err));
#  584|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def262]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:704: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  702|   			continue;
#  703|   
#  704|-> 		spa_log_info(state->log, "key:'%s' val:'%s'", name, value);
#  705|   		alsa_set_param(state, name, value);
#  706|   		changed++;

Error: CPPCHECK_WARNING (CWE-190): [#def263]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:724: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  722|   		len = strcspn(buf, "\n");
#  723|   		if (len > 0)
#  724|-> 			spa_log_debug(state->log, "%.*s", (int)len, buf);
#  725|   		buf += len + 1;
#  726|   		size -= len + 1;

Error: CPPCHECK_WARNING (CWE-190): [#def264]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:764: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  762|   	err = snd_ctl_poll_descriptors_revents(state->ctl, state->ctl_pfds, state->ctl_n_fds, &revents);
#  763|   	if (SPA_UNLIKELY(err < 0)) {
#  764|-> 		spa_log_warn(state->log, "Could not read ctl revents: %s", snd_strerror(err));
#  765|   		return;
#  766|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def265]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:769: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  767|   
#  768|   	if (!revents) {
#  769|-> 		spa_log_trace(state->log, "Got a bind ctl wakeup but no actual event");
#  770|   		return;
#  771|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def266]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:803: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  801|   			err = snd_ctl_elem_read(state->ctl, state->bound_ctls[i].value);
#  802|   			if (err < 0) {
#  803|-> 				spa_log_warn(state->log, "Could not read ctl '%s': %s",
#  804|   						state->bound_ctls[i].name, snd_strerror(err));
#  805|   				continue;

Error: CPPCHECK_WARNING (CWE-190): [#def267]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:812: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  810|   				// we'll emit a notification and they'll be read when
#  811|   				// the props are read
#  812|-> 				spa_log_debug(state->log, "bound ctl '%s' has changed", state->bound_ctls[i].name);
#  813|   				changed = true;
#  814|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def268]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:826: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  824|   
#  825|   	if (err < 0 && err != -EAGAIN)
#  826|-> 		spa_log_warn(state->log, "Could not read ctl: %s", snd_strerror(err));
#  827|   }
#  828|   

Error: CPPCHECK_WARNING (CWE-190): [#def269]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:843: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  841|   	err = snd_ctl_elem_list(state->ctl, element_list);
#  842|   	if (SPA_UNLIKELY(err < 0)) {
#  843|-> 		spa_log_warn(state->log, "Couldn't get elem list count. Error: %s",
#  844|   			     snd_strerror(err));
#  845|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def270]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:851: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  849|   	err = snd_ctl_elem_list_alloc_space(element_list, elem_count);
#  850|   	if (SPA_UNLIKELY(err < 0)) {
#  851|-> 		spa_log_error(state->log, "Couldn't allocate elem_list space. Error: %s",
#  852|   			      snd_strerror(err));
#  853|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def271]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:859: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  857|   	err = snd_ctl_elem_list(state->ctl, element_list);
#  858|   	if (SPA_UNLIKELY(err < 0)) {
#  859|-> 		spa_log_warn(state->log, "Couldn't get elem list. Error: %s",
#  860|   			     snd_strerror(err));
#  861|   		goto cleanup;

Error: CPPCHECK_WARNING (CWE-190): [#def272]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:879: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  877|   		/* zero = invalid numid */
#  878|   		if (SPA_UNLIKELY(!numid)) {
#  879|-> 			spa_log_warn(state->log, "Didn't find ctl: '%s', count: %u",
#  880|   				     state->bound_ctls[i].name, elem_count);
#  881|   			continue;

Error: CPPCHECK_WARNING (CWE-190): [#def273]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:889: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  887|   		err = snd_ctl_elem_info(state->ctl, state->bound_ctls[i].info);
#  888|   		if (SPA_UNLIKELY(err < 0)) {
#  889|-> 			spa_log_warn(state->log, "Could not read elem info for '%s': %s",
#  890|   				     state->bound_ctls[i].name, snd_strerror(err));
#  891|   

Error: CPPCHECK_WARNING (CWE-190): [#def274]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:900: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  898|   		snd_ctl_elem_value_set_numid(state->bound_ctls[i].value, numid);
#  899|   
#  900|-> 		spa_log_debug(state->log, "Binding ctl for '%s'",
#  901|   			      snd_ctl_elem_info_get_name(state->bound_ctls[i].info));
#  902|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def275]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:914: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  912|   
#  913|   	snprintf(card_name, sizeof(card_name), "hw:%d", state->card_index);
#  914|-> 	spa_log_debug(state->log, "Trying to open ctl device '%s'", card_name);
#  915|   
#  916|   	err = snd_ctl_open(&state->ctl, card_name, SND_CTL_NONBLOCK);

Error: CPPCHECK_WARNING (CWE-190): [#def276]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:918: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  916|   	err = snd_ctl_open(&state->ctl, card_name, SND_CTL_NONBLOCK);
#  917|   	if (err < 0) {
#  918|-> 		spa_log_info(state->log, "%s could not find ctl card: %s",
#  919|   				card_name, snd_strerror(err));
#  920|   		return err;

Error: CPPCHECK_WARNING (CWE-190): [#def277]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:941: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  939|   	state->ctl_n_fds = snd_ctl_poll_descriptors_count(state->ctl);
#  940|   	if (state->ctl_n_fds > (int)SPA_N_ELEMENTS(state->ctl_sources)) {
#  941|-> 		spa_log_warn(state->log, "Too many poll descriptors (%d), listening to a subset", state->ctl_n_fds);
#  942|   		state->ctl_n_fds = SPA_N_ELEMENTS(state->ctl_sources);
#  943|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def278]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:946: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  944|   
#  945|   	if ((err = snd_ctl_poll_descriptors(state->ctl, state->ctl_pfds, state->ctl_n_fds)) < 0) {
#  946|-> 		spa_log_warn(state->log, "Could not get poll descriptors: %s", snd_strerror(err));
#  947|   		return;
#  948|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def279]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:981: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  979|   	    state->stream == SND_PCM_STREAM_PLAYBACK) {
#  980|   		state->use_period_size_min_as_headroom = true;
#  981|-> 		spa_log_info(state->log,
#  982|   			     "ALSA SOF driver detected: default api.alsa.use-period-size-min-as-headroom=true");
#  983|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def280]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1033: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1031|   		sscanf(state->props.device, "%*[^:]:%u", &state->card_index);
# 1032|   		if (state->card_index == SPA_ID_INVALID) {
# 1033|-> 			spa_log_info(state->log, "Could not determine card index. %s and/or clock.name "
# 1034|   					"may need to be configured manually", SPA_KEY_API_ALSA_PCM_CARD);
# 1035|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def281]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1054: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1052|   	state->log_file = fopencookie(state, "w", io_funcs);
# 1053|   	if (state->log_file == NULL) {
# 1054|-> 		spa_log_error(state->log, "can't create log file");
# 1055|   		return -errno;
# 1056|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def282]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1057: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1055|   		return -errno;
# 1056|   	}
# 1057|-> 	CHECK(snd_output_stdio_attach(&state->output, state->log_file, 0), "attach failed");
# 1058|   
# 1059|   	spa_list_append(&states, &state->link);

Error: CPPCHECK_WARNING (CWE-190): [#def283]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1098: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1096|   
# 1097|   	if ((err = snd_output_close(state->output)) < 0)
# 1098|-> 		spa_log_warn(state->log, "output close failed: %s", snd_strerror(err));
# 1099|   	fclose(state->log_file);
# 1100|   

Error: CPPCHECK_WARNING (CWE-190): [#def284]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1155|   	err = snd_ctl_elem_read(state->ctl, state->pitch_elem);
# 1156|   	if (err < 0) {
# 1157|-> 		spa_log_debug(state->log, "%s: did not find ctl: %s",
# 1158|   				 elem_name, snd_strerror(err));
# 1159|   

Error: CPPCHECK_WARNING (CWE-190): [#def285]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1170|   
# 1171|   	snd_ctl_elem_value_set_integer(state->pitch_elem, 0, 1000000);
# 1172|-> 	CHECK(snd_ctl_elem_write(state->ctl, state->pitch_elem), "snd_ctl_elem_write");
# 1173|   	state->last_rate = 1.0;
# 1174|   

Error: CPPCHECK_WARNING (CWE-190): [#def286]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1175: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1173|   	state->last_rate = 1.0;
# 1174|   
# 1175|-> 	spa_log_info(state->log, "found ctl %s", elem_name);
# 1176|   	err = 0;
# 1177|   error:

Error: CPPCHECK_WARNING (CWE-190): [#def287]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1198: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1196|   		state->linked = true;
# 1197|   
# 1198|-> 	spa_log_info(state->log, "%p: linked to driver %p: %u (%s)",
# 1199|   			state, driver, state->linked, snd_strerror(res));
# 1200|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def288]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1216: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1214|   			props->device, state->stream == SND_PCM_STREAM_CAPTURE ? "c" : "p");
# 1215|   
# 1216|-> 	spa_log_info(state->log, "%p: ALSA device open '%s' %s", state, device_name,
# 1217|   			state->stream == SND_PCM_STREAM_CAPTURE ? "capture" : "playback");
# 1218|   	CHECK(snd_pcm_open(&state->hndl,

Error: CPPCHECK_WARNING (CWE-190): [#def289]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1218: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1216|   	spa_log_info(state->log, "%p: ALSA device open '%s' %s", state, device_name,
# 1217|   			state->stream == SND_PCM_STREAM_CAPTURE ? "capture" : "playback");
# 1218|-> 	CHECK(snd_pcm_open(&state->hndl,
# 1219|   			   device_name,
# 1220|   			   state->stream,

Error: CPPCHECK_WARNING (CWE-190): [#def290]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1247: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1245|   
# 1246|   error_exit_close:
# 1247|-> 	spa_log_info(state->log, "%p: Device '%s' closing: %s", state, state->name,
# 1248|   			spa_strerror(err));
# 1249|   	snd_pcm_close(state->hndl);

Error: CPPCHECK_WARNING (CWE-190): [#def291]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1259: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1257|   	if (state->driver != NULL && state->linked) {
# 1258|   		snd_pcm_unlink(state->hndl);
# 1259|-> 		spa_log_info(state->log, "%p: unlinked from driver %p",
# 1260|   				state, state->driver);
# 1261|   		state->linked = false;

Error: CPPCHECK_WARNING (CWE-190): [#def292]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1266: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1264|   		if (follower->opened && follower->linked) {
# 1265|   			snd_pcm_unlink(follower->hndl);
# 1266|-> 			spa_log_info(state->log, "%p: follower unlinked from driver %p",
# 1267|   				follower, state);
# 1268|   			follower->linked = false;

Error: CPPCHECK_WARNING (CWE-190): [#def293]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1284: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1282|   	spa_alsa_pause(state);
# 1283|   
# 1284|-> 	spa_log_info(state->log, "%p: Device '%s' closing", state, state->name);
# 1285|   	if ((err = snd_pcm_close(state->hndl)) < 0)
# 1286|   		spa_log_warn(state->log, "%s: close failed: %s", state->name,

Error: CPPCHECK_WARNING (CWE-190): [#def294]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1286: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1284|   	spa_log_info(state->log, "%p: Device '%s' closing", state, state->name);
# 1285|   	if ((err = snd_pcm_close(state->hndl)) < 0)
# 1286|-> 		spa_log_warn(state->log, "%s: close failed: %s", state->name,
# 1287|   				snd_strerror(err));
# 1288|   

Error: CPPCHECK_WARNING (CWE-190): [#def295]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1503: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1501|   	uint32_t rate;
# 1502|   
# 1503|-> 	CHECK(snd_pcm_hw_params_get_rate_min(params, &min, &dir), "get_rate_min");
# 1504|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &max, &dir), "get_rate_max");
# 1505|   

Error: CPPCHECK_WARNING (CWE-190): [#def296]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1504: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1502|   
# 1503|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &min, &dir), "get_rate_min");
# 1504|-> 	CHECK(snd_pcm_hw_params_get_rate_max(params, &max, &dir), "get_rate_max");
# 1505|   
# 1506|   	spa_log_debug(state->log, "min:%u max:%u min-allowed:%u scale:%u interleave:%u all:%d",

Error: CPPCHECK_WARNING (CWE-190): [#def297]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1506: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1504|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &max, &dir), "get_rate_max");
# 1505|   
# 1506|-> 	spa_log_debug(state->log, "min:%u max:%u min-allowed:%u scale:%u interleave:%u all:%d",
# 1507|   			min, max, min_allowed_rate, scale, interleave, all);
# 1508|   

Error: CPPCHECK_WARNING (CWE-190): [#def298]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1530: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1528|   	rate = SPA_CLAMP(rate, min, max);
# 1529|   
# 1530|-> 	spa_log_debug(state->log, "rate:%u multi:%d card:%u def:%d",
# 1531|   			rate, state->multi_rate, state->card ? state->card->rate : 0, state->default_rate);
# 1532|   

Error: CPPCHECK_WARNING (CWE-190): [#def299]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1582: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1580|   	unsigned int min, max;
# 1581|   
# 1582|-> 	CHECK(snd_pcm_hw_params_get_channels_min(params, &min), "get_channels_min");
# 1583|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &max), "get_channels_max");
# 1584|   	spa_log_debug(state->log, "channels (%d %d) default:%d all:%d",

Error: CPPCHECK_WARNING (CWE-190): [#def300]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1583: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1581|   
# 1582|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &min), "get_channels_min");
# 1583|-> 	CHECK(snd_pcm_hw_params_get_channels_max(params, &max), "get_channels_max");
# 1584|   	spa_log_debug(state->log, "channels (%d %d) default:%d all:%d",
# 1585|   			min, max, state->default_channels, all);

Error: CPPCHECK_WARNING (CWE-190): [#def301]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1584: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1582|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &min), "get_channels_min");
# 1583|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &max), "get_channels_max");
# 1584|-> 	spa_log_debug(state->log, "channels (%d %d) default:%d all:%d",
# 1585|   			min, max, state->default_channels, all);
# 1586|   

Error: CPPCHECK_WARNING (CWE-190): [#def302]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1593: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1591|   		if (min > state->default_channels ||
# 1592|   		    max < state->default_channels)
# 1593|-> 			spa_log_warn(state->log, "given audio.channels %d out of range:%d-%d",
# 1594|   					state->default_channels, min, max);
# 1595|   		else

Error: CPPCHECK_WARNING (CWE-190): [#def303]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1612: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1610|   		map = &maps[index]->map;
# 1611|   
# 1612|-> 		spa_log_debug(state->log, "map %d channels (%d %d)", map->channels, min, max);
# 1613|   
# 1614|   		if (map->channels < min || map->channels > max) {

Error: CPPCHECK_WARNING (CWE-190): [#def304]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1619: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1617|   		}
# 1618|   
# 1619|-> 		spa_log_debug(state->log, "%p: using chmap", state);
# 1620|   
# 1621|   		sanitize_map(map);

Error: CPPCHECK_WARNING (CWE-190): [#def305]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1627: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1625|   		spa_pod_builder_push_array(b, &f[0]);
# 1626|   		for (i = 0; i < map->channels; i++) {
# 1627|-> 			spa_log_debug(state->log, "%p: position %zd %d", state, i, map->pos[i]);
# 1628|   			channel = chmap_position_to_channel(map->pos[i]);
# 1629|   			spa_pod_builder_id(b, channel);

Error: CPPCHECK_WARNING (CWE-190): [#def306]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1650: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1648|   			if (state->default_pos.channels == min) {
# 1649|   				map = &state->default_pos;
# 1650|-> 				spa_log_debug(state->log, "%p: using provided default", state);
# 1651|   			} else if (min <= 8) {
# 1652|   				map = &default_map[min];

Error: CPPCHECK_WARNING (CWE-190): [#def307]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1653: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1651|   			} else if (min <= 8) {
# 1652|   				map = &default_map[min];
# 1653|-> 				spa_log_debug(state->log, "%p: using default %d channel map", state, min);
# 1654|   			}
# 1655|   			if (map) {

Error: CPPCHECK_WARNING (CWE-190): [#def308]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1659: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1657|   				spa_pod_builder_push_array(b, &f[0]);
# 1658|   				for (i = 0; i < map->channels; i++) {
# 1659|-> 					spa_log_debug(state->log, "%p: position %zd %d", state, i, map->pos[i]);
# 1660|   					spa_pod_builder_id(b, map->pos[i]);
# 1661|   				}

Error: CPPCHECK_WARNING (CWE-190): [#def309]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1672: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1670|   {
# 1671|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_DEBUG))) {
# 1672|-> 		spa_log_debug(state->log, "%s:", prefix);
# 1673|   		snd_pcm_hw_params_dump(params, state->output);
# 1674|   		fflush(state->log_file);

Error: CPPCHECK_WARNING (CWE-190): [#def310]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1692: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1690|   	hndl = state->hndl;
# 1691|   	snd_pcm_hw_params_alloca(&params);
# 1692|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration: no configurations available");
# 1693|   
# 1694|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def311]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1696: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1694|   	debug_hw_params(state, __func__, params);
# 1695|   
# 1696|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 1697|   
# 1698|   	if (state->default_channels != 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def312]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1700: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1698|   	if (state->default_channels != 0) {
# 1699|   		rchannels = state->default_channels;
# 1700|-> 		CHECK(snd_pcm_hw_params_set_channels_near(hndl, params, &rchannels), "set_channels");
# 1701|   		if (state->default_channels != rchannels) {
# 1702|   			spa_log_warn(state->log, "%s: Channels doesn't match (requested %u, got %u)",

Error: CPPCHECK_WARNING (CWE-190): [#def313]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1702: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1700|   		CHECK(snd_pcm_hw_params_set_channels_near(hndl, params, &rchannels), "set_channels");
# 1701|   		if (state->default_channels != rchannels) {
# 1702|-> 			spa_log_warn(state->log, "%s: Channels doesn't match (requested %u, got %u)",
# 1703|   				state->name, state->default_channels, rchannels);
# 1704|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def314]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1708: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1706|   	if (state->default_rate != 0) {
# 1707|   		rrate = state->default_rate;
# 1708|-> 		CHECK(snd_pcm_hw_params_set_rate_near(hndl, params, &rrate, 0), "set_rate_near");
# 1709|   		if (state->default_rate != rrate) {
# 1710|   			spa_log_warn(state->log, "%s: Rate doesn't match (requested %u, got %u)",

Error: CPPCHECK_WARNING (CWE-190): [#def315]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1710: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1708|   		CHECK(snd_pcm_hw_params_set_rate_near(hndl, params, &rrate, 0), "set_rate_near");
# 1709|   		if (state->default_rate != rrate) {
# 1710|-> 			spa_log_warn(state->log, "%s: Rate doesn't match (requested %u, got %u)",
# 1711|   				state->name, state->default_rate, rrate);
# 1712|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def316]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1772: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1770|   			}
# 1771|   		}
# 1772|-> 		spa_log_warn(state->log, "%s: no format found (def:%d) formats:%s",
# 1773|   				state->name, state->default_format, buf);
# 1774|   

Error: CPPCHECK_WARNING (CWE-190): [#def317]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1784: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1782|   			}
# 1783|   		}
# 1784|-> 		spa_log_warn(state->log, "%s: access:%s", state->name, buf);
# 1785|   		return -ENOTSUP;
# 1786|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def318]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1843: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1841|   	hndl = state->hndl;
# 1842|   	snd_pcm_hw_params_alloca(&params);
# 1843|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration: no configurations available");
# 1844|   
# 1845|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def319]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1847: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1845|   	debug_hw_params(state, __func__, params);
# 1846|   
# 1847|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 1848|   
# 1849|   	spa_pod_builder_push_object(b, &f[0], SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat);

Error: CPPCHECK_WARNING (CWE-190): [#def320]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1855: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1853|   			0);
# 1854|   
# 1855|-> 	CHECK(snd_pcm_hw_params_get_channels_min(params, &chmin), "get_channels_min");
# 1856|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &chmax), "get_channels_max");
# 1857|   	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);

Error: CPPCHECK_WARNING (CWE-190): [#def321]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1856: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1854|   
# 1855|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &chmin), "get_channels_min");
# 1856|-> 	CHECK(snd_pcm_hw_params_get_channels_max(params, &chmax), "get_channels_max");
# 1857|   	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);
# 1858|   

Error: CPPCHECK_WARNING (CWE-190): [#def322]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1857: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1855|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &chmin), "get_channels_min");
# 1856|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &chmax), "get_channels_max");
# 1857|-> 	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);
# 1858|   
# 1859|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");

Error: CPPCHECK_WARNING (CWE-190): [#def323]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1859: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1857|   	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);
# 1858|   
# 1859|-> 	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");
# 1860|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &rmax, &dir), "get_rate_max");
# 1861|   	spa_log_debug(state->log, "rate (%d %d)", rmin, rmax);

Error: CPPCHECK_WARNING (CWE-190): [#def324]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1860: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1858|   
# 1859|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");
# 1860|-> 	CHECK(snd_pcm_hw_params_get_rate_max(params, &rmax, &dir), "get_rate_max");
# 1861|   	spa_log_debug(state->log, "rate (%d %d)", rmin, rmax);
# 1862|   

Error: CPPCHECK_WARNING (CWE-190): [#def325]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1861: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1859|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");
# 1860|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &rmax, &dir), "get_rate_max");
# 1861|-> 	spa_log_debug(state->log, "rate (%d %d)", rmin, rmax);
# 1862|   
# 1863|   	if (state->default_rate != 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def326]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1866: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1864|   		if (rmin > state->default_rate ||
# 1865|   		    rmax < state->default_rate)
# 1866|-> 			spa_log_warn(state->log, "given audio.rate %d out of range:%d-%d",
# 1867|   					state->default_rate, rmin, rmax);
# 1868|   		else

Error: CPPCHECK_WARNING (CWE-190): [#def327]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1908: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1906|   	hndl = state->hndl;
# 1907|   	snd_pcm_hw_params_alloca(&params);
# 1908|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration: no configurations available");
# 1909|   
# 1910|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def328]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1928: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1926|   		return 0;
# 1927|   
# 1928|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 1929|   
# 1930|   	spa_pod_builder_push_object(b, &f[0], SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat);

Error: CPPCHECK_WARNING (CWE-190): [#def329]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:1983: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1981|   	uint32_t count = 0;
# 1982|   
# 1983|-> 	spa_log_debug(state->log, "opened:%d format:%d started:%d", state->opened,
# 1984|   			state->have_format, state->started);
# 1985|   

Error: CPPCHECK_WARNING (CWE-190): [#def330]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2024: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2022|   		goto next;
# 2023|   
# 2024|-> 	spa_node_emit_result(&state->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 2025|   
# 2026|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def331]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2096: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2094|   	uint32_t default_period;
# 2095|   
# 2096|-> 	spa_log_debug(state->log, "opened:%d format:%d started:%d", state->opened,
# 2097|   			state->have_format, state->started);
# 2098|   

Error: CPPCHECK_WARNING (CWE-190): [#def332]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2116: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2114|   		unsigned aes3;
# 2115|   
# 2116|-> 		spa_log_info(state->log, "using IEC958 Codec:%s rate:%d",
# 2117|   				spa_type_audio_iec958_codec_to_short_name(f->codec),
# 2118|   				f->rate);

Error: CPPCHECK_WARNING (CWE-190): [#def333]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2209: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2207|   
# 2208|   	if (rformat == SND_PCM_FORMAT_UNKNOWN) {
# 2209|-> 		spa_log_warn(state->log, "%s: unknown format",
# 2210|   				state->name);
# 2211|   		return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def334]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2223: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2221|   	snd_pcm_hw_params_alloca(&params);
# 2222|   	/* choose all parameters */
# 2223|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration for playback: no configurations available");
# 2224|   
# 2225|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def335]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2228: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2226|   
# 2227|   	/* set hardware resampling, no resample */
# 2228|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 2229|   
# 2230|   	/* set the interleaved/planar read/write format */

Error: CPPCHECK_WARNING (CWE-190): [#def336]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2238: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2236|   					planar ? SND_PCM_ACCESS_MMAP_NONINTERLEAVED
# 2237|   					: SND_PCM_ACCESS_MMAP_INTERLEAVED)) < 0) {
# 2238|-> 			spa_log_debug(state->log, "%p: MMAP not possible: %s", state,
# 2239|   					snd_strerror(err));
# 2240|   			state->use_mmap = false;

Error: CPPCHECK_WARNING (CWE-190): [#def337]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2247: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2245|   				planar ? SND_PCM_ACCESS_RW_NONINTERLEAVED
# 2246|   				: SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) {
# 2247|-> 			spa_log_error(state->log, "%s: RW not possible: %s",
# 2248|   					state->name, snd_strerror(err));
# 2249|   			return err;

Error: CPPCHECK_WARNING (CWE-190): [#def338]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2252|   
# 2253|   	/* set the sample format */
# 2254|-> 	spa_log_debug(state->log, "%p: Stream parameters are %iHz fmt:%s access:%s-%s channels:%i",
# 2255|   			state, rrate, snd_pcm_format_name(rformat),
# 2256|   			state->use_mmap ? "mmap" : "rw",

Error: CPPCHECK_WARNING (CWE-190): [#def339]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2258: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2256|   			state->use_mmap ? "mmap" : "rw",
# 2257|   			planar ? "planar" : "interleaved", rchannels);
# 2258|-> 	CHECK(snd_pcm_hw_params_set_format(hndl, params, rformat), "set_format");
# 2259|   
# 2260|   	/* set the count of channels */

Error: CPPCHECK_WARNING (CWE-190): [#def340]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2262: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2260|   	/* set the count of channels */
# 2261|   	val = rchannels;
# 2262|-> 	CHECK(snd_pcm_hw_params_set_channels_near(hndl, params, &val), "set_channels");
# 2263|   	if (rchannels != val) {
# 2264|   		spa_log_warn(state->log, "%s: Channels doesn't match (requested %u, got %u)",

Error: CPPCHECK_WARNING (CWE-190): [#def341]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2264: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2262|   	CHECK(snd_pcm_hw_params_set_channels_near(hndl, params, &val), "set_channels");
# 2263|   	if (rchannels != val) {
# 2264|-> 		spa_log_warn(state->log, "%s: Channels doesn't match (requested %u, got %u)",
# 2265|   				state->name, rchannels, val);
# 2266|   		if (!SPA_FLAG_IS_SET(flags, SPA_NODE_PARAM_FLAG_NEAREST))

Error: CPPCHECK_WARNING (CWE-190): [#def342]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2279: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2277|   	    state->card->format_ref > 0 &&
# 2278|   	    state->card->rate != rrate) {
# 2279|-> 		spa_log_error(state->log, "%p: card already opened at rate:%i",
# 2280|   				state, state->card->rate);
# 2281|   		return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def343]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2286: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2284|   	/* set the stream rate */
# 2285|   	val = rrate;
# 2286|-> 	CHECK(snd_pcm_hw_params_set_rate_near(hndl, params, &val, 0), "set_rate_near");
# 2287|   	if (rrate != val) {
# 2288|   		spa_log_warn(state->log, "%s: Rate doesn't match (requested %iHz, got %iHz)",

Error: CPPCHECK_WARNING (CWE-190): [#def344]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2288: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2286|   	CHECK(snd_pcm_hw_params_set_rate_near(hndl, params, &val, 0), "set_rate_near");
# 2287|   	if (rrate != val) {
# 2288|-> 		spa_log_warn(state->log, "%s: Rate doesn't match (requested %iHz, got %iHz)",
# 2289|   				state->name, rrate, val);
# 2290|   		if (!SPA_FLAG_IS_SET(flags, SPA_NODE_PARAM_FLAG_NEAREST))

Error: CPPCHECK_WARNING (CWE-190): [#def345]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2299: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2297|   	}
# 2298|   	if (rchannels == 0 || rrate == 0) {
# 2299|-> 		spa_log_error(state->log, "%s: invalid channels:%d or rate:%d",
# 2300|   				state->name, rchannels, rrate);
# 2301|   		return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def346]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2353: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2351|   			/* disable ALSA wakeups */
# 2352|   			if (snd_pcm_hw_params_can_disable_period_wakeup(params))
# 2353|-> 				CHECK(snd_pcm_hw_params_set_period_wakeup(hndl, params, 0), "set_period_wakeup");
# 2354|   		}
# 2355|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def347]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2375: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2373|   	 * set and default_headroom is 0 (not forced by user)
# 2374|   	 */
# 2375|-> 	CHECK(snd_pcm_hw_params_get_period_size_min(params, &state->period_size_min, &dir), "snd_pcm_hw_params_get_period_size_min");
# 2376|   
# 2377|   	if (state->default_period_size == 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def348]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2388: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2386|   		err = snd_pcm_hw_params_set_periods_min(hndl, params, &periods_min, &dir);
# 2387|   		if (!err) {
# 2388|-> 			CHECK(snd_pcm_hw_params_get_period_size_max(params, &period_size_max, &dir),
# 2389|   					"get_period_size_max");
# 2390|   			if (period_size > period_size_max)

Error: CPPCHECK_WARNING (CWE-190): [#def349]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2391|   				period_size = SPA_MIN(period_size, flp2(period_size_max));
# 2392|   		} else {
# 2393|-> 			spa_log_debug(state->log, "set_periods_min: %s", snd_strerror(err));
# 2394|   		}
# 2395|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def350]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2397: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2395|   	}
# 2396|   
# 2397|-> 	CHECK(snd_pcm_hw_params_set_period_size_near(hndl, params, &period_size, &dir), "set_period_size_near");
# 2398|   
# 2399|   	if (period_size == 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def351]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2400: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2398|   
# 2399|   	if (period_size == 0) {
# 2400|-> 		spa_log_error(state->log, "%s: invalid period_size 0 (driver error?)", state->name);
# 2401|   		return -EIO;
# 2402|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def352]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2408: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2406|   
# 2407|   	if (periods != UINT_MAX) {
# 2408|-> 		CHECK(snd_pcm_hw_params_set_periods_near(hndl, params, &periods, &dir), "set_periods");
# 2409|   		state->buffer_frames = period_size * periods;
# 2410|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def353]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2411: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2409|   		state->buffer_frames = period_size * periods;
# 2410|   	} else {
# 2411|-> 		CHECK(snd_pcm_hw_params_get_buffer_size_max(params, &state->buffer_frames), "get_buffer_size_max");
# 2412|   
# 2413|   		state->buffer_frames = SPA_MIN(state->buffer_frames, state->quantum_limit * 4 * state->frame_scale);

Error: CPPCHECK_WARNING (CWE-190): [#def354]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2415: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2413|   		state->buffer_frames = SPA_MIN(state->buffer_frames, state->quantum_limit * 4 * state->frame_scale);
# 2414|   
# 2415|-> 		CHECK(snd_pcm_hw_params_set_buffer_size_min(hndl, params, &state->buffer_frames), "set_buffer_size_min");
# 2416|   		CHECK(snd_pcm_hw_params_set_buffer_size_near(hndl, params, &state->buffer_frames), "set_buffer_size_near");
# 2417|   		periods = state->buffer_frames / period_size;

Error: CPPCHECK_WARNING (CWE-190): [#def355]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2416: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2414|   
# 2415|   		CHECK(snd_pcm_hw_params_set_buffer_size_min(hndl, params, &state->buffer_frames), "set_buffer_size_min");
# 2416|-> 		CHECK(snd_pcm_hw_params_set_buffer_size_near(hndl, params, &state->buffer_frames), "set_buffer_size_near");
# 2417|   		periods = state->buffer_frames / period_size;
# 2418|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def356]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2420: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2418|   	}
# 2419|   	if (state->buffer_frames == 0) {
# 2420|-> 		spa_log_error(state->log, "%s: invalid buffer_frames 0 (driver error?)", state->name);
# 2421|   		return -EIO;
# 2422|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def357]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2437: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2435|   	recalc_headroom(state);
# 2436|   
# 2437|-> 	spa_log_info(state->log, "%s: format:%s access:%s-%s rate:%d channels:%d "
# 2438|   			"buffer frames %lu, period frames %lu (min:%lu), periods %u, frame_size %zd "
# 2439|   			"headroom %u start-delay:%u batch:%u tsched:%u resample:%u",

Error: CPPCHECK_WARNING (CWE-190): [#def358]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2448: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2446|   
# 2447|   	/* write the parameters to device */
# 2448|-> 	CHECK(snd_pcm_hw_params(hndl, params), "set_hw_params");
# 2449|   
# 2450|   	return match ? 0 : 1;

Error: CPPCHECK_WARNING (CWE-190): [#def359]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2480: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2478|   
# 2479|   	snd_ctl_elem_value_set_integer(state->pitch_elem, 0, pitch);
# 2480|-> 	CHECK(snd_ctl_elem_write(state->ctl, state->pitch_elem), "snd_ctl_elem_write");
# 2481|   
# 2482|   	spa_log_trace_fp(state->log, "%s %u set rate to %g",

Error: CPPCHECK_WARNING (CWE-190): [#def360]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2499: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2497|   
# 2498|   	/* get the current params */
# 2499|-> 	CHECK(snd_pcm_sw_params_current(hndl, params), "sw_params_current");
# 2500|   
# 2501|   	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE),

Error: CPPCHECK_WARNING (CWE-190): [#def361]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2501: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2499|   	CHECK(snd_pcm_sw_params_current(hndl, params), "sw_params_current");
# 2500|   
# 2501|-> 	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE),
# 2502|   			"sw_params_set_tstamp_mode");
# 2503|   	CHECK(snd_pcm_sw_params_set_tstamp_type(hndl, params, SND_PCM_TSTAMP_TYPE_MONOTONIC),

Error: CPPCHECK_WARNING (CWE-190): [#def362]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2503: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2501|   	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE),
# 2502|   			"sw_params_set_tstamp_mode");
# 2503|-> 	CHECK(snd_pcm_sw_params_set_tstamp_type(hndl, params, SND_PCM_TSTAMP_TYPE_MONOTONIC),
# 2504|   			"sw_params_set_tstamp_type");
# 2505|   #if 0

Error: CPPCHECK_WARNING (CWE-190): [#def363]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2513: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2511|   
# 2512|   	/* start the transfer */
# 2513|-> 	CHECK(snd_pcm_sw_params_set_start_threshold(hndl, params, LONG_MAX), "set_start_threshold");
# 2514|   
# 2515|   	if (state->disable_tsched) {

Error: CPPCHECK_WARNING (CWE-190): [#def364]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2527: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2525|   		}
# 2526|   
# 2527|-> 		CHECK(snd_pcm_sw_params_set_avail_min(hndl, params, avail_min), "set_avail_min");
# 2528|   	}
# 2529|   

Error: CPPCHECK_WARNING (CWE-190): [#def365]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2531: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2529|   
# 2530|   	/* write the parameters to the playback device */
# 2531|-> 	CHECK(snd_pcm_sw_params(hndl, params), "sw_params");
# 2532|   
# 2533|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_DEBUG))) {

Error: CPPCHECK_WARNING (CWE-190): [#def366]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2534: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2532|   
# 2533|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_DEBUG))) {
# 2534|-> 		spa_log_debug(state->log, "state after sw_params:");
# 2535|   		snd_pcm_dump(hndl, state->output);
# 2536|   		fflush(state->log_file);

Error: CPPCHECK_WARNING (CWE-190): [#def367]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2563|   
# 2564|   		if (SPA_UNLIKELY((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &frames)) < 0)) {
# 2565|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 2566|   					state->name, snd_strerror(res));
# 2567|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def368]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2574|   
# 2575|   		if (SPA_UNLIKELY((res = snd_pcm_mmap_commit(hndl, offset, silence)) < 0)) {
# 2576|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 2577|   					state->name, snd_strerror(res));
# 2578|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def369]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2623: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2621|   	state->last_threshold = state->threshold;
# 2622|   
# 2623|-> 	spa_log_debug(state->log, "%p: start threshold:%d duration:%d rate:%d follower:%d match:%d resample:%d",
# 2624|   			state, state->threshold, state->driver_duration, state->driver_rate.denom,
# 2625|   			state->following, state->matching, state->resample);

Error: CPPCHECK_WARNING (CWE-190): [#def370]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2627: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2625|   			state->following, state->matching, state->resample);
# 2626|   
# 2627|-> 	CHECK(set_swparams(state), "swparams");
# 2628|   
# 2629|   	if ((!state->linked) && (err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) {

Error: CPPCHECK_WARNING (CWE-190): [#def371]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2630: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2628|   
# 2629|   	if ((!state->linked) && (err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) {
# 2630|-> 		spa_log_error(state->log, "%s: snd_pcm_prepare error: %s",
# 2631|   				state->name, snd_strerror(err));
# 2632|   		return err;

Error: CPPCHECK_WARNING (CWE-190): [#def372]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2653: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2651|   {
# 2652|   	int res;
# 2653|-> 	spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
# 2654|   	if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
# 2655|   		spa_log_error(state->log, "%s: snd_pcm_drop: %s",

Error: CPPCHECK_WARNING (CWE-190): [#def373]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2655: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2653|   	spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
# 2654|   	if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
# 2655|-> 		spa_log_error(state->log, "%s: snd_pcm_drop: %s",
# 2656|   				state->name, snd_strerror(res));
# 2657|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def374]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2666: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2664|   	int res;
# 2665|   	if (SPA_UNLIKELY(!state->alsa_started)) {
# 2666|-> 		spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
# 2667|   		if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
# 2668|   			spa_log_error(state->log, "%s: snd_pcm_start: %s",

Error: CPPCHECK_WARNING (CWE-190): [#def375]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2668: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2666|   		spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
# 2667|   		if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
# 2668|-> 			spa_log_error(state->log, "%s: snd_pcm_start: %s",
# 2669|   					state->name, snd_strerror(res));
# 2670|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def376]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2688: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2686|   	snd_pcm_status_alloca(&status);
# 2687|   	if (SPA_UNLIKELY((res = snd_pcm_status(state->hndl, status)) < 0)) {
# 2688|-> 		spa_log_error(state->log, "%s: snd_pcm_status error: %s",
# 2689|   				state->name, snd_strerror(res));
# 2690|   		goto recover;

Error: CPPCHECK_WARNING (CWE-190): [#def377]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2708: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2706|   		missing += state->start_delay + state->threshold + state->headroom;
# 2707|   
# 2708|-> 		spa_log_trace(state->log, "%p: xrun of %"PRIu64" usec %"PRIu64,
# 2709|   				state, delay, missing);
# 2710|   

Error: CPPCHECK_WARNING (CWE-190): [#def378]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2720: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2718|   	}
# 2719|   	case SND_PCM_STATE_SUSPENDED:
# 2720|-> 		spa_log_info(state->log, "%s: recover from state %s",
# 2721|   				state->name, snd_pcm_state_name(st));
# 2722|   		while (retry++ < 5 && (res = snd_pcm_resume(state->hndl)) == -EAGAIN)

Error: CPPCHECK_WARNING (CWE-190): [#def379]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2730: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2728|   		break;
# 2729|   	default:
# 2730|-> 		spa_log_error(state->log, "%s: recover from error state %s",
# 2731|   				state->name, snd_pcm_state_name(st));
# 2732|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def380]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2783: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2781|   		if ((avail = alsa_avail(state)) < 0) {
# 2782|   			if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2783|-> 				spa_log_warn(state->log, "%s: (%d suppressed) snd_pcm_avail after recover: %s",
# 2784|   						state->name, suppressed, snd_strerror(avail));
# 2785|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def381]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2798: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2796|   		if ((res = snd_pcm_htimestamp(state->hndl, &havail, &tstamp)) < 0) {
# 2797|   			if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2798|-> 				spa_log_warn(state->log, "%s: (%d suppressed) snd_pcm_htimestamp error: %s",
# 2799|   					state->name, suppressed, snd_strerror(res));
# 2800|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def382]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2820: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2818|   			} else if (state->htimestamp_max_errors) {
# 2819|   				if (++state->htimestamp_error > state->htimestamp_max_errors) {
# 2820|-> 					spa_log_error(state->log, "%s: wrong htimestamps from driver, disabling",
# 2821|   						state->name);
# 2822|   					state->htimestamp_error = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def383]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2826: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2824|   				}
# 2825|   				else if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2826|-> 					spa_log_warn(state->log, "%s: (%d suppressed) impossible htimestamp diff:%"PRIi64,
# 2827|   						state->name, suppressed, diff);
# 2828|   				}

Error: CPPCHECK_WARNING (CWE-190): [#def384]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2892: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2890|   	if (SPA_UNLIKELY(diff != 0)) {
# 2891|   		err -= diff;
# 2892|-> 		spa_log_trace(state->log, "%p: follower:%d quantum change %d -> %d (%d) %f",
# 2893|   				state, follower, state->last_threshold, state->threshold, diff, err);
# 2894|   		state->last_threshold = state->threshold;

Error: CPPCHECK_WARNING (CWE-190): [#def385]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2929: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2927|   		bw = (fabs(state->err_avg) + sqrt(fabs(state->err_var)))/1000.0;
# 2928|   
# 2929|-> 		spa_log_debug(state->log, "%s: follower:%d match:%d rate:%f "
# 2930|   				"bw:%f thr:%u del:%ld target:%ld err:%f max_err:%f max_resync: %f var:%f:%f:%f",
# 2931|   				state->name, follower, state->matching,

Error: CPPCHECK_WARNING (CWE-190): [#def386]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2985: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2983|   		return -ENOTSUP;
# 2984|   
# 2985|-> 	spa_log_debug(state->log, "driver clock:'%s' our clock:'%s'",
# 2986|   			state->position->clock.name, state->clock_name);
# 2987|   

Error: CPPCHECK_WARNING (CWE-190): [#def387]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:2997: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2995|   	recalc_headroom(state);
# 2996|   
# 2997|-> 	spa_log_info(state->log, "driver clock:'%s'@%d our clock:'%s'@%d matching:%d resample:%d",
# 2998|   			state->position->clock.name, state->driver_rate.denom,
# 2999|   			state->clock_name, state->rate,

Error: CPPCHECK_WARNING (CWE-190): [#def388]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3041: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3039|   	if (SPA_UNLIKELY((state->driver_duration != target_duration) ||
# 3040|   	    (state->driver_rate.denom != target_rate.denom))) {
# 3041|-> 		spa_log_info(state->log, "%p: follower:%d duration:%u->%"PRIu64" rate:%d->%d",
# 3042|   				state, state->following, state->driver_duration, target_duration,
# 3043|   				state->driver_rate.denom, target_rate.denom);

Error: CPPCHECK_WARNING (CWE-190): [#def389]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3067: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3065|   
# 3066|   	if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
# 3067|-> 		spa_log_error(state->log, "get_status error: %s", spa_strerror(res));
# 3068|   		state->next_time += (uint64_t)(state->threshold * 1e9 / state->rate);
# 3069|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def390]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3073: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3071|   
# 3072|   	if (SPA_UNLIKELY(!following && state->alsa_started && delay > target + state->max_error)) {
# 3073|-> 		spa_log_trace(state->log, "%p: early wakeup %ld %lu %lu", state,
# 3074|   				avail, delay, target);
# 3075|   		if (delay > target * 3)

Error: CPPCHECK_WARNING (CWE-190): [#def391]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3096: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3094|   					lev = SPA_LOG_LEVEL_DEBUG;
# 3095|   
# 3096|-> 				spa_log_lev(state->log, lev, "%s: follower avail:%lu delay:%ld "
# 3097|   						"target:%ld thr:%u, resync (%d suppressed)",
# 3098|   						state->name, avail, delay,

Error: CPPCHECK_WARNING (CWE-190): [#def392]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3129: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3127|   	if (state->use_mmap && frames > 0) {
# 3128|   		if (SPA_UNLIKELY((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &frames)) < 0)) {
# 3129|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 3130|   					state->name, snd_strerror(res));
# 3131|   			alsa_recover(state);

Error: CPPCHECK_WARNING (CWE-190): [#def393]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3203: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3201|   		if (SPA_UNLIKELY((commitres = snd_pcm_mmap_commit(hndl, offset, written)) < 0)) {
# 3202|   			if (commitres == -EPIPE || commitres == -ESTRPIPE) {
# 3203|-> 				spa_log_warn(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 3204|   						state->name, snd_strerror(commitres));
# 3205|   			} else {

Error: CPPCHECK_WARNING (CWE-190): [#def394]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3206: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3204|   						state->name, snd_strerror(commitres));
# 3205|   			} else {
# 3206|-> 				spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 3207|   						state->name, snd_strerror(commitres));
# 3208|   				return res;

Error: CPPCHECK_WARNING (CWE-190): [#def395]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3212: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3210|   		}
# 3211|   		if (commitres > 0 && written != (snd_pcm_uframes_t) commitres) {
# 3212|-> 			spa_log_warn(state->log, "%s: mmap_commit wrote %ld instead of %ld",
# 3213|   				     state->name, commitres, written);
# 3214|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def396]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3259: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3257|   
# 3258|   	if (spa_list_is_empty(&state->free)) {
# 3259|-> 		spa_log_warn(state->log, "%s: no more buffers", state->name);
# 3260|   		total_frames = frames;
# 3261|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def397]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3332|   
# 3333|   	if (SPA_UNLIKELY((res = get_status(state, current_time, &avail, &delay, &target)) < 0)) {
# 3334|-> 		spa_log_error(state->log, "get_status error: %s", spa_strerror(res));
# 3335|   		state->next_time += (uint64_t)(state->threshold * 1e9 / state->rate);
# 3336|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def398]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3340: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3338|   
# 3339|   	if (SPA_UNLIKELY(!following && avail < state->read_size)) {
# 3340|-> 		spa_log_trace(state->log, "%p: early wakeup %ld %ld %ld %d", state,
# 3341|   				delay, avail, target, state->read_size);
# 3342|   		state->next_time = current_time + (state->read_size - avail) * SPA_NSEC_PER_SEC /

Error: CPPCHECK_WARNING (CWE-190): [#def399]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3363: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3361|   					lev = SPA_LOG_LEVEL_DEBUG;
# 3362|   
# 3363|-> 				spa_log_lev(state->log, lev, "%s: follower delay:%ld target:%ld thr:%u "
# 3364|   						"resample:%d, resync (%d suppressed)", state->name, delay,
# 3365|   						target, state->threshold, state->resample, suppressed);

Error: CPPCHECK_WARNING (CWE-190): [#def400]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3400: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3398|   		avail = state->buffer_frames;
# 3399|   		if ((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &avail)) < 0) {
# 3400|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 3401|   					state->name, snd_strerror(res));
# 3402|   			alsa_recover(state);

Error: CPPCHECK_WARNING (CWE-190): [#def401]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3432: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3430|   				lev = SPA_LOG_LEVEL_INFO;
# 3431|   
# 3432|-> 			spa_log_lev(state->log, lev, "%s: snd_pcm_mmap_commit error %lu %lu %lu: %s",
# 3433|   					state->name, frames, avail, read, snd_strerror(commitres));
# 3434|   			if (commitres != -EPIPE && commitres != -ESTRPIPE)

Error: CPPCHECK_WARNING (CWE-190): [#def402]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3438: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3436|   		}
# 3437|   		if (commitres > 0 && read != (snd_pcm_uframes_t) commitres) {
# 3438|-> 			spa_log_warn(state->log, "%s: mmap_commit read %ld instead of %ld",
# 3439|   				     state->name, commitres, read);
# 3440|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def403]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3468: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3466|   
# 3467|   	if (SPA_UNLIKELY(spa_list_is_empty(&state->free))) {
# 3468|-> 		spa_log_warn(state->log, "%s: no more buffers", state->name);
# 3469|   		return -EPIPE;
# 3470|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def404]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3616: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3614|   	if (SPA_UNLIKELY(err = snd_pcm_poll_descriptors_revents(state->hndl,
# 3615|   					state->pfds, state->n_fds, &revents))) {
# 3616|-> 		spa_log_error(state->log, "Could not look up revents: %s",
# 3617|   				snd_strerror(err));
# 3618|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def405]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3646: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3644|   			 * in the same epoll wakeup cycle */
# 3645|   			if (res != -EAGAIN)
# 3646|-> 				spa_log_warn(state->log, "%p: error reading timerfd: %s",
# 3647|   						state, spa_strerror(res));
# 3648|   			return;

Error: CPPCHECK_WARNING (CWE-190): [#def406]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3658: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3656|   	    current_time > state->next_time + SPA_NSEC_PER_SEC) {
# 3657|   		if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 3658|-> 			spa_log_error(state->log, "%s: impossible timeout %"
# 3659|   				PRIu64" %"PRIu64" %"PRIi64" %d %"PRIi64" (%d suppressed)",
# 3660|   				state->name, current_time, state->next_time,

Error: CPPCHECK_WARNING (CWE-190): [#def407]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3706: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3704|   				spa_list_append(&state->driver->rt.followers, &rt->driver_link);
# 3705|   			rt->driver = state->driver;
# 3706|-> 			spa_log_debug(state->log, "state:%p -> driver:%p", state, state->driver);
# 3707|   
# 3708|   			if (state->linked && state->matching)

Error: CPPCHECK_WARNING (CWE-190): [#def408]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3745: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3743|   
# 3744|   	if (check_position_config(state, true) < 0) {
# 3745|-> 		spa_log_error(state->log, "%s: invalid position config", state->name);
# 3746|   		return -EIO;
# 3747|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def409]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3789: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3787|   		err = snd_pcm_poll_descriptors_count(state->hndl);
# 3788|   		if (err < 0) {
# 3789|-> 			spa_log_error(state->log, "Could not get poll descriptor count: %s",
# 3790|   					snd_strerror(err));
# 3791|   			return err;

Error: CPPCHECK_WARNING (CWE-190): [#def410]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3794: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3792|   		}
# 3793|   		if (err > MAX_POLL) {
# 3794|-> 			spa_log_error(state->log, "Unsupported poll descriptor count: %d", err);
# 3795|   			return -EIO;
# 3796|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def411]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3800: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3798|   
# 3799|   		if ((err = snd_pcm_poll_descriptors(state->hndl, state->pfds, state->n_fds)) < 0) {
# 3800|-> 			spa_log_error(state->log, "Could not get poll descriptors: %s",
# 3801|   					snd_strerror(err));
# 3802|   			return err;

Error: CPPCHECK_WARNING (CWE-190): [#def412]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3866: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3864|   
# 3865|   	if (driver != state->driver) {
# 3866|-> 		spa_log_debug(state->log, "%p: reassign driver %p->%p", state, state->driver, driver);
# 3867|   		if (state->driver != NULL)
# 3868|   			spa_list_remove(&state->driver_link);

Error: CPPCHECK_WARNING (CWE-190): [#def413]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3875: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3873|   	}
# 3874|   	if (following != state->following) {
# 3875|-> 		spa_log_debug(state->log, "%p: reassign follower %d->%d", state, state->following, following);
# 3876|   		state->following = following;
# 3877|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def414]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3886: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3884|   	freewheel = pos != NULL && SPA_FLAG_IS_SET(pos->clock.flags, SPA_IO_CLOCK_FLAG_FREEWHEEL);
# 3885|   	if (state->freewheel != freewheel) {
# 3886|-> 		spa_log_debug(state->log, "%p: freewheel %d->%d", state, state->freewheel, freewheel);
# 3887|   		state->freewheel = freewheel;
# 3888|   		if (state->started) {

Error: CPPCHECK_WARNING (CWE-190): [#def415]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3906: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3904|   		return 0;
# 3905|   
# 3906|-> 	spa_log_debug(state->log, "%p: pause", state);
# 3907|   
# 3908|   	state->started = false;

Error: CPPCHECK_WARNING (CWE-190): [#def416]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3970: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3968|   			}
# 3969|   		}
# 3970|-> 		spa_node_emit_info(&state->hooks, &state->info);
# 3971|   
# 3972|   		state->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def417]
pipewire-1.5.81/spa/plugins/alsa/alsa-pcm.c:3996: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3994|   			}
# 3995|   		}
# 3996|-> 		spa_node_emit_port_info(&state->hooks,
# 3997|   				state->stream == SND_PCM_STREAM_PLAYBACK ? SPA_DIRECTION_INPUT : SPA_DIRECTION_OUTPUT,
# 3998|   				0, &state->port_info);

Error: CPPCHECK_WARNING (CWE-190): [#def418]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  111|   		goto next;
#  112|   
#  113|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  114|   
#  115|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def419]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:210: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  208|   	if (this->info.change_mask) {
#  209|   		this->info.props = &SPA_DICT_INIT_ARRAY(node_info_items);
#  210|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  211|   		this->info.change_mask = old;
#  212|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def420]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:289: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  287|   		port->info.props = &SPA_DICT_INIT(items, n_items);
#  288|   
#  289|-> 		spa_node_emit_port_info(&this->hooks,
#  290|   				port->direction, port->id, &port->info);
#  291|   		port->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def421]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:344: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  342|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  343|   
#  344|-> 	spa_node_emit_result(&this->hooks, seq, 0, 0, NULL);
#  345|   
#  346|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def422]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  391|   	spa_list_remove(&port->link);
#  392|   
#  393|-> 	spa_node_emit_port_info(&state->hooks,
#  394|   			port->direction, port->id, NULL);
#  395|   	spa_zero(*port);

Error: CPPCHECK_WARNING (CWE-190): [#def423]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:441: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  439|   
#  440|   	if (info == NULL) {
#  441|-> 		spa_log_debug(state->log, "free port %d.%d", addr->client, addr->port);
#  442|   		if (port)
#  443|   			free_port(state, stream, port);

Error: CPPCHECK_WARNING (CWE-190): [#def424]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:446: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  444|   	} else {
#  445|   		if (port == NULL && (caps & stream->caps) == stream->caps) {
#  446|-> 			spa_log_debug(state->log, "new port %d.%d", addr->client, addr->port);
#  447|   			port = alloc_port(state, stream);
#  448|   			if (port == NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def425]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:453: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  451|   		} else if (port != NULL) {
#  452|   			if ((caps & stream->caps) != stream->caps) {
#  453|-> 				spa_log_debug(state->log, "free port %d.%d", addr->client, addr->port);
#  454|   				free_port(state, stream, port);
#  455|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def426]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:457: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  455|   			}
#  456|   			else {
#  457|-> 				spa_log_debug(state->log, "update port %d.%d", addr->client, addr->port);
#  458|   				port->info.change_mask = SPA_PORT_CHANGE_MASK_PROPS;
#  459|   				emit_port_info(state, port, false);

Error: CPPCHECK_WARNING (CWE-190): [#def427]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:602: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  600|   		goto next;
#  601|   
#  602|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  603|   
#  604|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def428]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:720: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  718|   	port = GET_PORT(this, direction, port_id);
#  719|   
#  720|-> 	spa_log_debug(this->log, "%p: port %d.%d buffers:%d format:%d", this,
#  721|   			direction, port_id, n_buffers, port->have_format);
#  722|   

Error: CPPCHECK_WARNING (CWE-190): [#def429]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:741: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  739|   
#  740|   		if (d[0].data == NULL) {
#  741|-> 			spa_log_error(this->log, "%p: need mapped memory", this);
#  742|   			return -EINVAL;
#  743|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def430]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:803: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  801|   	info.size = size;
#  802|   
#  803|-> 	spa_log_debug(this->log, "%p: io %d.%d %d %p %zd", this,
#  804|   			direction, port_id, id, data, size);
#  805|   

Error: CPPCHECK_WARNING (CWE-190): [#def431]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:930: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  928|   
#  929|   	if (this->data_loop == NULL) {
#  930|-> 		spa_log_error(this->log, "a data loop is needed");
#  931|   		return -EINVAL;
#  932|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def432]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq-bridge.c:934: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  932|   	}
#  933|   	if (this->data_system == NULL) {
#  934|-> 		spa_log_error(this->log, "a data system is needed");
#  935|   		return -EINVAL;
#  936|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def433]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq.c:32: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   30|   	int res;
#   31|   
#   32|-> 	spa_log_debug(state->log, "%p: ALSA seq open '%s' duplex", state, props->device);
#   33|   
#   34|   	if ((res = snd_seq_open(&conn->hndl,

Error: CPPCHECK_WARNING (CWE-190): [#def434]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq.c:41: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   39|   
#   40|   	if (!state->ump) {
#   41|-> 		spa_log_info(state->log, "%p: ALSA UMP MIDI disabled", state);
#   42|   		return 0;
#   43|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def435]
pipewire-1.5.81/spa/plugins/alsa/alsa-seq.c:69: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   67|   
#   68|   	if (res < 0) {
#   69|-> 		spa_log_lev(state->log, (probe_ump ? SPA_LOG_LEVEL_INFO : SPA_LOG_LEVEL_ERROR),
#   70|   				"%p: ALSA failed to enable UMP MIDI: %s", state, snd_strerror(res));
#   71|   		if (!probe_ump) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def436]
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:432:33: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:474:12: enter_function: entry to ‘emit_added_object_info’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:488:20: call_function: calling ‘check_pcm_device_availability’ from ‘emit_added_object_info’
#  430|   
#  431|   			if (!spa_strstartswith(buf, "closed")) {
#  432|-> 				spa_log_debug(this->log, "card %u pcm device %s busy",
#  433|   						card->card_nr, entry->d_name);
#  434|   				res = -EBUSY;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def437]
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:432:33: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:474:12: enter_function: entry to ‘emit_added_object_info’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:488:20: call_function: calling ‘check_pcm_device_availability’ from ‘emit_added_object_info’
#  430|   
#  431|   			if (!spa_strstartswith(buf, "closed")) {
#  432|-> 				spa_log_debug(this->log, "card %u pcm device %s busy",
#  433|   						card->card_nr, entry->d_name);
#  434|   				res = -EBUSY;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def438]
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:437:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘f’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:474:12: enter_function: entry to ‘emit_added_object_info’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:488:20: call_function: calling ‘check_pcm_device_availability’ from ‘emit_added_object_info’
#  435|   				goto done;
#  436|   			}
#  437|-> 			spa_log_debug(this->log, "card %u pcm device %s free",
#  438|   					card->card_nr, entry->d_name);
#  439|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def439]
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:437:25: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:474:12: enter_function: entry to ‘emit_added_object_info’
pipewire-1.5.81/spa/plugins/alsa/alsa-udev.c:488:20: call_function: calling ‘check_pcm_device_availability’ from ‘emit_added_object_info’
#  435|   				goto done;
#  436|   			}
#  437|-> 			spa_log_debug(this->log, "card %u pcm device %s free",
#  438|   					card->card_nr, entry->d_name);
#  439|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def440]
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:43:23: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:29:9: branch_true: following ‘true’ branch (when ‘card_nr >= 0’)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:30:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:30:9: branch_true: following ‘true’ branch (when ‘device_nr >= 0’)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:31:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:31:9: branch_true: following ‘true’ branch (when ‘log’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:33:19: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:33:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:34:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:39:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:43:23: danger: ‘context’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#   41|   	snprintf(fn, sizeof(fn), "/dev/snd/comprC%uD%u", card_nr, device_nr);
#   42|   
#   43|-> 	context->fd = open(fn, O_WRONLY);
#   44|   	if (context->fd < 0) {
#   45|   		spa_log_error(context->log, "could not open device \"%s\": %s (%d)", fn, strerror(errno), errno);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def441]
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:45:17: warning[-Wanalyzer-malloc-leak]: leak of ‘context’
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:24:38: enter_function: entry to ‘compress_offload_api_open’
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:29:9: branch_true: following ‘true’ branch (when ‘card_nr >= 0’)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:30:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:30:9: branch_true: following ‘true’ branch (when ‘device_nr >= 0’)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:31:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:31:9: branch_true: following ‘true’ branch (when ‘log’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:33:19: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:33:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:34:12: branch_false: following ‘false’ branch (when ‘context’ is non-NULL)...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:39:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:44:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:45:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:45:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘compress_offload_api_open’
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:45:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/alsa/compress-offload-api.c:45:17: danger: ‘context’ leaks here; was allocated at [(8)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/7)
#   43|   	context->fd = open(fn, O_WRONLY);
#   44|   	if (context->fd < 0) {
#   45|-> 		spa_log_error(context->log, "could not open device \"%s\": %s (%d)", fn, strerror(errno), errno);
#   46|   		goto error;
#   47|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def442]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:216: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  214|   	result.index = result.next;
#  215|   
#  216|-> 	spa_log_debug(this->log, "%p: %d id:%u", this, seq, id);
#  217|   
#  218|   	spa_pod_builder_reset(&b.b, &state);

Error: CPPCHECK_WARNING (CWE-190): [#def443]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:267: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  265|   		return res;
#  266|   
#  267|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  268|   	count++;
#  269|   

Error: CPPCHECK_WARNING (CWE-190): [#def444]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:282: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  280|   	size_t rate_match_size;
#  281|   
#  282|-> 	spa_log_debug(this->log, "%p: controls", this);
#  283|   
#  284|   	spa_zero(this->io_rate_match);

Error: CPPCHECK_WARNING (CWE-190): [#def445]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:299: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  297|   			SPA_IO_RateMatch,
#  298|   			rate_match, rate_match_size)) < 0) {
#  299|-> 		spa_log_debug(this->log, "%p: set RateMatch on follower disabled %d %s", this,
#  300|   			res, spa_strerror(res));
#  301|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def446]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:307: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  305|   				SPA_IO_RateMatch,
#  306|   				rate_match, rate_match_size)) < 0) {
#  307|-> 			spa_log_warn(this->log, "%p: set RateMatch on target failed %d %s", this,
#  308|   				res, spa_strerror(res));
#  309|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def447]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:329: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  327|   			this->direction, 0,
#  328|   			SPA_IO_Buffers, data, size)) < 0) {
#  329|-> 		spa_log_warn(this->log, "%p: set Buffers on follower failed %d %s", this,
#  330|   			res, spa_strerror(res));
#  331|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def448]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:336: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  334|   			SPA_DIRECTION_REVERSE(this->direction), 0,
#  335|   			SPA_IO_Buffers, data, size)) < 0) {
#  336|-> 		spa_log_warn(this->log, "%p: set Buffers on convert failed %d %s", this,
#  337|   			res, spa_strerror(res));
#  338|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def449]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:348: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  346|   	uint64_t old = full ? this->info.change_mask : 0;
#  347|   
#  348|-> 	spa_log_debug(this->log, "%p: info full:%d change:%08"PRIx64,
#  349|   			this, full, this->info.change_mask);
#  350|   

Error: CPPCHECK_WARNING (CWE-190): [#def450]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:371: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  369|   					this->params[i].flags ^= SPA_PARAM_INFO_SERIAL;
#  370|   					this->params[i].user = 0;
#  371|-> 					spa_log_debug(this->log, "param %d flags:%08x",
#  372|   							i, this->params[i].flags);
#  373|   				}

Error: CPPCHECK_WARNING (CWE-190): [#def451]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:376: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  374|   			}
#  375|   		}
#  376|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  377|   		this->info.change_mask = old;
#  378|   		spa_zero(this->info.props);

Error: CPPCHECK_WARNING (CWE-190): [#def452]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:392: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  390|   	int res, count = 0;
#  391|   
#  392|-> 	spa_log_error(this->log, "params %s: %d:%d (%s) %s",
#  393|   			spa_debug_type_find_name(spa_type_param, id),
#  394|   			direction, port_id, debug, err ? spa_strerror(err) : "no matching params");

Error: CPPCHECK_WARNING (CWE-190): [#def453]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:399: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  397|   
#  398|   	if (filter) {
#  399|-> 		spa_log_error(this->log, "with this filter:");
#  400|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, filter);
#  401|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def454]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  400|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, filter);
#  401|   	} else {
#  402|-> 		spa_log_error(this->log, "there was no filter");
#  403|   	}
#  404|   

Error: CPPCHECK_WARNING (CWE-190): [#def455]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:414: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  412|   		if (res != 1) {
#  413|   			if (res < 0)
#  414|-> 				spa_log_error(this->log, "  error: %s", spa_strerror(res));
#  415|   			break;
#  416|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def456]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:417: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  415|   			break;
#  416|   		}
#  417|-> 		spa_log_error(this->log, "unmatched %s %d:", debug, count);
#  418|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, param);
#  419|   		count++;

Error: CPPCHECK_WARNING (CWE-190): [#def457]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:422: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  420|   	}
#  421|   	if (count == 0)
#  422|-> 		spa_log_error(this->log, "could not get any %s", debug);
#  423|   
#  424|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def458]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:443: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  441|   	uint32_t alloc_flags;
#  442|   
#  443|-> 	spa_log_debug(this->log, "%p: n_buffers:%d", this, this->n_buffers);
#  444|   
#  445|   	if (this->follower == this->target)

Error: CPPCHECK_WARNING (CWE-190): [#def459]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:511: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  509|   		buffers = SPA_MAX(2u, buffers);
#  510|   
#  511|-> 	spa_log_info(this->log, "%p: buffers:%d, blocks:%d, size:%d, stride:%d align:%d %d:%d",
#  512|   			this, buffers, blocks, size, stride, align, follower_alloc, conv_alloc);
#  513|   

Error: CPPCHECK_WARNING (CWE-190): [#def460]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:578: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  576|   	int res;
#  577|   
#  578|-> 	spa_log_debug(this->log, "%p: configure format:", this);
#  579|   
#  580|   	if (format == NULL) {

Error: CPPCHECK_WARNING (CWE-190): [#def461]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:639: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  637|   	spa_pod_builder_init(&b, buffer, sizeof(buffer));
#  638|   
#  639|-> 	spa_log_debug(this->log, "%p: configure convert %p", this, this->target);
#  640|   
#  641|   	param = spa_pod_builder_add_object(&b,

Error: CPPCHECK_WARNING (CWE-190): [#def462]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:663: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  661|   	int res;
#  662|   
#  663|-> 	spa_log_debug(this->log, "%p: %d:%d", this, direction, port_id);
#  664|   
#  665|   	if (this->target == this->follower)

Error: CPPCHECK_WARNING (CWE-190): [#def463]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:700: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  698|   	int res;
#  699|   
#  700|-> 	spa_log_debug(this->log, "%p: %d:%d", this, direction, port_id);
#  701|   
#  702|   	if (this->target == this->follower)

Error: CPPCHECK_WARNING (CWE-190): [#def464]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:735: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  733|   	bool old_passthrough = this->mode == SPA_PARAM_PORT_CONFIG_MODE_passthrough;
#  734|   
#  735|-> 	spa_log_debug(this->log, "%p: passthrough mode %d", this, passthrough);
#  736|   
#  737|   	if (!passthrough && this->convert == NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def465]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:782: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  780|   	emit_node_info(this, false);
#  781|   
#  782|-> 	spa_log_debug(this->log, "%p: passthrough mode %d", this, passthrough);
#  783|   
#  784|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def466]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:794: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  792|   	struct spa_audio_info info = { 0 };
#  793|   
#  794|-> 	spa_log_debug(this->log, "%p: set param %d", this, id);
#  795|   
#  796|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def467]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:799: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  797|   	case SPA_PARAM_Format:
#  798|   		if (this->started) {
#  799|-> 			spa_log_error(this->log, "%p: cannot set Format param: "
#  800|   					"node already started", this);
#  801|   			return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def468]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:804: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  802|   		}
#  803|   		if (param == NULL) {
#  804|-> 			spa_log_error(this->log, "%p: attempted to set NULL Format POD", this);
#  805|   			return -EINVAL;
#  806|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def469]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:809: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  807|   
#  808|   		if (spa_format_audio_parse(param, &info) < 0) {
#  809|-> 			spa_log_error(this->log, "%p: cannot set Format param: "
#  810|   					"parsing the POD failed", this);
#  811|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def470]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:817: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  815|   									spa_type_media_subtype,
#  816|   									"<unknown>");
#  817|-> 			spa_log_error(this->log, "%p: cannot set Format param: "
#  818|   					"expected raw subtype, got subtype \"%s\"", this, subtype_name);
#  819|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def471]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:832: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  830|   
#  831|   		if (this->started) {
#  832|-> 			spa_log_error(this->log, "%p: cannot set PortConfig param: "
#  833|   					"node already started", this);
#  834|   			return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def472]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:842: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  840|   				SPA_PARAM_PORT_CONFIG_mode,		SPA_POD_Id(&mode),
#  841|   				SPA_PARAM_PORT_CONFIG_format,		SPA_POD_OPT_Pod(&format)) < 0) {
#  842|-> 			spa_log_error(this->log, "%p: cannot set PortConfig param: "
#  843|   					"parsing the POD failed", this);
#  844|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def473]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:860: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  858|   										spa_type_media_subtype,
#  859|   										"<unknown>");
#  860|-> 				spa_log_error(this->log, "%p: cannot set PortConfig param: "
#  861|   						"subtype \"%s\" is not supported", this, subtype_name);
#  862|   				return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-457): [#def474]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:868: error[uninitvar]: Uninitialized variable: mode
#  866|   		}
#  867|   
#  868|-> 		switch (mode) {
#  869|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  870|   			spa_log_error(this->log, "%p: cannot set PortConfig param: "

Error: CPPCHECK_WARNING (CWE-190): [#def475]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:870: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  868|   		switch (mode) {
#  869|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  870|-> 			spa_log_error(this->log, "%p: cannot set PortConfig param: "
#  871|   					"\"none\" config mode is not supported", this);
#  872|   			return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-190): [#def476]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:883: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  881|   			break;
#  882|   		default:
#  883|-> 			spa_log_error(this->log, "%p: invalid config mode when setting PortConfig param",
#  884|   					this);
#  885|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def477]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:984: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  982|   	int res, fres;
#  983|   
#  984|-> 	spa_log_debug(this->log, "%p: have_format:%d recheck:%d", this, this->have_format,
#  985|   			this->recheck_format);
#  986|   

Error: CPPCHECK_WARNING (CWE-190): [#def478]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1069: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1067|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1068|   
# 1069|-> 	spa_log_debug(this->log, "%p: command %d", this, SPA_NODE_COMMAND_ID(command));
# 1070|   
# 1071|   	switch (SPA_NODE_COMMAND_ID(command)) {

Error: CPPCHECK_WARNING (CWE-190): [#def479]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1073: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1071|   	switch (SPA_NODE_COMMAND_ID(command)) {
# 1072|   	case SPA_NODE_COMMAND_Start:
# 1073|-> 		spa_log_debug(this->log, "%p: starting %d", this, this->started);
# 1074|   		if ((res = negotiate_format(this)) < 0)
# 1075|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def480]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1080: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1078|   		break;
# 1079|   	case SPA_NODE_COMMAND_Suspend:
# 1080|-> 		spa_log_debug(this->log, "%p: suspending", this);
# 1081|   		break;
# 1082|   	case SPA_NODE_COMMAND_Pause:

Error: CPPCHECK_WARNING (CWE-190): [#def481]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1083: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1081|   		break;
# 1082|   	case SPA_NODE_COMMAND_Pause:
# 1083|-> 		spa_log_debug(this->log, "%p: pausing", this);
# 1084|   		break;
# 1085|   	case SPA_NODE_COMMAND_Flush:

Error: CPPCHECK_WARNING (CWE-190): [#def482]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1086: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1084|   		break;
# 1085|   	case SPA_NODE_COMMAND_Flush:
# 1086|-> 		spa_log_debug(this->log, "%p: flushing", this);
# 1087|   		this->io_buffers.status = SPA_STATUS_OK;
# 1088|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def483]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1097: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1095|   		res = 0;
# 1096|   	if (res < 0) {
# 1097|-> 		spa_log_error(this->log, "%p: can't send command %d: %s",
# 1098|   				this, SPA_NODE_COMMAND_ID(command),
# 1099|   				spa_strerror(res));

Error: CPPCHECK_WARNING (CWE-190): [#def484]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1104: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1102|   	if (res >= 0 && this->target != this->follower) {
# 1103|   		if ((res = spa_node_send_command(this->follower, command)) < 0) {
# 1104|-> 			spa_log_error(this->log, "%p: can't send command %d: %s",
# 1105|   					this, SPA_NODE_COMMAND_ID(command),
# 1106|   					spa_strerror(res));

Error: CPPCHECK_WARNING (CWE-190): [#def485]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1112: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1110|   	case SPA_NODE_COMMAND_Start:
# 1111|   		if (res < 0) {
# 1112|-> 			spa_log_debug(this->log, "%p: start failed", this);
# 1113|   			this->ready = false;
# 1114|   			configure_format(this, 0, NULL);

Error: CPPCHECK_WARNING (CWE-190): [#def486]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1117: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1115|   		} else {
# 1116|   			this->started = true;
# 1117|-> 			spa_log_debug(this->log, "%p: started", this);
# 1118|   		}
# 1119|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def487]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1125: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1123|   		this->warned = false;
# 1124|   		this->ready = false;
# 1125|-> 		spa_log_debug(this->log, "%p: suspended", this);
# 1126|   		break;
# 1127|   	case SPA_NODE_COMMAND_Pause:

Error: CPPCHECK_WARNING (CWE-190): [#def488]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1131: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1129|   		this->warned = false;
# 1130|   		this->ready = false;
# 1131|-> 		spa_log_debug(this->log, "%p: paused", this);
# 1132|   		break;
# 1133|   	case SPA_NODE_COMMAND_Flush:

Error: CPPCHECK_WARNING (CWE-190): [#def489]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1134: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1132|   		break;
# 1133|   	case SPA_NODE_COMMAND_Flush:
# 1134|-> 		spa_log_debug(this->log, "%p: flushed", this);
# 1135|   		break;
# 1136|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def490]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1145: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1143|   	uint32_t i;
# 1144|   
# 1145|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64, this,
# 1146|   			info->change_mask);
# 1147|   

Error: CPPCHECK_WARNING (CWE-190): [#def491]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1182: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1180|   
# 1181|   			this->params[idx].user++;
# 1182|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1183|   		}
# 1184|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def492]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1199: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1197|   		return;
# 1198|   
# 1199|-> 	spa_log_debug(this->log, "%p: convert port info %s %p %08"PRIx64, this,
# 1200|   			this->direction == SPA_DIRECTION_INPUT ?
# 1201|   				"Input" : "Output", info, info->change_mask);

Error: CPPCHECK_WARNING (CWE-190): [#def493]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1233: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1231|   				res = recalc_latency(this, this->target, direction, port_id, this->follower);
# 1232|   				this->in_recalc--;
# 1233|-> 				spa_log_debug(this->log, "latency: %d (%s)", res,
# 1234|   						spa_strerror(res));
# 1235|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def494]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1240: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1238|   				res = recalc_tag(this, this->target, direction, port_id, this->follower);
# 1239|   				this->in_recalc--;
# 1240|-> 				spa_log_debug(this->log, "tag: %d (%s)", res,
# 1241|   						spa_strerror(res));
# 1242|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def495]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1243: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1241|   						spa_strerror(res));
# 1242|   			}
# 1243|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1244|   		}
# 1245|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def496]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1272: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1270|   	}
# 1271|   
# 1272|-> 	spa_log_debug(this->log, "%p: port info %d:%d", this,
# 1273|   			direction, port_id);
# 1274|   

Error: CPPCHECK_WARNING (CWE-190): [#def497]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1276: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1274|   
# 1275|   	if (this->target != this->follower)
# 1276|-> 		spa_node_emit_port_info(&this->hooks, direction, port_id, info);
# 1277|   }
# 1278|   

Error: CPPCHECK_WARNING (CWE-190): [#def498]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1286: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1284|   		return;
# 1285|   
# 1286|-> 	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1287|   	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1288|   }

Error: CPPCHECK_WARNING (CWE-190): [#def499]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1287: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1285|   
# 1286|   	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1287|-> 	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1288|   }
# 1289|   

Error: CPPCHECK_WARNING (CWE-190): [#def500]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1300|   	uint32_t i;
# 1301|   
# 1302|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64" %d:%d", this,
# 1303|   			info->change_mask, info->max_input_ports, info->max_output_ports);
# 1304|   

Error: CPPCHECK_WARNING (CWE-190): [#def501]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1325: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1323|   			this->async && this->follower == this->target);
# 1324|   
# 1325|-> 	spa_log_debug(this->log, "%p: follower info %s", this,
# 1326|   			this->direction == SPA_DIRECTION_INPUT ?
# 1327|   				"Input" : "Output");

Error: CPPCHECK_WARNING (CWE-190): [#def502]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1364: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1362|   
# 1363|   			this->params[idx].user++;
# 1364|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1365|   		}
# 1366|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def503]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1385: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1383|   
# 1384|   	if (this->follower_removing) {
# 1385|-> 	      spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
# 1386|   	      return;
# 1387|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def504]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1391: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1389|   	this->follower_port_flags = info->flags;
# 1390|   
# 1391|-> 	spa_log_debug(this->log, "%p: follower port info %s %p %08"PRIx64" recalc:%u", this,
# 1392|   			this->direction == SPA_DIRECTION_INPUT ?
# 1393|   				"Input" : "Output", info, info->change_mask,

Error: CPPCHECK_WARNING (CWE-190): [#def505]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1432: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1430|   			if (idx == IDX_Latency && this->in_recalc == 0) {
# 1431|   				res = recalc_latency(this, this->follower, direction, port_id, this->target);
# 1432|-> 				spa_log_debug(this->log, "latency: %d (%s)", res,
# 1433|   						spa_strerror(res));
# 1434|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def506]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1437: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1435|   			if (idx == IDX_Tag && this->in_recalc == 0) {
# 1436|   				res = recalc_tag(this, this->follower, direction, port_id, this->target);
# 1437|-> 				spa_log_debug(this->log, "tag: %d (%s)", res,
# 1438|   						spa_strerror(res));
# 1439|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def507]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1441: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1439|   			}
# 1440|   			if (idx == IDX_EnumFormat) {
# 1441|-> 				spa_log_debug(this->log, "new formats");
# 1442|   				/* we will renegotiate when restarting */
# 1443|   				this->recheck_format = true;

Error: CPPCHECK_WARNING (CWE-190): [#def508]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1447: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1445|   
# 1446|   			this->params[idx].user++;
# 1447|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1448|   		}
# 1449|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def509]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1453: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1451|   
# 1452|   	if (this->target == this->follower)
# 1453|-> 	      spa_node_emit_port_info(&this->hooks, direction, port_id, info);
# 1454|   }
# 1455|   

Error: CPPCHECK_WARNING (CWE-190): [#def510]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1463: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1461|   		return;
# 1462|   
# 1463|-> 	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1464|   	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1465|   }

Error: CPPCHECK_WARNING (CWE-190): [#def511]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1464: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1462|   
# 1463|   	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1464|-> 	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1465|   }
# 1466|   

Error: CPPCHECK_WARNING (CWE-190): [#def512]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1471: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1469|   	struct impl *this = data;
# 1470|   
# 1471|-> 	spa_log_trace(this->log, "%p: event %d", this, SPA_EVENT_TYPE(event));
# 1472|   
# 1473|   	switch (SPA_NODE_EVENT_ID(event)) {

Error: CPPCHECK_WARNING (CWE-190): [#def513]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1477: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1475|   	case SPA_NODE_EVENT_RequestProcess:
# 1476|   		/* Forward errors and process requests */
# 1477|-> 		spa_node_emit_event(&this->hooks, event);
# 1478|   		break;
# 1479|   	default:

Error: CPPCHECK_WARNING (CWE-190): [#def514]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1514: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1512|   
# 1513|   	if (!this->ready) {
# 1514|-> 		spa_log_info(this->log, "%p: ready stopped node", this);
# 1515|   		return -EIO;
# 1516|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def515]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1578: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1576|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1577|   
# 1578|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
# 1579|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
# 1580|   

Error: CPPCHECK_WARNING (CWE-190): [#def516]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1680: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1678|   				goto next;
# 1679|   			} else {
# 1680|-> 				spa_log_error(this->log, "could not enum follower format: %s", spa_strerror(res));
# 1681|   				return res;
# 1682|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def517]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1695: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1693|   	}
# 1694|   
# 1695|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 1696|   
# 1697|   	if (++count < num)

Error: CPPCHECK_WARNING (CWE-190): [#def518]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1717: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1715|   		port_id++;
# 1716|   
# 1717|-> 	spa_log_debug(this->log, "%p: %d %u %u %u", this, seq, id, start, num);
# 1718|   
# 1719|   	/* We only need special handling for EnumFormat in convert mode */

Error: CPPCHECK_WARNING (CWE-190): [#def519]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1738: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1736|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1737|   
# 1738|-> 	spa_log_debug(this->log, " %d %d %d %d", port_id, id, direction, this->direction);
# 1739|   
# 1740|   	if (direction != this->direction)

Error: CPPCHECK_WARNING (CWE-190): [#def520]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1758: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1756|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1757|   
# 1758|-> 	spa_log_debug(this->log, "set io %d %d %d %d", port_id, id, direction, this->direction);
# 1759|   
# 1760|   	if (direction != this->direction)

Error: CPPCHECK_WARNING (CWE-190): [#def521]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1782: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1780|   		port_id++;
# 1781|   
# 1782|-> 	spa_log_debug(this->log, "%p: %d %d:%d", this,
# 1783|   			n_buffers, direction, port_id);
# 1784|   

Error: CPPCHECK_WARNING (CWE-190): [#def522]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:1809: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1807|   	if (!this->ready) {
# 1808|   		if (!this->warned)
# 1809|-> 			spa_log_warn(this->log, "%p: scheduling stopped node", this);
# 1810|   		this->warned = true;
# 1811|   		return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def523]
pipewire-1.5.81/spa/plugins/audioconvert/audioadapter.c:2177: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2175|   
# 2176|   	ret = load_converter(this, info, support, n_support);
# 2177|-> 	spa_log_info(this->log, "%p: loaded converter %s, hnd %p, convert %p", this,
# 2178|   			this->convertname, this->hnd_convert, this->convert);
# 2179|   	if (ret < 0)

Error: CPPCHECK_WARNING (CWE-190): [#def524]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:363: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  361|   			}
#  362|   		}
#  363|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  364|   		this->info.change_mask = old;
#  365|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def525]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:401: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  399|   			}
#  400|   		}
#  401|-> 		spa_node_emit_port_info(&this->hooks, port->direction, port->id, &port->info);
#  402|   		port->info.change_mask = old;
#  403|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def526]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:481: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  479|   	spa_list_init(&port->queue);
#  480|   
#  481|-> 	spa_log_debug(this->log, "%p: add port %d:%d position:%s %d %d %d",
#  482|   			this, direction, port_id, port->position, is_dsp,
#  483|   			is_monitor, is_control);

Error: CPPCHECK_WARNING (CWE-190): [#def527]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:493: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  491|   		return -ENOENT;
#  492|   	port->valid = false;
#  493|-> 	spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
#  494|   	return 0;
#  495|   }

Error: CPPCHECK_WARNING (CWE-190): [#def528]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:992: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  990|   		goto next;
#  991|   
#  992|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  993|   
#  994|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def529]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1006: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1004|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1005|   
# 1006|-> 	spa_log_debug(this->log, "%p: io %d %p/%zd", this, id, data, size);
# 1007|   
# 1008|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def530]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1042: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1040|   		if ((port->is_monitor) || !port->have_latency)
# 1041|   			continue;
# 1042|-> 		spa_log_debug(this->log, "%p: combine %d", this, i);
# 1043|   		spa_latency_info_combine(&info, &port->latency[other]);
# 1044|   		have_latency = true;

Error: CPPCHECK_WARNING (CWE-190): [#def531]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1050: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1048|   	spa_process_latency_info_add(&this->latency, &info);
# 1049|   
# 1050|-> 	spa_log_debug(this->log, "%p: combined %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64, this,
# 1051|   			info.direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 1052|   			info.min_quantum, info.max_quantum,

Error: CPPCHECK_WARNING (CWE-190): [#def532]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1189: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1187|   	uint32_t i;
# 1188|   
# 1189|-> 	spa_log_debug(this->log, "free tmp %d", this->scratch_size);
# 1190|   
# 1191|   	free(this->empty);

Error: CPPCHECK_WARNING (CWE-190): [#def533]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1215: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1213|   
# 1214|   	if (maxsize > this->scratch_size) {
# 1215|-> 		spa_log_info(this->log, "resize tmp %d -> %d", this->scratch_size, maxsize);
# 1216|   
# 1217|   		if ((empty = realloc(this->empty, maxsize + MAX_ALIGN)) != NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def534]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1240|   	}
# 1241|   	if (maxports > this->scratch_ports) {
# 1242|-> 		spa_log_info(this->log, "resize ports %d -> %d", this->scratch_ports, maxports);
# 1243|   
# 1244|   		for (i = this->scratch_ports; i < maxports; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def535]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1283: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1281|   		if ((res = setup_filter_graph(impl, g, channels, position)) < 0) {
# 1282|   			g->removing = true;
# 1283|-> 			spa_log_warn(impl->log, "failed to activate graph %d: %s", g->order,
# 1284|   					spa_strerror(res));
# 1285|   		} else {

Error: CPPCHECK_WARNING (CWE-190): [#def536]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1369: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1367|   		if (g->order == order) {
# 1368|   			g->removing = true;
# 1369|-> 			spa_log_info(impl->log, "removing filter-graph order:%d", order);
# 1370|   		}
# 1371|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def537]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1394|   		insert_graph(&impl->active_graphs, pending);
# 1395|   
# 1396|-> 		spa_log_info(impl->log, "loading filter-graph order:%d", order);
# 1397|   	}
# 1398|   	if (impl->setup)

Error: CPPCHECK_WARNING (CWE-190): [#def538]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1463: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1461|   		int order = atoi(k + strlen("audioconvert.filter-graph."));
# 1462|   		if ((res = load_filter_graph(this, s, order)) < 0) {
# 1463|-> 			spa_log_warn(this->log, "Can't load filter-graph %d: %s",
# 1464|   					order, spa_strerror(res));
# 1465|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def539]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1521: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1519|   			continue;
# 1520|   
# 1521|-> 		spa_log_info(this->log, "key:'%s' val:'%s'", name, value);
# 1522|   		changed += audioconvert_set_param(this, name, value, &filter_graph_disabled);
# 1523|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def540]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1540: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1538|   	else if (vrp->volume_ramp_time) {
# 1539|   		samples = (vrp->volume_ramp_time * vrp->rate) / 1000;
# 1540|-> 		spa_log_info(this->log, "volume ramp samples calculated from time is %d", samples);
# 1541|   	}
# 1542|   	if (!samples)

Error: CPPCHECK_WARNING (CWE-190): [#def541]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1556: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1554|   		/* convert the step time which is in nano seconds to seconds */
# 1555|   		samples = (vrp->volume_ramp_step_time/1000) * (vrp->rate/1000);
# 1556|-> 		spa_log_debug(this->log, "volume ramp step samples calculated from time is %d", samples);
# 1557|   	}
# 1558|   	if (!samples)

Error: CPPCHECK_WARNING (CWE-190): [#def542]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1586: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1584|   
# 1585|   	spa_pod_builder_push_sequence(&b.b, &f[0], 0);
# 1586|-> 	spa_log_info(this->log, "generating ramp up sequence from %f to %f with a"
# 1587|   		" step value %f at scale %d", start, end, volume_step, vrp->scale);
# 1588|   	do {

Error: CPPCHECK_WARNING (CWE-190): [#def543]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1590: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1588|   	do {
# 1589|   		float vas = get_volume_at_scale(vrp, volume_accum);
# 1590|-> 		spa_log_trace(this->log, "volume accum %f", vas);
# 1591|   		spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1592|   		spa_pod_builder_add_object(&b.b,

Error: CPPCHECK_WARNING (CWE-190): [#def544]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1615: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1613|   
# 1614|   	spa_pod_builder_push_sequence(&b.b, &f[0], 0);
# 1615|-> 	spa_log_info(this->log, "generating ramp down sequence from %f to %f with a"
# 1616|   		" step value %f at scale %d", start, end, volume_step, vrp->scale);
# 1617|   	do {

Error: CPPCHECK_WARNING (CWE-190): [#def545]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1619: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1617|   	do {
# 1618|   		float vas = get_volume_at_scale(vrp, volume_accum);
# 1619|-> 		spa_log_trace(this->log, "volume accum %f", vas);
# 1620|   		spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1621|   		spa_pod_builder_add_object(&b.b,

Error: CPPCHECK_WARNING (CWE-190): [#def546]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1636: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1634|   	void *sequence = NULL;
# 1635|   	if (vrp->start == vrp->end)
# 1636|-> 		spa_log_error(this->log, "no change in volume, cannot ramp volume");
# 1637|   	else if (vrp->end > vrp->start)
# 1638|   		sequence = generate_ramp_up_seq(this, vrp, buffer, size);

Error: CPPCHECK_WARNING (CWE-190): [#def547]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1643: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1641|   
# 1642|   	if (!sequence)
# 1643|-> 		spa_log_error(this->log, "unable to generate sequence");
# 1644|   
# 1645|   	this->vol_ramp_sequence = (struct spa_pod_sequence *) sequence;

Error: CPPCHECK_WARNING (CWE-190): [#def548]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1674: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1672|   			if (!p->lock_volumes &&
# 1673|   			    spa_pod_get_float(&prop->value, &p->volume) == 0) {
# 1674|-> 				spa_log_debug(this->log, "%p new volume %f", this, p->volume);
# 1675|   				changed++;
# 1676|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def549]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1687: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1685|   		case SPA_PROP_volumeRampSamples:
# 1686|   			if (this->vol_ramp_sequence) {
# 1687|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1688|   						"applied try again", this);
# 1689|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def550]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1694: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1692|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1693|   				vrp.volume_ramp_samples = value;
# 1694|-> 				spa_log_info(this->log, "%p volume ramp samples %d", this, value);
# 1695|   				vol_ramp_params_changed++;
# 1696|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def551]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1700: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1698|   		case SPA_PROP_volumeRampStepSamples:
# 1699|   			if (this->vol_ramp_sequence) {
# 1700|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1701|   						"applied try again", this);
# 1702|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def552]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1707: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1705|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1706|   				vrp.volume_ramp_step_samples = value;
# 1707|-> 				spa_log_info(this->log, "%p volume ramp step samples is %d",
# 1708|   						this, value);
# 1709|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def553]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1713: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1711|   		case SPA_PROP_volumeRampTime:
# 1712|   			if (this->vol_ramp_sequence) {
# 1713|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1714|   						"applied try again", this);
# 1715|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def554]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1720: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1718|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1719|   				vrp.volume_ramp_time = value;
# 1720|-> 				spa_log_info(this->log, "%p volume ramp time %d", this, value);
# 1721|   				vol_ramp_params_changed++;
# 1722|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def555]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1726: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1724|   		case SPA_PROP_volumeRampStepTime:
# 1725|   			if (this->vol_ramp_sequence) {
# 1726|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1727|   						"applied try again", this);
# 1728|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def556]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1733: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1731|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1732|   				vrp.volume_ramp_step_time = value;
# 1733|-> 				spa_log_info(this->log, "%p volume ramp time %d", this, value);
# 1734|   			}
# 1735|   			break;

Error: CPPCHECK_WARNING (CWE-190): [#def557]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1738: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1736|   		case SPA_PROP_volumeRampScale:
# 1737|   			if (this->vol_ramp_sequence) {
# 1738|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1739|   						"applied try again", this);
# 1740|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def558]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1745: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1743|   			if (spa_pod_get_id(&prop->value, &id) == 0 && id) {
# 1744|   				vrp.scale = id;
# 1745|-> 				spa_log_info(this->log, "%p volume ramp scale %d", this, id);
# 1746|   			}
# 1747|   			break;

Error: CPPCHECK_WARNING (CWE-190): [#def559]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1795: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1793|   			    !this->rate_adjust && p->rate != 1.0) {
# 1794|   				this->rate_adjust = true;
# 1795|-> 				spa_log_info(this->log, "%p: activating adaptive resampler",
# 1796|   						this);
# 1797|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def560]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1865: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1863|   		return 0;
# 1864|   
# 1865|-> 	spa_log_debug(this->log, "%p: port config direction:%d monitor:%d "
# 1866|   			"control:%d mode:%d %d", this, direction, monitor,
# 1867|   			control, mode, dir->n_ports);

Error: CPPCHECK_WARNING (CWE-457): [#def561]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1974: error[uninitvar]: Uninitialized variable: direction
# 1972|   		infop = &info;
# 1973|   	}
# 1974|-> 	return reconfigure_mode(this, mode, direction, monitor, control, infop);
# 1975|   }
# 1976|   

Error: CPPCHECK_WARNING (CWE-457): [#def562]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:1974: error[uninitvar]: Uninitialized variable: mode
# 1972|   		infop = &info;
# 1973|   	}
# 1974|-> 	return reconfigure_mode(this, mode, direction, monitor, control, infop);
# 1975|   }
# 1976|   

Error: CPPCHECK_WARNING (CWE-190): [#def563]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2050: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2048|   	dst_info.info.raw.format = SPA_AUDIO_FORMAT_DSP_F32;
# 2049|   
# 2050|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 2051|   			spa_debug_type_find_name(spa_type_audio_format, src_info.info.raw.format),
# 2052|   			src_info.info.raw.channels,

Error: CPPCHECK_WARNING (CWE-190): [#def564]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2069: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2067|   			if (i != j)
# 2068|   				remap = true;
# 2069|-> 			spa_log_debug(this->log, "%p: channel %d (%d) -> %d (%s -> %s)", this,
# 2070|   					i, in->remap[i], j,
# 2071|   					spa_debug_type_find_short_name(spa_type_audio_channel,

Error: CPPCHECK_WARNING (CWE-190): [#def565]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2091: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2089|   		return res;
# 2090|   
# 2091|-> 	spa_log_debug(this->log, "%p: got converter features %08x:%08x passthrough:%d remap:%d %s", this,
# 2092|   			this->cpu_flags, in->conv.cpu_flags, in->conv.is_passthrough,
# 2093|   			remap, in->conv.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def566]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2102: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2100|   	float s;
# 2101|   	uint32_t i;
# 2102|-> 	spa_log_debug(this->log, "%p %d -> %d", this, vols->n_volumes, channels);
# 2103|   	if (vols->n_volumes > 0) {
# 2104|   		s = 0.0f;

Error: CPPCHECK_WARNING (CWE-190): [#def567]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2123: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2121|   	for (i = 0; i < p->n_channels; i++) {
# 2122|   		for (j = i; j < target; j++) {
# 2123|-> 			spa_log_debug(this->log, "%d %d: %d <-> %d", i, j,
# 2124|   					p->channel_map[i], info->info.raw.position[j]);
# 2125|   			if (p->channel_map[i] != info->info.raw.position[j])

Error: CPPCHECK_WARNING (CWE-190): [#def568]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2159: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2157|   	struct dir *dir = &this->dir[this->direction];
# 2158|   
# 2159|-> 	spa_log_debug(this->log, "%p set volume %f have_format:%d", this, this->props.volume, dir->have_format);
# 2160|   
# 2161|   	if (dir->have_format)

Error: CPPCHECK_WARNING (CWE-190): [#def569]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2215: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2213|   	}
# 2214|   
# 2215|-> 	spa_log_info(this->log, "in  %s (%016"PRIx64")", format_position(str, sizeof(str),
# 2216|   				src_chan, position), src_mask);
# 2217|   	spa_log_info(this->log, "out %s (%016"PRIx64")", format_position(str, sizeof(str),

Error: CPPCHECK_WARNING (CWE-190): [#def570]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2217: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2215|   	spa_log_info(this->log, "in  %s (%016"PRIx64")", format_position(str, sizeof(str),
# 2216|   				src_chan, position), src_mask);
# 2217|-> 	spa_log_info(this->log, "out %s (%016"PRIx64")", format_position(str, sizeof(str),
# 2218|   				dst_chan, out->format.info.raw.position), dst_mask);
# 2219|   

Error: CPPCHECK_WARNING (CWE-190): [#def571]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2220: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2218|   				dst_chan, out->format.info.raw.position), dst_mask);
# 2219|   
# 2220|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d %08"PRIx64":%08"PRIx64, this,
# 2221|   			spa_debug_type_find_name(spa_type_audio_format, SPA_AUDIO_FORMAT_DSP_F32),
# 2222|   			src_chan,

Error: CPPCHECK_WARNING (CWE-190): [#def572]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2246: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2244|   	set_volume(this);
# 2245|   
# 2246|-> 	spa_log_debug(this->log, "%p: got channelmix features %08x:%08x flags:%08x %s",
# 2247|   			this, this->cpu_flags, this->mix.cpu_flags,
# 2248|   			this->mix.flags, this->mix.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def573]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2264: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2262|   		channels = out->format.info.raw.channels;
# 2263|   
# 2264|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 2265|   			spa_debug_type_find_name(spa_type_audio_format, SPA_AUDIO_FORMAT_DSP_F32),
# 2266|   			channels,

Error: CPPCHECK_WARNING (CWE-190): [#def574]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2293: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2291|   		res = resample_native_init(&this->resample);
# 2292|   
# 2293|-> 	spa_log_debug(this->log, "%p: got resample features %08x:%08x %s",
# 2294|   			this, this->cpu_flags, this->resample.cpu_flags,
# 2295|   			this->resample.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def575]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2338: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2336|   	src_info.info.raw.format = SPA_AUDIO_FORMAT_DSP_F32;
# 2337|   
# 2338|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 2339|   			spa_debug_type_find_name(spa_type_audio_format, src_info.info.raw.format),
# 2340|   			src_info.info.raw.channels,

Error: CPPCHECK_WARNING (CWE-190): [#def576]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2358: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2356|   				remap = true;
# 2357|   
# 2358|-> 			spa_log_debug(this->log, "%p: channel %d (%d) -> %d (%s -> %s)", this,
# 2359|   					i, out->remap[i], j,
# 2360|   					spa_debug_type_find_short_name(spa_type_audio_channel,

Error: CPPCHECK_WARNING (CWE-190): [#def577]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2379|   		return res;
# 2380|   
# 2381|-> 	spa_log_debug(this->log, "%p: got converter features %08x:%08x quant:%d:%d"
# 2382|   			" passthrough:%d remap:%d %s", this,
# 2383|   			this->cpu_flags, out->conv.cpu_flags, out->conv.method,

Error: CPPCHECK_WARNING (CWE-190): [#def578]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2458: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2456|   	out = &this->dir[SPA_DIRECTION_OUTPUT];
# 2457|   
# 2458|-> 	spa_log_debug(this->log, "%p: setup:%d in_format:%d out_format:%d", this,
# 2459|   			this->setup, in->have_format, out->have_format);
# 2460|   

Error: CPPCHECK_WARNING (CWE-190): [#def579]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2585: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2583|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 2584|   
# 2585|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
# 2586|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
# 2587|   

Error: CPPCHECK_WARNING (CWE-190): [#def580]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2833: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2831|   	spa_return_val_if_fail(num != 0, -EINVAL);
# 2832|   
# 2833|-> 	spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
# 2834|   			this, direction, port_id, seq, id);
# 2835|   

Error: CPPCHECK_WARNING (CWE-190): [#def581]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2879: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2877|   		goto next;
# 2878|   
# 2879|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 2880|   
# 2881|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def582]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2891: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2889|   	uint32_t i, j;
# 2890|   
# 2891|-> 	spa_log_debug(this->log, "%p: clear buffers %p %d", this, port, port->n_buffers);
# 2892|   	for (i = 0; i < port->n_buffers; i++) {
# 2893|   		struct buffer *b = &port->buffers[i];

Error: CPPCHECK_WARNING (CWE-190): [#def583]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2897: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2895|   			for (j = 0; j < b->buf->n_datas; j++) {
# 2896|   				if (b->datas[j]) {
# 2897|-> 					spa_log_debug(this->log, "%p: unmap buffer %d data %d %p",
# 2898|   							this, i, j, b->datas[j]);
# 2899|   					munmap(b->datas[j], b->buf->datas[j].maxsize);

Error: CPPCHECK_WARNING (CWE-190): [#def584]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2923: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2921|   	bool have_latency;;
# 2922|   
# 2923|-> 	spa_log_debug(this->log, "%p: set latency direction:%d id:%d %p",
# 2924|   			this, direction, port_id, latency);
# 2925|   

Error: CPPCHECK_WARNING (CWE-190): [#def585]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2939: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2937|   	port_update_latency(port, &info, have_latency);
# 2938|   
# 2939|-> 	spa_log_debug(this->log, "%p: set %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64, this,
# 2940|   			info.direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 2941|   			info.min_quantum, info.max_quantum,

Error: CPPCHECK_WARNING (CWE-190): [#def586]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:2971: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2969|   	uint32_t i;
# 2970|   
# 2971|-> 	spa_log_debug(this->log, "%p: set tag direction:%d id:%d %p",
# 2972|   			this, direction, port_id, tag);
# 2973|   

Error: CPPCHECK_WARNING (CWE-190): [#def587]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3012: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3010|   	port = GET_PORT(this, direction, port_id);
# 3011|   
# 3012|-> 	spa_log_debug(this->log, "%p: %d:%d set format", this, direction, port_id);
# 3013|   
# 3014|   	if (format == NULL) {

Error: CPPCHECK_WARNING (CWE-190): [#def588]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3021: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3019|   
# 3020|   		if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0) {
# 3021|-> 			spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 3022|   			return res;
# 3023|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def589]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3027: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3025|   			if (info.media_type != SPA_MEDIA_TYPE_audio ||
# 3026|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_dsp) {
# 3027|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 3028|   						info.media_type, info.media_subtype);
# 3029|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def590]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3032: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3030|   			}
# 3031|   			if ((res = spa_format_audio_dsp_parse(format, &info.info.dsp)) < 0) {
# 3032|-> 				spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 3033|   				return res;
# 3034|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def591]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3036: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3034|   			}
# 3035|   			if (info.info.dsp.format != SPA_AUDIO_FORMAT_DSP_F32) {
# 3036|-> 				spa_log_error(this->log, "unexpected format %d<->%d",
# 3037|   					info.info.dsp.format, SPA_AUDIO_FORMAT_DSP_F32);
# 3038|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def592]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3046: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3044|   			if (info.media_type != SPA_MEDIA_TYPE_application ||
# 3045|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_control) {
# 3046|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 3047|   						info.media_type, info.media_subtype);
# 3048|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def593]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3056: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3054|   			if (info.media_type != SPA_MEDIA_TYPE_audio ||
# 3055|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_raw) {
# 3056|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 3057|   						info.media_type, info.media_subtype);
# 3058|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def594]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3061: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3059|   			}
# 3060|   			if ((res = spa_format_audio_raw_parse(format, &info.info.raw)) < 0) {
# 3061|-> 				spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 3062|   				return res;
# 3063|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def595]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3068: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3066|   			    info.info.raw.channels == 0 ||
# 3067|   			    info.info.raw.channels > SPA_AUDIO_MAX_CHANNELS) {
# 3068|-> 				spa_log_error(this->log, "invalid format:%d rate:%d channels:%d",
# 3069|   						info.info.raw.format, info.info.raw.rate,
# 3070|   						info.info.raw.channels);

Error: CPPCHECK_WARNING (CWE-190): [#def596]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3087: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3085|   		port->have_format = true;
# 3086|   
# 3087|-> 		spa_log_debug(this->log, "%p: %d %d %d", this,
# 3088|   				port_id, port->stride, port->blocks);
# 3089|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def597]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3111|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 3112|   
# 3113|-> 	spa_log_debug(this->log, "%p: set param port %d.%d %u",
# 3114|   			this, direction, port_id, id);
# 3115|   

Error: CPPCHECK_WARNING (CWE-190): [#def598]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3190: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3188|   	port = GET_PORT(this, direction, port_id);
# 3189|   
# 3190|-> 	spa_log_debug(this->log, "%p: use buffers %d on port %d:%d",
# 3191|   			this, n_buffers, direction, port_id);
# 3192|   

Error: CPPCHECK_WARNING (CWE-190): [#def599]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3222: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3220|   
# 3221|   		if (n_datas != port->blocks) {
# 3222|-> 			spa_log_error(this->log, "%p: invalid blocks %d on buffer %d",
# 3223|   					this, n_datas, i);
# 3224|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def600]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3238: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3236|   					prot, MAP_SHARED, d[j].fd, d[j].mapoffset);
# 3237|   				if (data == MAP_FAILED) {
# 3238|-> 					spa_log_error(this->log, "%p: mmap failed %d on buffer %d %d %p: %m",
# 3239|   							this, j, i, d[j].type, data);
# 3240|   					res = -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def601]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3242|   				}
# 3243|   				SPA_FLAG_SET(b->flags, BUFFER_FLAG_MAPPED);
# 3244|-> 				spa_log_debug(this->log, "%p: mmap %d on buffer %d %d %p %p",
# 3245|   							this, j, i, d[j].type, data, b);
# 3246|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def602]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3248: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3246|   			}
# 3247|   			if (data == NULL) {
# 3248|-> 				spa_log_error(this->log, "%p: invalid memory %d on buffer %d %d %p",
# 3249|   						this, j, i, d[j].type, data);
# 3250|   				res = -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def603]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3253: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3251|   				goto error;
# 3252|   			} else if (!SPA_IS_ALIGNED(data, this->max_align)) {
# 3253|-> 				spa_log_warn(this->log, "%p: memory %d on buffer %d not aligned",
# 3254|   						this, j, i);
# 3255|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def604]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3297: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3295|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 3296|   
# 3297|-> 	spa_log_debug(this->log, "%p: set io %d on port %d:%d %p",
# 3298|   			this, id, direction, port_id, data);
# 3299|   

Error: CPPCHECK_WARNING (CWE-190): [#def605]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3451: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3449|   					"w", &info);
# 3450|   			if (impl->wav_file == NULL)
# 3451|-> 				spa_log_warn(impl->log, "can't open wav path: %m");
# 3452|   		}
# 3453|   		if (impl->wav_file) {

Error: CPPCHECK_WARNING (CWE-190): [#def606]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3473: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3471|   	s->data = NULL;
# 3472|   	s->run = run_wav_stage;
# 3473|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3474|   	impl->n_stages++;
# 3475|   }

Error: CPPCHECK_WARNING (CWE-190): [#def607]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3495: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3493|   	s->data = NULL;
# 3494|   	s->run = run_dst_remap_stage;
# 3495|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3496|   	impl->n_stages++;
# 3497|   	ctx->dst_idx = CTX_DATA_REMAP_DST;

Error: CPPCHECK_WARNING (CWE-190): [#def608]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3519: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3517|   	s->data = NULL;
# 3518|   	s->run = run_src_remap_stage;
# 3519|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3520|   	impl->n_stages++;
# 3521|   	ctx->src_idx = CTX_DATA_REMAP_SRC;

Error: CPPCHECK_WARNING (CWE-190): [#def609]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3555: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3553|   	s->data = NULL;
# 3554|   	s->run = run_src_convert_stage;
# 3555|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3556|   	impl->n_stages++;
# 3557|   	ctx->src_idx = s->out_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def610]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3583: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3581|   	s->data = NULL;
# 3582|   	s->run = run_resample_stage;
# 3583|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3584|   	impl->n_stages++;
# 3585|   	ctx->src_idx = s->out_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def611]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3604: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3602|   	s->data = fg;
# 3603|   	s->run = run_filter_stage;
# 3604|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3605|   	impl->n_stages++;
# 3606|   	ctx->src_idx = s->out_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def612]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3644: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3642|   	s->data = NULL;
# 3643|   	s->run = run_channelmix_stage;
# 3644|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3645|   	impl->n_stages++;
# 3646|   	ctx->src_idx = s->out_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def613]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3679: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3677|   	s->data = NULL;
# 3678|   	s->run = run_dst_convert_stage;
# 3679|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3680|   	impl->n_stages++;
# 3681|   	ctx->src_idx = s->out_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def614]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3767: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3765|   		add_wav_stage(this, ctx);
# 3766|   
# 3767|-> 	spa_log_debug(this->log, "got %u processing stages", this->n_stages);
# 3768|   }
# 3769|   

Error: CPPCHECK_WARNING (CWE-190): [#def615]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3810: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3808|   		}
# 3809|   		if (this->rate_scale != r) {
# 3810|-> 			spa_log_info(this->log, "scale graph:%u in:%u out:%u scale:%f->%f",
# 3811|   					this->io_position->clock.rate.denom,
# 3812|   					this->resample.i_rate, this->resample.o_rate,

Error: CPPCHECK_WARNING (CWE-190): [#def616]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3835: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3833|   		} else if (SPA_UNLIKELY(io->status != SPA_STATUS_HAVE_DATA)) {
# 3834|   			if (io->status & SPA_STATUS_DRAINED) {
# 3835|-> 				spa_log_debug(this->log, "%p: port %d drained", this, port->id);
# 3836|   				in_avail = flush_in = draining = true;
# 3837|   				in_empty = false;

Error: CPPCHECK_WARNING (CWE-190): [#def617]
pipewire-1.5.81/spa/plugins/audioconvert/audioconvert.c:3952: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3950|   			if (buf == NULL && port->n_buffers > 0 &&
# 3951|   			    (suppressed = spa_ratelimit_test(&this->rate_limit, current_time)) >= 0) {
# 3952|-> 				spa_log_warn(this->log, "%p: (%d suppressed) out of buffers on port %d %d",
# 3953|   					this, suppressed, port->id, port->n_buffers);
# 3954|   			}

Error: COMPILER_WARNING: [#def618]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:40:17: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   38|   	float *d0 = dst[0];
#   39|   	uint32_t n, unrolled;
#   40|-> 	__m256i in = _mm256_setzero_si256();
#   41|   	__m256 out, factor = _mm256_set1_ps(1.0f / S16_SCALE);
#   42|   

Error: COMPILER_WARNING: [#def619]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:40:22: note[note]: called from here
#   38|   	float *d0 = dst[0];
#   39|   	uint32_t n, unrolled;
#   40|-> 	__m256i in = _mm256_setzero_si256();
#   41|   	__m256 out, factor = _mm256_set1_ps(1.0f / S16_SCALE);
#   42|   

Error: COMPILER_WARNING: [#def620]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:41:30: note[note]: called from here
#   39|   	uint32_t n, unrolled;
#   40|   	__m256i in = _mm256_setzero_si256();
#   41|-> 	__m256 out, factor = _mm256_set1_ps(1.0f / S16_SCALE);
#   42|   
#   43|   	if (SPA_LIKELY(SPA_IS_ALIGNED(d0, 32)))

Error: COMPILER_WARNING: [#def621]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:49:22: note[note]: called from here
#   47|   
#   48|   	for(n = 0; n < unrolled; n += 8) {
#   49|-> 		in = _mm256_insert_epi16(in, s[0*n_channels],  1);
#   50|   		in = _mm256_insert_epi16(in, s[1*n_channels],  3);
#   51|   		in = _mm256_insert_epi16(in, s[2*n_channels],  5);

Error: COMPILER_WARNING: [#def622]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:50:22: note[note]: called from here
#   48|   	for(n = 0; n < unrolled; n += 8) {
#   49|   		in = _mm256_insert_epi16(in, s[0*n_channels],  1);
#   50|-> 		in = _mm256_insert_epi16(in, s[1*n_channels],  3);
#   51|   		in = _mm256_insert_epi16(in, s[2*n_channels],  5);
#   52|   		in = _mm256_insert_epi16(in, s[3*n_channels],  7);

Error: COMPILER_WARNING: [#def623]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:51:22: note[note]: called from here
#   49|   		in = _mm256_insert_epi16(in, s[0*n_channels],  1);
#   50|   		in = _mm256_insert_epi16(in, s[1*n_channels],  3);
#   51|-> 		in = _mm256_insert_epi16(in, s[2*n_channels],  5);
#   52|   		in = _mm256_insert_epi16(in, s[3*n_channels],  7);
#   53|   		in = _mm256_insert_epi16(in, s[4*n_channels],  9);

Error: COMPILER_WARNING: [#def624]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:52:22: note[note]: called from here
#   50|   		in = _mm256_insert_epi16(in, s[1*n_channels],  3);
#   51|   		in = _mm256_insert_epi16(in, s[2*n_channels],  5);
#   52|-> 		in = _mm256_insert_epi16(in, s[3*n_channels],  7);
#   53|   		in = _mm256_insert_epi16(in, s[4*n_channels],  9);
#   54|   		in = _mm256_insert_epi16(in, s[5*n_channels], 11);

Error: COMPILER_WARNING: [#def625]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:53:22: note[note]: called from here
#   51|   		in = _mm256_insert_epi16(in, s[2*n_channels],  5);
#   52|   		in = _mm256_insert_epi16(in, s[3*n_channels],  7);
#   53|-> 		in = _mm256_insert_epi16(in, s[4*n_channels],  9);
#   54|   		in = _mm256_insert_epi16(in, s[5*n_channels], 11);
#   55|   		in = _mm256_insert_epi16(in, s[6*n_channels], 13);

Error: COMPILER_WARNING: [#def626]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:54:22: note[note]: called from here
#   52|   		in = _mm256_insert_epi16(in, s[3*n_channels],  7);
#   53|   		in = _mm256_insert_epi16(in, s[4*n_channels],  9);
#   54|-> 		in = _mm256_insert_epi16(in, s[5*n_channels], 11);
#   55|   		in = _mm256_insert_epi16(in, s[6*n_channels], 13);
#   56|   		in = _mm256_insert_epi16(in, s[7*n_channels], 15);

Error: COMPILER_WARNING: [#def627]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:55:22: note[note]: called from here
#   53|   		in = _mm256_insert_epi16(in, s[4*n_channels],  9);
#   54|   		in = _mm256_insert_epi16(in, s[5*n_channels], 11);
#   55|-> 		in = _mm256_insert_epi16(in, s[6*n_channels], 13);
#   56|   		in = _mm256_insert_epi16(in, s[7*n_channels], 15);
#   57|   

Error: COMPILER_WARNING: [#def628]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:56:22: note[note]: called from here
#   54|   		in = _mm256_insert_epi16(in, s[5*n_channels], 11);
#   55|   		in = _mm256_insert_epi16(in, s[6*n_channels], 13);
#   56|-> 		in = _mm256_insert_epi16(in, s[7*n_channels], 15);
#   57|   
#   58|   		in = _mm256_srai_epi32(in, 16);

Error: COMPILER_WARNING: [#def629]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:58:22: note[note]: called from here
#   56|   		in = _mm256_insert_epi16(in, s[7*n_channels], 15);
#   57|   
#   58|-> 		in = _mm256_srai_epi32(in, 16);
#   59|   		out = _mm256_cvtepi32_ps(in);
#   60|   		out = _mm256_mul_ps(out, factor);

Error: COMPILER_WARNING: [#def630]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:59:23: note[note]: called from here
#   57|   
#   58|   		in = _mm256_srai_epi32(in, 16);
#   59|-> 		out = _mm256_cvtepi32_ps(in);
#   60|   		out = _mm256_mul_ps(out, factor);
#   61|   		_mm256_store_ps(&d0[n], out);

Error: COMPILER_WARNING: [#def631]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:60:23: note[note]: called from here
#   58|   		in = _mm256_srai_epi32(in, 16);
#   59|   		out = _mm256_cvtepi32_ps(in);
#   60|-> 		out = _mm256_mul_ps(out, factor);
#   61|   		_mm256_store_ps(&d0[n], out);
#   62|   		s += 8*n_channels;

Error: COMPILER_WARNING: [#def632]
pipewire-1.5.81/spa/plugins/audioconvert/fmt-ops-avx2.c:61:17: note[note]: called from here
#   59|   		out = _mm256_cvtepi32_ps(in);
#   60|   		out = _mm256_mul_ps(out, factor);
#   61|-> 		_mm256_store_ps(&d0[n], out);
#   62|   		s += 8*n_channels;
#   63|   	}

Error: COMPILER_WARNING: [#def633]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:13:26: note[note]: called from here
#   11|   		const float * SPA_RESTRICT taps, uint32_t n_taps)
#   12|   {
#   13|-> 	__m256 sy[2] = { _mm256_setzero_ps(), _mm256_setzero_ps() }, ty;
#   14|   	__m128 sx[2], tx;
#   15|   	uint32_t i = 0;

Error: COMPILER_WARNING: [#def634]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:13:26: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   11|   		const float * SPA_RESTRICT taps, uint32_t n_taps)
#   12|   {
#   13|-> 	__m256 sy[2] = { _mm256_setzero_ps(), _mm256_setzero_ps() }, ty;
#   14|   	__m128 sx[2], tx;
#   15|   	uint32_t i = 0;

Error: COMPILER_WARNING: [#def635]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:13:47: note[note]: called from here
#   11|   		const float * SPA_RESTRICT taps, uint32_t n_taps)
#   12|   {
#   13|-> 	__m256 sy[2] = { _mm256_setzero_ps(), _mm256_setzero_ps() }, ty;
#   14|   	__m128 sx[2], tx;
#   15|   	uint32_t i = 0;

Error: COMPILER_WARNING: [#def636]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:19:22: note[note]: called from here
#   17|   
#   18|   	for (; i < n_taps4; i += 16) {
#   19|-> 		ty = _mm256_loadu_ps(s + i + 0);
#   20|   		sy[0] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 0), sy[0]);
#   21|   		ty = _mm256_loadu_ps(s + i + 8);

Error: COMPILER_WARNING: [#def637]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:20:25: note[note]: called from here
#   18|   	for (; i < n_taps4; i += 16) {
#   19|   		ty = _mm256_loadu_ps(s + i + 0);
#   20|-> 		sy[0] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 0), sy[0]);
#   21|   		ty = _mm256_loadu_ps(s + i + 8);
#   22|   		sy[1] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 8), sy[1]);

Error: COMPILER_WARNING: [#def638]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:21:22: note[note]: called from here
#   19|   		ty = _mm256_loadu_ps(s + i + 0);
#   20|   		sy[0] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 0), sy[0]);
#   21|-> 		ty = _mm256_loadu_ps(s + i + 8);
#   22|   		sy[1] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 8), sy[1]);
#   23|   	}

Error: COMPILER_WARNING: [#def639]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:22:25: note[note]: called from here
#   20|   		sy[0] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 0), sy[0]);
#   21|   		ty = _mm256_loadu_ps(s + i + 8);
#   22|-> 		sy[1] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 8), sy[1]);
#   23|   	}
#   24|   	sy[0] = _mm256_add_ps(sy[1], sy[0]);

Error: COMPILER_WARNING: [#def640]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:24:17: note[note]: called from here
#   22|   		sy[1] = _mm256_fmadd_ps(ty, _mm256_load_ps(taps + i + 8), sy[1]);
#   23|   	}
#   24|-> 	sy[0] = _mm256_add_ps(sy[1], sy[0]);
#   25|   	sx[1] = _mm256_extractf128_ps(sy[0], 1);
#   26|   	sx[0] = _mm256_extractf128_ps(sy[0], 0);

Error: COMPILER_WARNING: [#def641]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:25:17: note[note]: called from here
#   23|   	}
#   24|   	sy[0] = _mm256_add_ps(sy[1], sy[0]);
#   25|-> 	sx[1] = _mm256_extractf128_ps(sy[0], 1);
#   26|   	sx[0] = _mm256_extractf128_ps(sy[0], 0);
#   27|   	for (; i < n_taps; i += 8) {

Error: COMPILER_WARNING: [#def642]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:26:17: note[note]: called from here
#   24|   	sy[0] = _mm256_add_ps(sy[1], sy[0]);
#   25|   	sx[1] = _mm256_extractf128_ps(sy[0], 1);
#   26|-> 	sx[0] = _mm256_extractf128_ps(sy[0], 0);
#   27|   	for (; i < n_taps; i += 8) {
#   28|   		tx = _mm_loadu_ps(s + i + 0);

Error: COMPILER_WARNING: [#def643]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:29:25: note[note]: called from here
#   27|   	for (; i < n_taps; i += 8) {
#   28|   		tx = _mm_loadu_ps(s + i + 0);
#   29|-> 		sx[0] = _mm_fmadd_ps(tx, _mm_load_ps(taps + i + 0), sx[0]);
#   30|   		tx = _mm_loadu_ps(s + i + 4);
#   31|   		sx[1] = _mm_fmadd_ps(tx, _mm_load_ps(taps + i + 4), sx[1]);

Error: COMPILER_WARNING: [#def644]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native-avx.c:31:25: note[note]: called from here
#   29|   		sx[0] = _mm_fmadd_ps(tx, _mm_load_ps(taps + i + 0), sx[0]);
#   30|   		tx = _mm_loadu_ps(s + i + 4);
#   31|-> 		sx[1] = _mm_fmadd_ps(tx, _mm_load_ps(taps + i + 4), sx[1]);
#   32|   	}
#   33|   	sx[0] = _mm_add_ps(sx[0], sx[1]);

Error: CPPCHECK_WARNING (CWE-190): [#def645]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native.c:124: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  122|   static void impl_native_free(struct resample *r)
#  123|   {
#  124|-> 	spa_log_debug(r->log, "native %p: free", r);
#  125|   	free(r->data);
#  126|   	r->data = NULL;

Error: CPPCHECK_WARNING (CWE-190): [#def646]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native.c:427: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  425|   
#  426|   	if (precomp_coeffs[c].filter) {
#  427|-> 		spa_log_debug(r->log, "using precomputed filter for %u->%u(%u)",
#  428|   				r->i_rate, r->o_rate, r->quality);
#  429|   		spa_memcpy(d->filter, precomp_coeffs[c].filter, filter_size);

Error: CPPCHECK_WARNING (CWE-190): [#def647]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native.c:439: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  437|   	d->info = find_resample_info(SPA_AUDIO_FORMAT_F32, r->cpu_flags);
#  438|   	if (SPA_UNLIKELY(d->info == NULL)) {
#  439|-> 	    spa_log_error(r->log, "failed to find suitable resample format!");
#  440|   	    return -ENOTSUP;
#  441|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def648]
pipewire-1.5.81/spa/plugins/audioconvert/resample-native.c:443: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  441|   	}
#  442|   
#  443|-> 	spa_log_debug(r->log, "native %p: q:%d in:%d out:%d gcd:%d n_taps:%d n_phases:%d features:%08x:%08x",
#  444|   			r, r->quality, r->i_rate, r->o_rate, gcd, n_taps, n_phases,
#  445|   			r->cpu_flags, d->info->cpu_flags);

Error: CPPCHECK_WARNING (CWE-457): [#def649]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:57: warning[uninitvar]: Uninitialized variable: o
#   55|   		pd->max_f[c] = m;
#   56|   	}
#   57|-> 	*out_len = o;
#   58|   	*in_len = i;
#   59|   	pd->o_count = o_count;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def650]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:57:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘o’
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:27:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:30:21: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:57:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:57:9: danger: use of uninitialized value ‘o’ here
#   55|   		pd->max_f[c] = m;
#   56|   	}
#   57|-> 	*out_len = o;
#   58|   	*in_len = i;
#   59|   	pd->o_count = o_count;

Error: CPPCHECK_WARNING (CWE-457): [#def651]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:58: warning[uninitvar]: Uninitialized variable: i
#   56|   	}
#   57|   	*out_len = o;
#   58|-> 	*in_len = i;
#   59|   	pd->o_count = o_count;
#   60|   	pd->i_count = i_count;

Error: CPPCHECK_WARNING (CWE-457): [#def652]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:59: warning[uninitvar]: Uninitialized variable: o_count
#   57|   	*out_len = o;
#   58|   	*in_len = i;
#   59|-> 	pd->o_count = o_count;
#   60|   	pd->i_count = i_count;
#   61|   

Error: CPPCHECK_WARNING (CWE-457): [#def653]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:60: warning[uninitvar]: Uninitialized variable: i_count
#   58|   	*in_len = i;
#   59|   	pd->o_count = o_count;
#   60|-> 	pd->i_count = i_count;
#   61|   
#   62|   	while (pd->i_count >= r->i_rate && pd->o_count >= r->o_rate) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def654]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:122:20: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:116:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:117:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:120:24: branch_false: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:122:20: danger: ‘d’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  120|   	d->peaks.log = r->log;
#  121|   	d->peaks.cpu_flags = r->cpu_flags;
#  122|-> 	if ((res = peaks_init(&d->peaks)) < 0) {
#  123|   		free(d);
#  124|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def655]
pipewire-1.5.81/spa/plugins/audioconvert/resample-peaks.c:135: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  133|   	r->phase = impl_peaks_phase;
#  134|   
#  135|-> 	spa_log_debug(r->log, "peaks %p: in:%d out:%d features:%08x:%08x", r,
#  136|   			r->i_rate, r->o_rate, r->cpu_flags, d->peaks.cpu_flags);
#  137|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def656]
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:68:9: warning[-Wanalyzer-jump-through-null]: jump through null pointer
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:57:13: enter_function: entry to ‘test_min_max’
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:66:9: call_function: calling ‘peaks_init’ from ‘test_min_max’
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:66:9: return_function: returning to ‘test_min_max’ from ‘peaks_init’
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:68:9: danger: jump through null pointer here
#   66|   	peaks_init(&peaks);
#   67|   
#   68|-> 	peaks_min_max(&peaks, vals, SPA_N_ELEMENTS(vals), &min, &max);
#   69|   
#   70|   	spa_assert(min == -0.8f);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def657]
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:85:15: warning[-Wanalyzer-jump-through-null]: jump through null pointer
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:74:13: enter_function: entry to ‘test_abs_max’
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:83:9: call_function: calling ‘peaks_init’ from ‘test_abs_max’
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:83:9: return_function: returning to ‘test_abs_max’ from ‘peaks_init’
pipewire-1.5.81/spa/plugins/audioconvert/test-peaks.c:85:15: danger: jump through null pointer here
#   83|   	peaks_init(&peaks);
#   84|   
#   85|-> 	max = peaks_abs_max(&peaks, vals, SPA_N_ELEMENTS(vals), max);
#   86|   
#   87|   	spa_assert(max == 0.8f);

Error: CPPCHECK_WARNING (CWE-190): [#def658]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:112: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  110|   		this->info.change_mask = this->info_all;
#  111|   	if (this->info.change_mask) {
#  112|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  113|   		this->info.change_mask = old;
#  114|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def659]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:123: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  121|   		port->info.change_mask = port->info_all;
#  122|   	if (port->info.change_mask) {
#  123|-> 		spa_node_emit_port_info(&this->hooks,
#  124|   				port->direction, port->id, &port->info);
#  125|   		port->info.change_mask = old;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def660]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:123:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘port’
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:529:12: enter_function: entry to ‘port_set_format’
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:539:16: branch_false: following ‘false’ branch (when ‘direction != 1’)...
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:541:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:541:12: branch_true: following ‘true’ branch (when ‘format’ is NULL)...
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:542:21: branch_true: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:542:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:579:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:587:9: call_function: calling ‘emit_port_info’ from ‘port_set_format’
#  121|   		port->info.change_mask = port->info_all;
#  122|   	if (port->info.change_mask) {
#  123|-> 		spa_node_emit_port_info(&this->hooks,
#  124|   				port->direction, port->id, &port->info);
#  125|   		port->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def661]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:140: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  138|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  139|   
#  140|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
#  141|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
#  142|   

Error: CPPCHECK_WARNING (CWE-190): [#def662]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:165: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  163|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  164|   
#  165|-> 	spa_node_emit_result(&this->hooks, seq, 0, 0, NULL);
#  166|   
#  167|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def663]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:239: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  237|   		goto next;
#  238|   
#  239|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  240|   
#  241|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def664]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:488: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  486|   		goto next;
#  487|   
#  488|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  489|   
#  490|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def665]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:499: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  497|   {
#  498|   	if (port->n_buffers > 0) {
#  499|-> 		spa_log_debug(this->log, "%p: clear buffers %p", this, port);
#  500|   		port->n_buffers = 0;
#  501|   		spa_list_init(&port->queue);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def666]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:543:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘port’
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:539:16: branch_false: following ‘false’ branch (when ‘direction != 1’)...
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:541:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:541:12: branch_true: following ‘true’ branch (when ‘format’ is NULL)...
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:542:21: branch_true: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:542:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:543:25: branch_true: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:543:25: danger: dereference of NULL ‘port’
#  541|   	if (format == NULL) {
#  542|   		if (port->have_format) {
#  543|-> 			port->have_format = false;
#  544|   			clear_buffers(this, port);
#  545|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def667]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  574|   		port->format = info;
#  575|   
#  576|-> 		spa_log_debug(this->log, "%p: set format on port %d %d", this, port_id, res);
#  577|   	}
#  578|   

Error: CPPCHECK_WARNING (CWE-190): [#def668]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:604: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  602|   	spa_return_val_if_fail(CHECK_PORT(object, direction, port_id), -EINVAL);
#  603|   
#  604|-> 	spa_log_debug(this->log, "%p: set param %d", this, id);
#  605|   
#  606|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-476): [#def669]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:640: warning[nullPointer]: Possible null pointer dereference: port
#  638|   	port = GET_PORT(this, direction, port_id);
#  639|   
#  640|-> 	spa_return_val_if_fail(port->have_format, -EIO);
#  641|   
#  642|   	spa_log_debug(this->log, "%p: use buffers %d on port %d", this, n_buffers, port_id);

Error: CPPCHECK_WARNING (CWE-190): [#def670]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:642: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  640|   	spa_return_val_if_fail(port->have_format, -EIO);
#  641|   
#  642|-> 	spa_log_debug(this->log, "%p: use buffers %d on port %d", this, n_buffers, port_id);
#  643|   
#  644|   	clear_buffers(this, port);

Error: CPPCHECK_WARNING (CWE-190): [#def671]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:664: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  662|   
#  663|   			if (d[j].data == NULL) {
#  664|-> 				spa_log_error(this->log, "%p: invalid memory on buffer %p", this,
#  665|   					      buffers[i]);
#  666|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def672]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:669: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  667|   			}
#  668|   			if (!SPA_IS_ALIGNED(d[j].data, 16)) {
#  669|-> 				spa_log_warn(this->log, "%p: memory %d on buffer %d not aligned",
#  670|   						this, j, i);
#  671|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def673]
pipewire-1.5.81/spa/plugins/audioconvert/test-source.c:844: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  842|   	}
#  843|   
#  844|-> 	spa_log_debug(this->log, "%p: init", this);
#  845|   	spa_hook_list_init(&this->hooks);
#  846|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def674]
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:93:16: warning[-Wanalyzer-malloc-leak]: leak of ‘wf’
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:212:1: enter_function: entry to ‘wav_file_open’
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:217:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:218:12: branch_false: following ‘false’ branch (when ‘wf’ is non-NULL)...
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:221:13: call_function: inlined call to ‘spa_streq’ from ‘wav_file_open’
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:221:12: branch_true: following ‘true’ branch (when the strings are equal)...
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:222:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:222:28: call_function: calling ‘open_write’ from ‘wav_file_open’
#   91|   static inline int write_n(int fd, const void *buf, int count)
#   92|   {
#   93|-> 	return write(fd, buf, count) == (ssize_t)count ? count : -errno;
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def675]
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:192:23: warning[-Wanalyzer-malloc-leak]: leak of ‘wf’
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:212:1: enter_function: entry to ‘wav_file_open’
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:217:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:218:12: branch_false: following ‘false’ branch (when ‘wf’ is non-NULL)...
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:221:13: call_function: inlined call to ‘spa_streq’ from ‘wav_file_open’
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:221:12: branch_true: following ‘true’ branch (when the strings are equal)...
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:222:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/audioconvert/wavfile.c:222:28: call_function: calling ‘open_write’ from ‘wav_file_open’
#  190|   		return -ENOTSUP;
#  191|   
#  192|-> 	if ((wf->fd = open(filename, O_WRONLY | O_CREAT | O_CLOEXEC | O_TRUNC, 0660)) < 0) {
#  193|   		res = -errno;
#  194|   		goto exit;

Error: COMPILER_WARNING: [#def676]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:45:25: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   43|   			__m256 in[4];
#   44|   
#   45|-> 			in[0] = _mm256_load_ps(&s[0][n +  0]);
#   46|   			in[1] = _mm256_load_ps(&s[0][n +  8]);
#   47|   			in[2] = _mm256_load_ps(&s[0][n + 16]);

Error: COMPILER_WARNING: [#def677]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:45:33: note[note]: called from here
#   43|   			__m256 in[4];
#   44|   
#   45|-> 			in[0] = _mm256_load_ps(&s[0][n +  0]);
#   46|   			in[1] = _mm256_load_ps(&s[0][n +  8]);
#   47|   			in[2] = _mm256_load_ps(&s[0][n + 16]);

Error: COMPILER_WARNING: [#def678]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:46:33: note[note]: called from here
#   44|   
#   45|   			in[0] = _mm256_load_ps(&s[0][n +  0]);
#   46|-> 			in[1] = _mm256_load_ps(&s[0][n +  8]);
#   47|   			in[2] = _mm256_load_ps(&s[0][n + 16]);
#   48|   			in[3] = _mm256_load_ps(&s[0][n + 24]);

Error: COMPILER_WARNING: [#def679]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:47:33: note[note]: called from here
#   45|   			in[0] = _mm256_load_ps(&s[0][n +  0]);
#   46|   			in[1] = _mm256_load_ps(&s[0][n +  8]);
#   47|-> 			in[2] = _mm256_load_ps(&s[0][n + 16]);
#   48|   			in[3] = _mm256_load_ps(&s[0][n + 24]);
#   49|   			for (i = 1; i < n_src; i++) {

Error: COMPILER_WARNING: [#def680]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:48:33: note[note]: called from here
#   46|   			in[1] = _mm256_load_ps(&s[0][n +  8]);
#   47|   			in[2] = _mm256_load_ps(&s[0][n + 16]);
#   48|-> 			in[3] = _mm256_load_ps(&s[0][n + 24]);
#   49|   			for (i = 1; i < n_src; i++) {
#   50|   				in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n +  0]));

Error: COMPILER_WARNING: [#def681]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:50:41: note[note]: called from here
#   48|   			in[3] = _mm256_load_ps(&s[0][n + 24]);
#   49|   			for (i = 1; i < n_src; i++) {
#   50|-> 				in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n +  0]));
#   51|   				in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n +  8]));
#   52|   				in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n + 16]));

Error: COMPILER_WARNING: [#def682]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:51:41: note[note]: called from here
#   49|   			for (i = 1; i < n_src; i++) {
#   50|   				in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n +  0]));
#   51|-> 				in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n +  8]));
#   52|   				in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n + 16]));
#   53|   				in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n + 24]));

Error: COMPILER_WARNING: [#def683]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:52:41: note[note]: called from here
#   50|   				in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n +  0]));
#   51|   				in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n +  8]));
#   52|-> 				in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n + 16]));
#   53|   				in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n + 24]));
#   54|   			}

Error: COMPILER_WARNING: [#def684]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:53:41: note[note]: called from here
#   51|   				in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n +  8]));
#   52|   				in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n + 16]));
#   53|-> 				in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n + 24]));
#   54|   			}
#   55|   			_mm256_store_ps(&d[n +  0], in[0]);

Error: COMPILER_WARNING: [#def685]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:55:25: note[note]: called from here
#   53|   				in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n + 24]));
#   54|   			}
#   55|-> 			_mm256_store_ps(&d[n +  0], in[0]);
#   56|   			_mm256_store_ps(&d[n +  8], in[1]);
#   57|   			_mm256_store_ps(&d[n + 16], in[2]);

Error: COMPILER_WARNING: [#def686]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:56:25: note[note]: called from here
#   54|   			}
#   55|   			_mm256_store_ps(&d[n +  0], in[0]);
#   56|-> 			_mm256_store_ps(&d[n +  8], in[1]);
#   57|   			_mm256_store_ps(&d[n + 16], in[2]);
#   58|   			_mm256_store_ps(&d[n + 24], in[3]);

Error: COMPILER_WARNING: [#def687]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:57:25: note[note]: called from here
#   55|   			_mm256_store_ps(&d[n +  0], in[0]);
#   56|   			_mm256_store_ps(&d[n +  8], in[1]);
#   57|-> 			_mm256_store_ps(&d[n + 16], in[2]);
#   58|   			_mm256_store_ps(&d[n + 24], in[3]);
#   59|   		}

Error: COMPILER_WARNING: [#def688]
pipewire-1.5.81/spa/plugins/audiomixer/mix-ops-avx.c:58:25: note[note]: called from here
#   56|   			_mm256_store_ps(&d[n +  8], in[1]);
#   57|   			_mm256_store_ps(&d[n + 16], in[2]);
#   58|-> 			_mm256_store_ps(&d[n + 24], in[3]);
#   59|   		}
#   60|   		for (; n < n_samples; n++) {

Error: CPPCHECK_WARNING (CWE-570): [#def689]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:225: error[comparePointers]: Comparing pointers that point to different objects
#  223|   	choice = (struct spa_pod_choice*)spa_pod_builder_frame(b, &f[1]);
#  224|   	i = 0;
#  225|-> 	SPA_FOR_EACH_ELEMENT_VAR(aac_frequencies, f) {
#  226|   		if (AAC_GET_FREQUENCY(conf) & f->config) {
#  227|   			if (i++ == 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:366:15: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:347:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:348:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:352:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:357:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:356:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:358:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:356:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:362:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-aac.c:366:15: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  364|   	bitratemode = p ? p->bitratemode : 0;
#  365|   
#  366|-> 	res = aacEncOpen(&this->aacenc, 0, this->channels);
#  367|   	if (res != AACENC_OK)
#  368|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def691]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:443:20: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:433:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:434:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:433:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:435:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:433:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:440:21: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:440:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:440:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:443:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-faststream.c:443:20: danger: ‘this’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  441|   		goto error_errno;
#  442|   
#  443|-> 	if ((res = sbc_init(&this->sbc, 0)) < 0)
#  444|   		goto error;
#  445|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def692]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  460|   		goto error_errno;
#  461|   
#  462|-> 	this->ldac = ldacBT_get_handle();
#  463|   	if (this->ldac == NULL)
#  464|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def693]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  471|   
#  472|   #ifdef ENABLE_LDAC_ABR
#  473|-> 	this->ldac_abr = ldac_ABR_get_handle();
#  474|   	if (this->ldac_abr == NULL)
#  475|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def694]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:514:15: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:514:15: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  512|   	this->d.max_frame_bytes = (size_t)this->codesize * LDACBT_MAX_LSU / LDACBT_ENC_LSU;
#  513|   
#  514|-> 	res = ldacBT_init_handle_encode(this->ldac,
#  515|   			this->mtu,
#  516|   			this->eqmid,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def695]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:520:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  519|   			this->frequency);
#  520|   	if (res < 0) {
#  521|-> 		res = ldacBT_get_error_code(this->ldac);
#  522|   		spa_log_error(log_, "LDAC encoder initialization failed: %s (%d)",
#  523|   				ldac_strerror(LDACBT_API_ERR(res)), res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def696]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:449:14: enter_function: entry to ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:520:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:521:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:522:17: danger: ‘this’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  520|   	if (res < 0) {
#  521|   		res = ldacBT_get_error_code(this->ldac);
#  522|-> 		spa_log_error(log_, "LDAC encoder initialization failed: %s (%d)",
#  523|   				ldac_strerror(LDACBT_API_ERR(res)), res);
#  524|   		res = -EIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def697]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:542:15: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:520:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:542:15: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:542:15: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  540|   
#  541|   #ifdef ENABLE_LDAC_ABR
#  542|-> 	res = ldac_ABR_Init(this->ldac_abr, LDAC_ABR_INTERVAL_MS);
#  543|   	if (res < 0)
#  544|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def698]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:546:15: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:520:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:542:15: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:543:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:546:15: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:546:15: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  544|   		goto error;
#  545|   
#  546|-> 	res = ldac_ABR_set_thresholds(this->ldac_abr,
#  547|   		LDAC_ABR_THRESHOLD_CRITICAL,
#  548|   		LDAC_ABR_THRESHOLD_DANGEROUSTREND,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def699]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:560:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:475:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:559:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:560:17: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  558|   error:
#  559|   	if (this && this->ldac)
#  560|-> 		ldacBT_free_handle(this->ldac);
#  561|   #ifdef ENABLE_LDAC_ABR
#  562|   	if (this && this->ldac_abr)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def700]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:563:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:458:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:459:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:462:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:463:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:473:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:474:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:478:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:559:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:560:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:562:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:563:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-ldac.c:563:17: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  561|   #ifdef ENABLE_LDAC_ABR
#  562|   	if (this && this->ldac_abr)
#  563|-> 		ldac_ABR_free_handle(this->ldac_abr);
#  564|   #endif
#  565|   	free(this);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def701]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:320:21: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:280:14: enter_function: entry to ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:289:12: branch_false: following ‘false’ branch (when ‘config_len > 6’)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:293:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:296:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:297:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:21: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: call_function: calling ‘codec_validate_config’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: return_function: returning to ‘codec_init’ from ‘codec_validate_config’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:307:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:307:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:312:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:320:21: danger: ‘this’ leaks here; was allocated at [(10)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/9)
#  318|   	 * Setup encoder
#  319|   	 */
#  320|-> 	this->enc = opus_encoder_create(this->samplerate, this->channels, this->application, &res);
#  321|   	if (this->enc == NULL) {
#  322|   		res = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def702]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:338:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:280:14: enter_function: entry to ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:289:12: branch_false: following ‘false’ branch (when ‘config_len > 6’)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:293:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:296:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:297:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:21: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: call_function: calling ‘codec_validate_config’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: return_function: returning to ‘codec_init’ from ‘codec_validate_config’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:307:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:307:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:312:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:321:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:326:34: call_function: inlined call to ‘parse_frame_dms’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:326:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:331:47: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:338:9: danger: ‘this’ leaks here; was allocated at [(10)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/9)
#  336|   			(int64_t)8 * (this->mtu - header_size) * 10000 / this->e.frame_dms);
#  337|   
#  338|-> 	opus_encoder_ctl(this->enc, OPUS_SET_BITRATE(this->e.bitrate));
#  339|   
#  340|   	opus_encoder_ctl(this->enc, OPUS_GET_LOOKAHEAD(&this->e.delay));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def703]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:340:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:280:14: enter_function: entry to ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:289:12: branch_false: following ‘false’ branch (when ‘config_len > 6’)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:293:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:296:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:297:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:295:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:21: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:302:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: call_function: calling ‘codec_validate_config’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:20: return_function: returning to ‘codec_init’ from ‘codec_validate_config’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:305:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:307:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:307:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:312:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:321:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:326:34: call_function: inlined call to ‘parse_frame_dms’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:326:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:331:47: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus-g.c:340:9: danger: ‘this’ leaks here; was allocated at [(10)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/9)
#  338|   	opus_encoder_ctl(this->enc, OPUS_SET_BITRATE(this->e.bitrate));
#  339|   
#  340|-> 	opus_encoder_ctl(this->enc, OPUS_GET_LOOKAHEAD(&this->e.delay));
#  341|   
#  342|   	/*

Error: GCC_ANALYZER_WARNING (CWE-401): [#def704]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:978:29: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:901:14: enter_function: entry to ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:915:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:916:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:915:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:917:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:915:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:922:21: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:922:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:922:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:925:25: call_function: inlined call to ‘is_duplex_codec’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:926:15: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:926:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:928:20: call_function: calling ‘codec_validate_config’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:928:20: return_function: returning to ‘codec_init’ from ‘codec_validate_config’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:928:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:930:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:930:20: call_function: calling ‘get_mapping’ from ‘codec_init’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:930:20: return_function: returning to ‘codec_init’ from ‘get_mapping’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:933:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:933:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:938:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:952:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-opus.c:978:29: danger: ‘this’ leaks here; was allocated at [(8)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/7)
#  976|   		for (i = 0; i < this->channels; ++i)
#  977|   			mapping[i] = i;
#  978|-> 		this->enc = opus_multistream_encoder_create(
#  979|   				this->samplerate, this->channels, this->streams, this->coupled_streams,
#  980|   				mapping, this->application, &res);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def705]
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-sbc.c:452:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-sbc.c:446:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-sbc.c:447:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-sbc.c:452:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/a2dp-codec-sbc.c:452:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  450|   	}
#  451|   
#  452|-> 	sbc_init(&this->sbc, 0);
#  453|   	this->sbc.endian = SBC_LE;
#  454|   	this->mtu = mtu;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def706]
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1079:13: warning[-Wanalyzer-malloc-leak]: leak of ‘t_path’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1277:26: enter_function: entry to ‘hsphfpd_filter_cb’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1285:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1299:28: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1299:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1335:28: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1335:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1340:30: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1340:28: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1343:30: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1343:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1343:68: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1343:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1348:25: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1353:28: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1354:69: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1354:69: call_function: calling ‘endpoint_find’ from ‘hsphfpd_filter_cb’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1354:69: return_function: returning to ‘hsphfpd_filter_cb’ from ‘endpoint_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1355:36: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1359:33: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1360:33: call_function: calling ‘hsphfpd_parse_endpoint_properties’ from ‘hsphfpd_filter_cb’
# 1077|   
# 1078|   	char *t_path = strdup(endpoint->path);
# 1079|-> 	t = spa_bt_transport_create(backend->monitor, t_path, sizeof(struct hsphfpd_transport_data));
# 1080|   	if (t == NULL) {
# 1081|   		spa_log_warn(backend->log, "can't create transport: %m");

Error: CPPCHECK_WARNING (CWE-476): [#def707]
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1141: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: endpoint
# 1139|   			if (!endpoint) {
# 1140|   				endpoint = calloc(1, sizeof(struct hsphfpd_endpoint));
# 1141|-> 				endpoint->path = strdup(path);
# 1142|   				spa_list_append(&backend->endpoint_list, &endpoint->link);
# 1143|   				spa_log_debug(backend->log, "Found endpoint %s", path);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def708]
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1509:14: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1474:24: enter_function: entry to ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1490:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1491:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1494:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1505:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1509:14: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
# 1507|   		backend->msbc_supported = false;
# 1508|   
# 1509|-> 	if (!spa_bt_get_hfp_codec(monitor, HFP_AUDIO_CODEC_MSBC))
# 1510|   		backend->msbc_supported = false;
# 1511|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def709]
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1516:14: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1474:24: enter_function: entry to ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1490:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1491:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1494:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1500:24: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1501:25: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: call_function: calling ‘spa_support_find’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1502:30: return_function: returning to ‘backend_hsphfpd_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_hsphfpd_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1504:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1505:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1509:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1512:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-hsphfpd.c:1516:14: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
# 1514|   	spa_list_init(&backend->endpoint_list);
# 1515|   
# 1516|-> 	if (!dbus_connection_register_object_path(backend->conn,
# 1517|   	            APPLICATION_OBJECT_MANAGER_PATH,
# 1518|   	            &vtable_application_object_manager, backend)) {

Error: GCC_ANALYZER_WARNING (CWE-416): [#def710]
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:422:21: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cmd’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2506:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2507:17: call_function: calling ‘rfcomm_free’ from ‘rfcomm_event’
#  420|   
#  421|   	spa_list_consume(cmd, &rfcomm->cmd_send_queue, link) {
#  422|-> 		if (cmd->msg) {
#  423|   			telephony_send_dbus_method_reply(rfcomm->backend->telephony, cmd->msg, BT_TELEPHONY_ERROR_FAILED, 0);
#  424|   			spa_clear_ptr(cmd->msg, dbus_message_unref);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def711]
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:568:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cmd’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2500:13: enter_function: entry to ‘rfcomm_event’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2505:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2511:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2515:23: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2516:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2520:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2531:25: call_function: calling ‘rfcomm_process_events’ from ‘rfcomm_event’
#  566|   	spa_log_debug(backend->log, "Queueing command: %s", cmd->cmd);
#  567|   
#  568|-> 	cmd->next_state = next_state;
#  569|   	cmd->msg = m ? dbus_message_ref(m) : NULL;
#  570|   	spa_list_append(&rfcomm->cmd_send_queue, &cmd->link);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def712]
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3029:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘sock’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:2999:13: enter_function: entry to ‘sco_listen’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3004:34: acquire_resource: socket created here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3005:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3011:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3015:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3020:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3028:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3029:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3029:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘sco_listen’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3029:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3029:17: danger: ‘sock’ leaks here
# 3027|   	spa_log_debug(backend->log, "doing listen");
# 3028|   	if (listen(sock, 1) < 0) {
# 3029|-> 		spa_log_error(backend->log, "listen(): %m");
# 3030|   		return;
# 3031|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def713]
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:3993:20: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4057:24: enter_function: entry to ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4070:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4071:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4074:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4093:13: call_function: calling ‘parse_headset_roles’ from ‘backend_native_new’
# 3991|   		goto fallback;
# 3992|   
# 3993|-> 	profiles = spa_bt_profiles_from_json_array(str);
# 3994|   	if (profiles < 0)
# 3995|   		goto fallback;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def714]
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4087:27: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4057:24: enter_function: entry to ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4070:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4071:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4074:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4087:27: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
# 4085|   	backend->sco.fd = -1;
# 4086|   
# 4087|-> 	backend->codecs = spa_bt_get_media_codecs(monitor);
# 4088|   
# 4089|   	spa_log_topic_init(backend->log, &log_topic);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def715]
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4100:14: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4057:24: enter_function: entry to ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4070:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4071:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4074:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4079:24: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4080:25: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4081:30: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4082:32: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: call_function: calling ‘spa_support_find’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4083:31: return_function: returning to ‘backend_native_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4093:13: call_function: calling ‘parse_headset_roles’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4093:13: return_function: returning to ‘backend_native_new’ from ‘parse_headset_roles’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4096:9: call_function: calling ‘parse_hfp_disable_nrec’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4096:9: return_function: returning to ‘backend_native_new’ from ‘parse_hfp_disable_nrec’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4097:9: call_function: calling ‘parse_hfp_default_volumes’ from ‘backend_native_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4097:9: return_function: returning to ‘backend_native_new’ from ‘parse_hfp_default_volumes’
pipewire-1.5.81/spa/plugins/bluez5/backend-native.c:4100:14: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
# 4098|   
# 4099|   #ifdef HAVE_BLUEZ_5_BACKEND_HSP_NATIVE
# 4100|-> 	if (!dbus_connection_register_object_path(backend->conn,
# 4101|   						  PROFILE_HSP_AG,
# 4102|   						  &vtable_profile, backend)) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def716]
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:133:13: warning[-Wanalyzer-malloc-leak]: leak of ‘t_path’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:127:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:132:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:132:18: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:133:13: danger: ‘t_path’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  131|   
#  132|   	t_path = strdup(path);
#  133|-> 	t = spa_bt_transport_create(backend->monitor, t_path, sizeof(struct transport_data));
#  134|   	if (t == NULL) {
#  135|   		spa_log_warn(backend->log, "can't create transport: %m");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def717]
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:914:14: warning[-Wanalyzer-malloc-leak]: leak of ‘backend’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:880:24: enter_function: entry to ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:893:19: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:894:12: branch_false: following ‘false’ branch (when ‘backend’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:897:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:903:24: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:903:24: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:904:25: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:904:25: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:905:30: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:905:30: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:906:32: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:906:32: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:907:31: call_function: calling ‘spa_support_find’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:907:31: return_function: returning to ‘backend_ofono_new’ from ‘spa_support_find’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:12: branch_true: following ‘true’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:28: call_function: inlined call to ‘spa_dict_lookup’ from ‘backend_ofono_new’
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:909:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:910:43: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/backend-ofono.c:914:14: danger: ‘backend’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#  912|   		backend->msbc_supported = false;
#  913|   
#  914|-> 	if (!spa_bt_get_hfp_codec(monitor, HFP_AUDIO_CODEC_MSBC))
#  915|   		backend->msbc_supported = false;
#  916|   

Error: CPPCHECK_WARNING (CWE-457): [#def718]
pipewire-1.5.81/spa/plugins/bluez5/bluez5-device.c:3047: error[uninitvar]: Uninitialized variable: idx
# 3045|   		}
# 3046|   
# 3047|-> 		profile = get_profile_from_index(this, idx, &next, &codec);
# 3048|   		if (profile == SPA_ID_INVALID)
# 3049|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-457): [#def719]
pipewire-1.5.81/spa/plugins/bluez5/bluez5-device.c:3075: error[uninitvar]: Uninitialized variable: device
# 3073|   			return res;
# 3074|   		}
# 3075|-> 		if (device >= SPA_N_ELEMENTS(this->nodes) || !this->nodes[device].active)
# 3076|   			return -EINVAL;
# 3077|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def720]
pipewire-1.5.81/spa/plugins/bluez5/bt-latency.h:63:17: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:436:23: enter_function: entry to ‘stream_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:455:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:461:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:464:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:466:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:471:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:472:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:477:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:478:12: branch_false: following ‘false’ branch (when ‘interval > 5000’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:483:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:485:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_true: following ‘true’ branch (when ‘sink != 0’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:497:12: branch_false: following ‘false’ branch (when ‘stream’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:500:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:510:9: call_function: calling ‘spa_bt_latency_init’ from ‘stream_create’
#   61|   	res = setsockopt(transport->fd, SOL_SOCKET, SO_TIMESTAMPING, &so_timestamping, sizeof(so_timestamping));
#   62|   	if (res < 0) {
#   63|-> 		spa_log_info(log, "setsockopt(SO_TIMESTAMPING) failed (kernel feature not enabled?): %d (%m)", errno);
#   64|   		return;
#   65|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def721]
pipewire-1.5.81/spa/plugins/bluez5/bt-latency.h:69:23: warning[-Wanalyzer-malloc-leak]: leak of ‘stream’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:436:23: enter_function: entry to ‘stream_create’
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:455:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:461:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:464:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:466:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:471:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:472:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:477:20: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:478:12: branch_false: following ‘false’ branch (when ‘interval > 5000’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:483:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:485:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:491:12: branch_true: following ‘true’ branch (when ‘sink != 0’)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:496:18: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:497:12: branch_false: following ‘false’ branch (when ‘stream’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:500:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/iso-io.c:510:9: call_function: calling ‘spa_bt_latency_init’ from ‘stream_create’
#   67|   	/* Flush errqueue on start */
#   68|   	do {
#   69|-> 		res = recv(transport->fd, NULL, 0, MSG_ERRQUEUE | MSG_DONTWAIT | MSG_TRUNC);
#   70|   	} while (res == 0);
#   71|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def722]
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:93:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:176:35: enter_function: entry to ‘load_media_codecs’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:200:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:201:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:204:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:209:21: branch_true: following ‘true’ branch (when ‘i != 14’)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:210:66: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:210:17: call_function: calling ‘load_media_codecs_from’ from ‘load_media_codecs’
#   91|   	handle = spa_plugin_loader_load(impl->loader, factory_name, &info);
#   92|   	if (handle == NULL) {
#   93|-> 		spa_log_info(impl->log, "Bluetooth codec plugin %s not available", factory_name);
#   94|   		return -ENOENT;
#   95|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def723]
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:97:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:176:35: enter_function: entry to ‘load_media_codecs’
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:200:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:201:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:204:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:209:21: branch_true: following ‘true’ branch (when ‘i != 14’)...
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:210:66: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/codec-loader.c:210:17: call_function: calling ‘load_media_codecs_from’ from ‘load_media_codecs’
#   95|   	}
#   96|   
#   97|-> 	spa_log_debug(impl->log, "loading codecs from %s", factory_name);
#   98|   
#   99|   	if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_Bluez5CodecMedia, &iface)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-457): [#def724]
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:89:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sg[1]’
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:226:5: enter_function: entry to ‘g722_encode’
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:254:15: branch_true: following ‘true’ branch (when ‘j < len’)...
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:255:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:255:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:261:21: branch_true: following ‘true’ branch (when ‘i != 22’)...
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:262:26: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:261:21: branch_false: following ‘false’ branch (when ‘i == 22’)...
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:265:24: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:271:21: branch_true: following ‘true’ branch (when ‘i != 12’)...
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:272:26: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:297:17: branch_true: following ‘true’ branch (when ‘i != 30’)...
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:298:14: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/g722/g722_encode.c:326:5: call_function: calling ‘block4’ from ‘g722_encode’
#   87|     wd1 = saturate(band->a[1] << 2);
#   88|   
#   89|->   wd2 = (sg[0] == sg[1]) ? -wd1 : wd1;
#   90|     if (wd2 > 32767) {
#   91|       wd2 = 32767;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def725]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 24000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:9: danger: ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 24000))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   91|   		goto fail;
#   92|   
#   93|-> 	this->enc = lc3_setup_encoder(7500, 24000, 0,
#   94|   			calloc(1, lc3_encoder_size(7500, 24000)));
#   95|   	if (!this->enc)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def726]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:21: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:93:21: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   91|   		goto fail;
#   92|   
#   93|-> 	this->enc = lc3_setup_encoder(7500, 24000, 0,
#   94|   			calloc(1, lc3_encoder_size(7500, 24000)));
#   95|   	if (!this->enc)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def727]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#   92|   
#   93|   	this->enc = lc3_setup_encoder(7500, 24000, 0,
#   94|-> 			calloc(1, lc3_encoder_size(7500, 24000)));
#   95|   	if (!this->enc)
#   96|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def728]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 24000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:9: danger: ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 24000))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/6)
#   96|   		goto fail;
#   97|   
#   98|-> 	this->dec = lc3_setup_decoder(7500, 24000, 0,
#   99|   			calloc(1, lc3_decoder_size(7500, 24000)));
#  100|   	if (!this->dec)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def729]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:21: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:98:21: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/2)
#   96|   		goto fail;
#   97|   
#   98|-> 	this->dec = lc3_setup_decoder(7500, 24000, 0,
#   99|   			calloc(1, lc3_decoder_size(7500, 24000)));
#  100|   	if (!this->dec)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def730]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   97|   
#   98|   	this->dec = lc3_setup_decoder(7500, 24000, 0,
#   99|-> 			calloc(1, lc3_decoder_size(7500, 24000)));
#  100|   	if (!this->dec)
#  101|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def731]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:103:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:87:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:89:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:90:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:94:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:95:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:99:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:100:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:103:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-a127.c:103:9: danger: ‘this’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  101|   		goto fail;
#  102|   
#  103|-> 	spa_assert(lc3_frame_samples(7500, 24000) * sizeof(float) == LC3_A127_BLOCK_SIZE);
#  104|   
#  105|   	this->prev_hwseq = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def732]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 32000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:9: danger: ‘calloc(1, (long unsigned int)lc3_encoder_size(7500, 32000))’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#   94|   		goto fail;
#   95|   
#   96|-> 	this->enc = lc3_setup_encoder(7500, 32000, 0,
#   97|   			calloc(1, lc3_encoder_size(7500, 32000)));
#   98|   	if (!this->enc)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def733]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:96:21: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#   94|   		goto fail;
#   95|   
#   96|-> 	this->enc = lc3_setup_encoder(7500, 32000, 0,
#   97|   			calloc(1, lc3_encoder_size(7500, 32000)));
#   98|   	if (!this->enc)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def734]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#   95|   
#   96|   	this->enc = lc3_setup_encoder(7500, 32000, 0,
#   97|-> 			calloc(1, lc3_encoder_size(7500, 32000)));
#   98|   	if (!this->enc)
#   99|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def735]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 32000))’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:21: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:9: danger: ‘calloc(1, (long unsigned int)lc3_decoder_size(7500, 32000))’ leaks here; was allocated at [(7)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/6)
#   99|   		goto fail;
#  100|   
#  101|-> 	this->dec = lc3_setup_decoder(7500, 32000, 0,
#  102|   			calloc(1, lc3_decoder_size(7500, 32000)));
#  103|   	if (!this->dec)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def736]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:101:21: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#   99|   		goto fail;
#  100|   
#  101|-> 	this->dec = lc3_setup_decoder(7500, 32000, 0,
#  102|   			calloc(1, lc3_decoder_size(7500, 32000)));
#  103|   	if (!this->dec)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def737]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  100|   
#  101|   	this->dec = lc3_setup_decoder(7500, 32000, 0,
#  102|-> 			calloc(1, lc3_decoder_size(7500, 32000)));
#  103|   	if (!this->dec)
#  104|   		goto fail;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def738]
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:106:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc(1, 104)’
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:90:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:92:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:93:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:97:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:102:35: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:103:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:106:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/hfp-codec-lc3-swb.c:106:9: danger: ‘calloc(1, 104)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  104|   		goto fail;
#  105|   
#  106|-> 	spa_assert(lc3_frame_samples(7500, 32000) * sizeof(float) == LC3_SWB_BLOCK_SIZE);
#  107|   
#  108|   	h2_reader_init(&this->h2, false);

Error: CPPCHECK_WARNING (CWE-457): [#def739]
pipewire-1.5.81/spa/plugins/bluez5/media-source.c:254: warning[uninitvar]: Uninitialized variables: param.size, param.type
#  252|   	}
#  253|   
#  254|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  255|   		goto next;
#  256|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def740]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:313:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  311|   	char path[128];
#  312|   
#  313|-> 	iface = bluez5_gatt_service1_skeleton_new();
#  314|   	if (!iface)
#  315|   		goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def741]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:318:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  316|   
#  317|   	spa_scnprintf(path, sizeof(path), MIDI_SERVICE_PATH, impl->server_id);
#  318|-> 	skeleton = g_dbus_object_skeleton_new(path);
#  319|   	if (!skeleton)
#  320|   		goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def742]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:321:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  319|   	if (!skeleton)
#  320|   		goto done;
#  321|-> 	g_dbus_object_skeleton_add_interface(skeleton, G_DBUS_INTERFACE_SKELETON(iface));
#  322|   
#  323|   	bluez5_gatt_service1_set_uuid(iface, BT_MIDI_SERVICE_UUID);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def743]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:323:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  321|   	g_dbus_object_skeleton_add_interface(skeleton, G_DBUS_INTERFACE_SKELETON(iface));
#  322|   
#  323|-> 	bluez5_gatt_service1_set_uuid(iface, BT_MIDI_SERVICE_UUID);
#  324|   	bluez5_gatt_service1_set_primary(iface, TRUE);
#  325|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def744]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:324:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  322|   
#  323|   	bluez5_gatt_service1_set_uuid(iface, BT_MIDI_SERVICE_UUID);
#  324|-> 	bluez5_gatt_service1_set_primary(iface, TRUE);
#  325|   
#  326|   	g_dbus_object_manager_server_export(impl->manager, skeleton);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def745]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:471:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  469|   
#  470|   	spa_scnprintf(path, sizeof(path), MIDI_SERVER_PATH, impl->server_id);
#  471|-> 	impl->manager = g_dbus_object_manager_server_new(path);
#  472|   	if (!impl->manager){
#  473|   		spa_log_error(impl->log, "Creating GDBus object manager failed");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def746]
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:473:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:501:28: enter_function: entry to ‘spa_bt_midi_server_new’
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:509:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:510:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:513:27: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/midi-server.c:520:20: call_function: calling ‘export_objects’ from ‘spa_bt_midi_server_new’
#  471|   	impl->manager = g_dbus_object_manager_server_new(path);
#  472|   	if (!impl->manager){
#  473|-> 		spa_log_error(impl->log, "Creating GDBus object manager failed");
#  474|   		goto fail;
#  475|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def747]
pipewire-1.5.81/spa/plugins/bluez5/player.c:270:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/player.c:257:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/player.c:258:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/player.c:262:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/player.c:264:22: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/player.c:264:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/player.c:265:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/player.c:270:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/player.c:270:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  268|   	}
#  269|   
#  270|-> 	dbus_connection_ref(impl->conn);
#  271|   
#  272|   	update_properties(impl, false);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def748]
pipewire-1.5.81/spa/plugins/bluez5/player.c:274:14: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/player.c:248:23: enter_function: entry to ‘spa_bt_player_new’
pipewire-1.5.81/spa/plugins/bluez5/player.c:257:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/player.c:258:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/player.c:262:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/player.c:264:22: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/player.c:264:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/player.c:265:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/player.c:270:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/player.c:272:9: call_function: calling ‘update_properties’ from ‘spa_bt_player_new’
pipewire-1.5.81/spa/plugins/bluez5/player.c:272:9: return_function: returning to ‘spa_bt_player_new’ from ‘update_properties’
pipewire-1.5.81/spa/plugins/bluez5/player.c:274:14: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/1)
#  272|   	update_properties(impl, false);
#  273|   
#  274|-> 	if (!dbus_connection_register_object_path(impl->conn, impl->path, &vtable, impl)) {
#  275|   		spa_bt_player_destroy(&impl->this);
#  276|   		errno = EIO;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def749]
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:13: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:291:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:292:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:295:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:13: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  319|   	io->codec = transport->media_codec;
#  320|   
#  321|-> 	if (io->codec->validate_config(io->codec, 0, NULL, 0, &format) < 0)
#  322|   		return NULL;
#  323|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def750]
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:291:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:292:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:295:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: danger: ‘io’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  322|   		return NULL;
#  323|   
#  324|-> 	io->codec_data = io->codec->init(io->codec, 0, NULL, 0, &format, NULL, transport->write_mtu);
#  325|   	if (!io->codec_data)
#  326|   		return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def751]
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: warning[-Wanalyzer-malloc-leak]: leak of ‘io’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:283:23: enter_function: entry to ‘spa_bt_sco_io_create’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:291:14: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:292:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:295:18: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:321:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:324:26: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:325:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spa_bt_sco_io_create’
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/sco-io.c:328:9: danger: ‘io’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  326|   		return NULL;
#  327|   
#  328|-> 	spa_log_debug(io->log, "%p: initial packet size:%d", io, (int)io->read_size);
#  329|   
#  330|   	spa_bt_recvmsg_init(&io->recv, io->fd, io->data_system, io->log);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def752]
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:404:1: enter_function: entry to ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:417:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: call_function: calling ‘spa_log_topic_init’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: return_function: returning to ‘telephony_new’ from ‘spa_log_topic_init’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:441:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:442:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:445:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:450:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:451:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:451:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:451:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:451:17: danger: ‘impl’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
#  449|   	impl->dbus_connection = spa_dbus_get_connection(impl->dbus, bus_type);
#  450|   	if (impl->dbus_connection == NULL) {
#  451|-> 		spa_log_warn(impl->log, "no session dbus connection");
#  452|   		goto fail;
#  453|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def753]
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:456:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:404:1: enter_function: entry to ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:417:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: call_function: calling ‘spa_log_topic_init’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: return_function: returning to ‘telephony_new’ from ‘spa_log_topic_init’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:441:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:442:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:445:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: call_function: calling ‘spa_dbus_get_connection’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: return_function: returning to ‘telephony_new’ from ‘spa_dbus_get_connection’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: call_function: calling ‘spa_dbus_connection_get’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: return_function: returning to ‘telephony_new’ from ‘spa_dbus_connection_get’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:455:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:456:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:456:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:456:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:456:17: danger: ‘impl’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
#  454|   	impl->conn = spa_dbus_connection_get(impl->dbus_connection);
#  455|   	if (impl->conn == NULL) {
#  456|-> 		spa_log_warn(impl->log, "failed to get session dbus connection");
#  457|   		goto fail;
#  458|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def754]
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:477:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:404:1: enter_function: entry to ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:417:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: call_function: calling ‘spa_log_topic_init’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: return_function: returning to ‘telephony_new’ from ‘spa_log_topic_init’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:441:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:442:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:445:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: call_function: calling ‘spa_dbus_get_connection’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: return_function: returning to ‘telephony_new’ from ‘spa_dbus_get_connection’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: call_function: calling ‘spa_dbus_connection_get’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: return_function: returning to ‘telephony_new’ from ‘spa_dbus_connection_get’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:455:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:460:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:473:15: branch_false: following ‘false’ branch (when ‘ofono_service_compat == 0’)...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:476:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:477:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:477:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:477:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:477:17: danger: ‘impl’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
#  475|   				    DBUS_NAME_FLAG_DO_NOT_QUEUE, &err);
#  476|   	if (res < 0) {
#  477|-> 		spa_log_warn(impl->log, "D-Bus RequestName() error: %s", err.message);
#  478|   		goto fail;
#  479|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def755]
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:481:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:404:1: enter_function: entry to ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:417:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:418:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: call_function: calling ‘spa_log_topic_init’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:420:9: return_function: returning to ‘telephony_new’ from ‘spa_log_topic_init’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:441:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:442:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:445:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: call_function: calling ‘spa_dbus_get_connection’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:449:33: return_function: returning to ‘telephony_new’ from ‘spa_dbus_get_connection’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: call_function: calling ‘spa_dbus_connection_get’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:454:22: return_function: returning to ‘telephony_new’ from ‘spa_dbus_connection_get’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:455:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:460:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:473:15: branch_false: following ‘false’ branch (when ‘ofono_service_compat == 0’)...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:476:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:480:12: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:480:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:481:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:481:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘telephony_new’
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:481:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/bluez5/telephony.c:481:17: danger: ‘impl’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
#  479|   	}
#  480|   	if (res == DBUS_REQUEST_NAME_REPLY_EXISTS) {
#  481|-> 		spa_log_warn(impl->log, "Bluetooth Telephony service is already registered by another connection");
#  482|   		goto fail;
#  483|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def756]
pipewire-1.5.81/spa/plugins/bluez5/upower.c:175:14: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/spa/plugins/bluez5/upower.c:195:7: enter_function: entry to ‘upower_register’
pipewire-1.5.81/spa/plugins/bluez5/upower.c:202:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/upower.c:203:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/upower.c:203:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/upower.c:204:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/upower.c:204:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/upower.c:205:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/upower.c:205:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/bluez5/upower.c:207:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/upower.c:207:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/bluez5/upower.c:208:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/spa/plugins/bluez5/upower.c:211:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/bluez5/upower.c:216:13: call_function: calling ‘add_filters’ from ‘upower_register’
#  173|   		return 0;
#  174|   
#  175|-> 	if (!dbus_connection_add_filter(this->conn, upower_filter_cb, this, NULL)) {
#  176|   		spa_log_error(this->log, "failed to add filter function");
#  177|   		return -EIO;

Error: COMPILER_WARNING: [#def757]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:40:25: note[note]: called from here
#   38|   
#   39|   	for (n = 0; n < unrolled; n += 32) {
#   40|-> 		in[0] = _mm256_load_ps(&s[0][n+ 0]);
#   41|   		in[1] = _mm256_load_ps(&s[0][n+ 8]);
#   42|   		in[2] = _mm256_load_ps(&s[0][n+16]);

Error: COMPILER_WARNING: [#def758]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:41:25: note[note]: called from here
#   39|   	for (n = 0; n < unrolled; n += 32) {
#   40|   		in[0] = _mm256_load_ps(&s[0][n+ 0]);
#   41|-> 		in[1] = _mm256_load_ps(&s[0][n+ 8]);
#   42|   		in[2] = _mm256_load_ps(&s[0][n+16]);
#   43|   		in[3] = _mm256_load_ps(&s[0][n+24]);

Error: COMPILER_WARNING: [#def759]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:42:25: note[note]: called from here
#   40|   		in[0] = _mm256_load_ps(&s[0][n+ 0]);
#   41|   		in[1] = _mm256_load_ps(&s[0][n+ 8]);
#   42|-> 		in[2] = _mm256_load_ps(&s[0][n+16]);
#   43|   		in[3] = _mm256_load_ps(&s[0][n+24]);
#   44|   

Error: COMPILER_WARNING: [#def760]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:43:25: note[note]: called from here
#   41|   		in[1] = _mm256_load_ps(&s[0][n+ 8]);
#   42|   		in[2] = _mm256_load_ps(&s[0][n+16]);
#   43|-> 		in[3] = _mm256_load_ps(&s[0][n+24]);
#   44|   
#   45|   		for (i = 1; i < n_src; i++) {

Error: COMPILER_WARNING: [#def761]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:46:33: note[note]: called from here
#   44|   
#   45|   		for (i = 1; i < n_src; i++) {
#   46|-> 			in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n+ 0]));
#   47|   			in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n+ 8]));
#   48|   			in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n+16]));

Error: COMPILER_WARNING: [#def762]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:47:33: note[note]: called from here
#   45|   		for (i = 1; i < n_src; i++) {
#   46|   			in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n+ 0]));
#   47|-> 			in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n+ 8]));
#   48|   			in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n+16]));
#   49|   			in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n+24]));

Error: COMPILER_WARNING: [#def763]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:48:33: note[note]: called from here
#   46|   			in[0] = _mm256_add_ps(in[0], _mm256_load_ps(&s[i][n+ 0]));
#   47|   			in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n+ 8]));
#   48|-> 			in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n+16]));
#   49|   			in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n+24]));
#   50|   		}

Error: COMPILER_WARNING: [#def764]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:49:33: note[note]: called from here
#   47|   			in[1] = _mm256_add_ps(in[1], _mm256_load_ps(&s[i][n+ 8]));
#   48|   			in[2] = _mm256_add_ps(in[2], _mm256_load_ps(&s[i][n+16]));
#   49|-> 			in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n+24]));
#   50|   		}
#   51|   		_mm256_store_ps(&d[n+ 0], in[0]);

Error: COMPILER_WARNING: [#def765]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:51:17: note[note]: called from here
#   49|   			in[3] = _mm256_add_ps(in[3], _mm256_load_ps(&s[i][n+24]));
#   50|   		}
#   51|-> 		_mm256_store_ps(&d[n+ 0], in[0]);
#   52|   		_mm256_store_ps(&d[n+ 8], in[1]);
#   53|   		_mm256_store_ps(&d[n+16], in[2]);

Error: COMPILER_WARNING: [#def766]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:52:17: note[note]: called from here
#   50|   		}
#   51|   		_mm256_store_ps(&d[n+ 0], in[0]);
#   52|-> 		_mm256_store_ps(&d[n+ 8], in[1]);
#   53|   		_mm256_store_ps(&d[n+16], in[2]);
#   54|   		_mm256_store_ps(&d[n+24], in[3]);

Error: COMPILER_WARNING: [#def767]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:53:17: note[note]: called from here
#   51|   		_mm256_store_ps(&d[n+ 0], in[0]);
#   52|   		_mm256_store_ps(&d[n+ 8], in[1]);
#   53|-> 		_mm256_store_ps(&d[n+16], in[2]);
#   54|   		_mm256_store_ps(&d[n+24], in[3]);
#   55|   	}

Error: COMPILER_WARNING: [#def768]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:54:17: note[note]: called from here
#   52|   		_mm256_store_ps(&d[n+ 8], in[1]);
#   53|   		_mm256_store_ps(&d[n+16], in[2]);
#   54|-> 		_mm256_store_ps(&d[n+24], in[3]);
#   55|   	}
#   56|   	for (; n < n_samples; n++) {

Error: COMPILER_WARNING: [#def769]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:238:22: note[note]: the ABI for passing parameters with 32-byte alignment has changed in GCC 4.6
#  236|   }
#  237|   
#  238|-> inline static __m256 _mm256_mul_pz(__m256 ab, __m256 cd)
#  239|   {
#  240|   	__m256 aa, bb, dc, x0, x1;

Error: COMPILER_WARNING: [#def770]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-avx.c:239:1: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#  237|   
#  238|   inline static __m256 _mm256_mul_pz(__m256 ab, __m256 cd)
#  239|-> {
#  240|   	__m256 aa, bb, dc, x0, x1;
#  241|   	aa = _mm256_moveldup_ps(ab);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def771]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:17: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:237:33: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:241:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:34: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:17: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  242|   		return NULL;
#  243|   
#  244|-> 	rdata = fftwf_alloc_real(size * 2);
#  245|   	cdata = fftwf_alloc_complex(size + 1);
#  246|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def772]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:245:17: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:237:33: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:241:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:34: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:245:17: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  243|   
#  244|   	rdata = fftwf_alloc_real(size * 2);
#  245|-> 	cdata = fftwf_alloc_complex(size + 1);
#  246|   
#  247|   	info->plan_r2c = fftwf_plan_dft_r2c_1d(size, rdata, cdata, FFTW_ESTIMATE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def773]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:247:26: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:237:33: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:241:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:34: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:247:26: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  245|   	cdata = fftwf_alloc_complex(size + 1);
#  246|   
#  247|-> 	info->plan_r2c = fftwf_plan_dft_r2c_1d(size, rdata, cdata, FFTW_ESTIMATE);
#  248|   	info->plan_c2r = fftwf_plan_dft_c2r_1d(size, cdata, rdata, FFTW_ESTIMATE);
#  249|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def774]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:248:26: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:237:33: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:241:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:34: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:248:26: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  246|   
#  247|   	info->plan_r2c = fftwf_plan_dft_r2c_1d(size, rdata, cdata, FFTW_ESTIMATE);
#  248|-> 	info->plan_c2r = fftwf_plan_dft_c2r_1d(size, cdata, rdata, FFTW_ESTIMATE);
#  249|   
#  250|   	fftwf_free(rdata);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def775]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:250:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:237:33: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:241:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:34: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:250:9: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  248|   	info->plan_c2r = fftwf_plan_dft_c2r_1d(size, cdata, rdata, FFTW_ESTIMATE);
#  249|   
#  250|-> 	fftwf_free(rdata);
#  251|   	fftwf_free(cdata);
#  252|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def776]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:251:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:237:33: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:241:12: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:244:34: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp-c.c:251:9: danger: ‘info’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  249|   
#  250|   	fftwf_free(rdata);
#  251|-> 	fftwf_free(cdata);
#  252|   
#  253|   	return info;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def777]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:116:9: warning[-Wanalyzer-malloc-leak]: leak of ‘dsp’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:102:22: enter_function: entry to ‘spa_fga_dsp_new’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:107:16: call_function: inlined call to ‘find_dsp_info’ from ‘spa_fga_dsp_new’
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:108:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:112:15: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:112:15: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:113:12: branch_false: following ‘false’ branch (when ‘dsp’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:116:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.c:116:9: danger: ‘dsp’ leaks here; was allocated at [(9)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/8)
#  114|   		return NULL;
#  115|   
#  116|-> 	pffft_select_cpu(cpu_flags);
#  117|   	dsp->cpu_flags = cpu_flags;
#  118|   	dsp->iface = SPA_INTERFACE_INIT(

Error: CPPCHECK_WARNING (CWE-190): [#def778]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:66: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   64|   static inline void spa_fga_dsp_clear(struct spa_fga_dsp *obj, float * SPA_RESTRICT dst, uint32_t n_samples)
#   65|   {
#   66|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, clear, 0,
#   67|   			dst, n_samples);
#   68|   }

Error: CPPCHECK_WARNING (CWE-190): [#def779]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:73: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   71|   		const float * SPA_RESTRICT src, uint32_t n_samples)
#   72|   {
#   73|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, copy, 0,
#   74|   			dst, src, n_samples);
#   75|   }

Error: CPPCHECK_WARNING (CWE-190): [#def780]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:81: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   79|   		float gain[], uint32_t n_gain, uint32_t n_samples)
#   80|   {
#   81|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, mix_gain, 0,
#   82|   			dst, src, n_src, gain, n_gain, n_samples);
#   83|   }

Error: CPPCHECK_WARNING (CWE-190): [#def781]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:88: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   86|   		const float * SPA_RESTRICT b, uint32_t n_samples)
#   87|   {
#   88|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, sum, 0,
#   89|   			dst, a, b, n_samples);
#   90|   }

Error: CPPCHECK_WARNING (CWE-190): [#def782]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:94: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   92|   static inline void *spa_fga_dsp_fft_new(struct spa_fga_dsp *obj, uint32_t size, bool real)
#   93|   {
#   94|-> 	return spa_api_method_r(void *, NULL, spa_fga_dsp, &obj->iface, fft_new, 0,
#   95|   			size, real);
#   96|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def783]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:94:16: warning[-Wanalyzer-malloc-leak]: leak of ‘conv’
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:261:19: enter_function: entry to ‘convolver_new’
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:266:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:269:22: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:277:12: branch_false: following ‘false’ branch (when ‘conv’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:280:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:282:12: branch_false: following ‘false’ branch (when ‘irlen != 0’)...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/convolver.c:289:31: call_function: calling ‘convolver1_new’ from ‘convolver_new’
#   92|   static inline void *spa_fga_dsp_fft_new(struct spa_fga_dsp *obj, uint32_t size, bool real)
#   93|   {
#   94|-> 	return spa_api_method_r(void *, NULL, spa_fga_dsp, &obj->iface, fft_new, 0,
#   95|   			size, real);
#   96|   }

Error: CPPCHECK_WARNING (CWE-190): [#def784]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:99: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   97|   static inline void spa_fga_dsp_fft_free(struct spa_fga_dsp *obj, void *fft)
#   98|   {
#   99|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, fft_free, 0,
#  100|   			fft);
#  101|   }

Error: CPPCHECK_WARNING (CWE-190): [#def785]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:104: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  102|   static inline void *spa_fga_dsp_fft_memalloc(struct spa_fga_dsp *obj, uint32_t size, bool real)
#  103|   {
#  104|-> 	return spa_api_method_r(void *, NULL, spa_fga_dsp, &obj->iface, fft_memalloc, 0,
#  105|   			size, real);
#  106|   }

Error: CPPCHECK_WARNING (CWE-190): [#def786]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:109: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  107|   static inline void spa_fga_dsp_fft_memfree(struct spa_fga_dsp *obj, void *mem)
#  108|   {
#  109|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, fft_memfree, 0,
#  110|   			mem);
#  111|   }

Error: CPPCHECK_WARNING (CWE-190): [#def787]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:114: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  112|   static inline void spa_fga_dsp_fft_memclear(struct spa_fga_dsp *obj, void *mem, uint32_t size, bool real)
#  113|   {
#  114|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, fft_memclear, 0,
#  115|   			mem, size, real);
#  116|   }

Error: CPPCHECK_WARNING (CWE-190): [#def788]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:120: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  118|   		const float * SPA_RESTRICT src, float * SPA_RESTRICT dst)
#  119|   {
#  120|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, fft_run, 0,
#  121|   			fft, direction, src, dst);
#  122|   }

Error: CPPCHECK_WARNING (CWE-190): [#def789]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:127: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  125|   		const float * SPA_RESTRICT b, uint32_t len, const float scale)
#  126|   {
#  127|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, fft_cmul, 0,
#  128|   			fft, dst, a, b, len, scale);
#  129|   }

Error: CPPCHECK_WARNING (CWE-190): [#def790]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:135: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  133|   		uint32_t len, const float scale)
#  134|   {
#  135|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, fft_cmuladd, 0,
#  136|   			fft, dst, src, a, b, len, scale);
#  137|   }

Error: CPPCHECK_WARNING (CWE-190): [#def791]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:142: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  140|   		const float mult, const float add, uint32_t n_samples)
#  141|   {
#  142|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, linear, 0,
#  143|   			dst, src, mult, add, n_samples);
#  144|   }

Error: CPPCHECK_WARNING (CWE-190): [#def792]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:149: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  147|   		const float * SPA_RESTRICT src[], uint32_t n_src, uint32_t n_samples)
#  148|   {
#  149|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, mult, 0,
#  150|   			dst, src, n_src, n_samples);
#  151|   }

Error: CPPCHECK_WARNING (CWE-190): [#def793]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   		uint32_t n_src, uint32_t n_samples)
#  156|   {
#  157|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, biquad_run, 0,
#  158|   			bq, n_bq, bq_stride, out, in, n_src, n_samples);
#  159|   }

Error: CPPCHECK_WARNING (CWE-190): [#def794]
pipewire-1.5.81/spa/plugins/filter-graph/audio-dsp.h:164: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  162|   		float *dst, const float *src, uint32_t n_samples)
#  163|   {
#  164|-> 	spa_api_method_v(spa_fga_dsp, &obj->iface, delay, 0,
#  165|   			buffer, pos, n_buffer, delay, dst, src, n_samples);
#  166|   }

Error: CPPCHECK_WARNING (CWE-457): [#def795]
pipewire-1.5.81/spa/plugins/filter-graph/filter-graph.c:785: warning[uninitvar]: Uninitialized variable: soft_vols
#  783|   		spa_pod_builder_prop(&b.b, SPA_PROP_softVolumes, 0);
#  784|   		spa_pod_builder_array(&b.b, sizeof(float), SPA_TYPE_Float,
#  785|-> 				vol->n_volumes, soft_vols);
#  786|   		props = spa_pod_builder_pop(&b.b, &f[0]);
#  787|   

Error: CPPCHECK_WARNING (CWE-476): [#def796]
pipewire-1.5.81/spa/plugins/filter-graph/filter-graph.c:960: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  958|   
#  959|   	desc = calloc(1, sizeof(*desc));
#  960|-> 	desc->ref = 1;
#  961|   	desc->plugin = pl;
#  962|   	spa_list_init(&desc->link);

Error: CPPCHECK_WARNING (CWE-476): [#def797]
pipewire-1.5.81/spa/plugins/filter-graph/filter-graph.c:961: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  959|   	desc = calloc(1, sizeof(*desc));
#  960|   	desc->ref = 1;
#  961|-> 	desc->plugin = pl;
#  962|   	spa_list_init(&desc->link);
#  963|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def798]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1294:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1415:21: enter_function: entry to ‘new_setup_c’
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1423:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1433:28: call_function: inlined call to ‘pffft_aligned_malloc’ from ‘new_setup_c’
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1433:9: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1438:12: branch_true: following ‘true’ branch (when ‘transform == 0’)...
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1450:52: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1450:17: call_function: calling ‘rffti1_ps’ from ‘new_setup_c’
# 1292|   				i += 2;
# 1293|   				fi += 1;
# 1294|-> 				wa[i - 2] = cosf(fi * argld);
# 1295|   				wa[i - 1] = sinf(fi * argld);
# 1296|   			}

Error: CPPCHECK_WARNING (CWE-476): [#def799]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1429: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1427|   	}
# 1428|   	//assert((N % 32) == 0);
# 1429|-> 	s->N = N;
# 1430|   	s->transform = transform;
# 1431|   	/* nb of complex simd vectors */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def800]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1429:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1417:42: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1429:9: danger: ‘s’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1427|   	}
# 1428|   	//assert((N % 32) == 0);
# 1429|-> 	s->N = N;
# 1430|   	s->transform = transform;
# 1431|   	/* nb of complex simd vectors */

Error: CPPCHECK_WARNING (CWE-476): [#def801]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1430: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1428|   	//assert((N % 32) == 0);
# 1429|   	s->N = N;
# 1430|-> 	s->transform = transform;
# 1431|   	/* nb of complex simd vectors */
# 1432|   	s->Ncvec = (transform == PFFFT_REAL ? N / 2 : N) / SIMD_SZ;

Error: CPPCHECK_WARNING (CWE-476): [#def802]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1432: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1430|   	s->transform = transform;
# 1431|   	/* nb of complex simd vectors */
# 1432|-> 	s->Ncvec = (transform == PFFFT_REAL ? N / 2 : N) / SIMD_SZ;
# 1433|   	s->data = (v4sf *) pffft_aligned_malloc(2 * s->Ncvec * sizeof(v4sf));
# 1434|   	s->e = (float *)s->data;

Error: CPPCHECK_WARNING (CWE-476): [#def803]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1433: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1431|   	/* nb of complex simd vectors */
# 1432|   	s->Ncvec = (transform == PFFFT_REAL ? N / 2 : N) / SIMD_SZ;
# 1433|-> 	s->data = (v4sf *) pffft_aligned_malloc(2 * s->Ncvec * sizeof(v4sf));
# 1434|   	s->e = (float *)s->data;
# 1435|   	s->twiddle =

Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1433:28: warning[-Wanalyzer-malloc-leak]: leak of ‘s’
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1417:42: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1433:28: danger: ‘s’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1431|   	/* nb of complex simd vectors */
# 1432|   	s->Ncvec = (transform == PFFFT_REAL ? N / 2 : N) / SIMD_SZ;
# 1433|-> 	s->data = (v4sf *) pffft_aligned_malloc(2 * s->Ncvec * sizeof(v4sf));
# 1434|   	s->e = (float *)s->data;
# 1435|   	s->twiddle =

Error: CPPCHECK_WARNING (CWE-476): [#def805]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1434: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1432|   	s->Ncvec = (transform == PFFFT_REAL ? N / 2 : N) / SIMD_SZ;
# 1433|   	s->data = (v4sf *) pffft_aligned_malloc(2 * s->Ncvec * sizeof(v4sf));
# 1434|-> 	s->e = (float *)s->data;
# 1435|   	s->twiddle =
# 1436|   	    (float *)(s->data + (2 * s->Ncvec * (SIMD_SZ - 1)) / SIMD_SZ);

Error: CPPCHECK_WARNING (CWE-476): [#def806]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1435: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1433|   	s->data = (v4sf *) pffft_aligned_malloc(2 * s->Ncvec * sizeof(v4sf));
# 1434|   	s->e = (float *)s->data;
# 1435|-> 	s->twiddle =
# 1436|   	    (float *)(s->data + (2 * s->Ncvec * (SIMD_SZ - 1)) / SIMD_SZ);
# 1437|   

Error: CPPCHECK_WARNING (CWE-476): [#def807]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1436: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1434|   	s->e = (float *)s->data;
# 1435|   	s->twiddle =
# 1436|-> 	    (float *)(s->data + (2 * s->Ncvec * (SIMD_SZ - 1)) / SIMD_SZ);
# 1437|   
# 1438|   	if (transform == PFFFT_REAL) {

Error: CPPCHECK_WARNING (CWE-476): [#def808]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1439: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1437|   
# 1438|   	if (transform == PFFFT_REAL) {
# 1439|-> 		for (k = 0; k < s->Ncvec; ++k) {
# 1440|   			int i = k / SIMD_SZ;
# 1441|   			int j = k % SIMD_SZ;

Error: CPPCHECK_WARNING (CWE-476): [#def809]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1452: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1450|   		rffti1_ps(N / SIMD_SZ, s->twiddle, s->ifac);
# 1451|   	} else {
# 1452|-> 		for (k = 0; k < s->Ncvec; ++k) {
# 1453|   			int i = k / SIMD_SZ;
# 1454|   			int j = k % SIMD_SZ;

Error: CPPCHECK_WARNING (CWE-476): [#def810]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1467: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1465|   
# 1466|   	/* check that N is decomposable with allowed prime factors */
# 1467|-> 	for (k = 0, m = 1; k < s->ifac[1]; ++k) {
# 1468|   		m *= s->ifac[2 + k];
# 1469|   	}

Error: CPPCHECK_WARNING (CWE-476): [#def811]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:1468: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: s
# 1466|   	/* check that N is decomposable with allowed prime factors */
# 1467|   	for (k = 0, m = 1; k < s->ifac[1]; ++k) {
# 1468|-> 		m *= s->ifac[2 + k];
# 1469|   	}
# 1470|   	if (m != N / SIMD_SZ) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def812]
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:2313:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p0’
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:2308:24: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:2309:12: branch_false: following ‘false’ branch (when ‘p0’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:2311:23: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/pffft.c:2313:9: danger: ‘p0’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 2311|   	p = (void *)(((size_t)p0 + MALLOC_V4SF_ALIGNMENT) &
# 2312|   		     (~((size_t)(MALLOC_V4SF_ALIGNMENT - 1))));
# 2313|-> 	*((void **)p - 1) = p0;
# 2314|   	return p;
# 2315|   }

Error: COMPILER_WARNING (CWE-252): [#def813]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_builtin.c: scope_hint: In function ‘do_exec’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_builtin.c:2644:9: warning[-Wunused-result]: ignoring return value of ‘pipe2’ declared with attribute ‘warn_unused_result’
# 2644 |         pipe2(stdin_pipe, 0);
#      |         ^~~~~~~~~~~~~~~~~~~~
# 2642|   	argv[argc++] = NULL;
# 2643|   
# 2644|-> 	pipe2(stdin_pipe, 0);
# 2645|   	pipe2(stdout_pipe, 0);
# 2646|   

Error: COMPILER_WARNING (CWE-252): [#def814]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_builtin.c:2645:9: warning[-Wunused-result]: ignoring return value of ‘pipe2’ declared with attribute ‘warn_unused_result’
# 2645 |         pipe2(stdout_pipe, 0);
#      |         ^~~~~~~~~~~~~~~~~~~~~
# 2643|   
# 2644|   	pipe2(stdin_pipe, 0);
# 2645|-> 	pipe2(stdout_pipe, 0);
# 2646|   
# 2647|   	impl->write_fd = stdin_pipe[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def815]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:71:15: enter_function: entry to ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:82:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:88:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:95:12: branch_false: following ‘false’ branch (when ‘config’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:13: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:13: call_function: inlined call to ‘spa_json_begin_object’ from ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:98:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘ebur128_instantiate’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.c:99:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ebur128.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): [#def816]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.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): [#def817]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:152: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  150|   
#  151|   	desc = calloc(1, sizeof(*desc));
#  152|-> 	desc->d = d;
#  153|   
#  154|   	desc->desc.instantiate = ladspa_instantiate;

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

Error: CPPCHECK_WARNING (CWE-476): [#def819]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:154: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  152|   	desc->d = d;
#  153|   
#  154|-> 	desc->desc.instantiate = ladspa_instantiate;
#  155|   	desc->desc.cleanup = d->cleanup;
#  156|   	desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;

Error: CPPCHECK_WARNING (CWE-476): [#def820]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:155: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  153|   
#  154|   	desc->desc.instantiate = ladspa_instantiate;
#  155|-> 	desc->desc.cleanup = d->cleanup;
#  156|   	desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
#  157|   	desc->desc.activate = d->activate;

Error: CPPCHECK_WARNING (CWE-476): [#def821]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:156: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  154|   	desc->desc.instantiate = ladspa_instantiate;
#  155|   	desc->desc.cleanup = d->cleanup;
#  156|-> 	desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
#  157|   	desc->desc.activate = d->activate;
#  158|   	desc->desc.deactivate = d->deactivate;

Error: CPPCHECK_WARNING (CWE-476): [#def822]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:157: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  155|   	desc->desc.cleanup = d->cleanup;
#  156|   	desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
#  157|-> 	desc->desc.activate = d->activate;
#  158|   	desc->desc.deactivate = d->deactivate;
#  159|   	desc->desc.run = d->run;

Error: CPPCHECK_WARNING (CWE-476): [#def823]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:158: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  156|   	desc->desc.connect_port = (__typeof__(desc->desc.connect_port))d->connect_port;
#  157|   	desc->desc.activate = d->activate;
#  158|-> 	desc->desc.deactivate = d->deactivate;
#  159|   	desc->desc.run = d->run;
#  160|   

Error: CPPCHECK_WARNING (CWE-476): [#def824]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:159: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  157|   	desc->desc.activate = d->activate;
#  158|   	desc->desc.deactivate = d->deactivate;
#  159|-> 	desc->desc.run = d->run;
#  160|   
#  161|   	desc->desc.free = ladspa_free;

Error: CPPCHECK_WARNING (CWE-476): [#def825]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:161: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  159|   	desc->desc.run = d->run;
#  160|   
#  161|-> 	desc->desc.free = ladspa_free;
#  162|   
#  163|   	desc->desc.name = d->Label;

Error: CPPCHECK_WARNING (CWE-476): [#def826]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:163: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  161|   	desc->desc.free = ladspa_free;
#  162|   
#  163|-> 	desc->desc.name = d->Label;
#  164|   	desc->desc.flags = 0;
#  165|   

Error: CPPCHECK_WARNING (CWE-476): [#def827]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:164: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  162|   
#  163|   	desc->desc.name = d->Label;
#  164|-> 	desc->desc.flags = 0;
#  165|   
#  166|   	desc->desc.n_ports = d->PortCount;

Error: CPPCHECK_WARNING (CWE-476): [#def828]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:166: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  164|   	desc->desc.flags = 0;
#  165|   
#  166|-> 	desc->desc.n_ports = d->PortCount;
#  167|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  168|   

Error: CPPCHECK_WARNING (CWE-476): [#def829]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:167: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  165|   
#  166|   	desc->desc.n_ports = d->PortCount;
#  167|-> 	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  168|   
#  169|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def830]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:169: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  167|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  168|   
#  169|-> 	for (i = 0; i < desc->desc.n_ports; i++) {
#  170|   		desc->desc.ports[i].index = i;
#  171|   		desc->desc.ports[i].name = d->PortNames[i];

Error: CPPCHECK_WARNING (CWE-476): [#def831]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  168|   
#  169|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  170|-> 		desc->desc.ports[i].index = i;
#  171|   		desc->desc.ports[i].name = d->PortNames[i];
#  172|   		desc->desc.ports[i].flags = d->PortDescriptors[i];

Error: GCC_ANALYZER_WARNING (CWE-476): [#def832]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(*<unknown>.PortCount & 4294967295, 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:140:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:167:28: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:169:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170:33: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:170: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)
#  168|   
#  169|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  170|-> 		desc->desc.ports[i].index = i;
#  171|   		desc->desc.ports[i].name = d->PortNames[i];
#  172|   		desc->desc.ports[i].flags = d->PortDescriptors[i];

Error: CPPCHECK_WARNING (CWE-476): [#def833]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:171: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  169|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  170|   		desc->desc.ports[i].index = i;
#  171|-> 		desc->desc.ports[i].name = d->PortNames[i];
#  172|   		desc->desc.ports[i].flags = d->PortDescriptors[i];
#  173|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);

Error: CPPCHECK_WARNING (CWE-476): [#def834]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:172: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  170|   		desc->desc.ports[i].index = i;
#  171|   		desc->desc.ports[i].name = d->PortNames[i];
#  172|-> 		desc->desc.ports[i].flags = d->PortDescriptors[i];
#  173|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
#  174|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def835]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:175:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:140:41: enter_function: entry to ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: call_function: calling ‘find_desc’ from ‘ladspa_plugin_make_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:147:13: return_function: returning to ‘ladspa_plugin_make_desc’ from ‘find_desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:151:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:169:21: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:175:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_ladspa.c:175:16: danger: ‘desc’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  173|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
#  174|   	}
#  175|-> 	return &desc->desc;
#  176|   }
#  177|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:13: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:13: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  390|   	i->features[n_features++] = &buf_size_features[1];
#  391|   	i->features[n_features++] = &buf_size_features[2];
#  392|-> 	if (lilv_plugin_has_feature(p->p, c->worker_schedule)) {
#  393|   		i->work_schedule.handle = i;
#  394|   		i->work_schedule.schedule_work = work_schedule;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def837]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  399|   
#  400|   	i->options[0] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  401|-> 		context_map(c, LV2_BUF_SIZE__minBlockLength), sizeof(int32_t),
#  402|   		c->atom_Int, &min_block_length };
#  403|   	i->options[1] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def838]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:404:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:404:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  402|   		c->atom_Int, &min_block_length };
#  403|   	i->options[1] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  404|-> 		context_map(c, LV2_BUF_SIZE__maxBlockLength), sizeof(int32_t),
#  405|   		c->atom_Int, &max_block_length };
#  406|   	i->options[2] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def839]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:407:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  405|   		c->atom_Int, &max_block_length };
#  406|   	i->options[2] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  407|-> 		context_map(c, LV2_BUF_SIZE__sequenceSize), sizeof(int32_t),
#  408|   		c->atom_Int, &seq_size };
#  409|   	i->options[3] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def840]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:410:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:410:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  408|   		c->atom_Int, &seq_size };
#  409|   	i->options[3] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  410|-> 		context_map(c, "http://lv2plug.in/ns/ext/buf-size#nominalBlockLength"), sizeof(int32_t),
#  411|   		c->atom_Int, &i->block_length },
#  412|   	i->options[4] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def841]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:413:17: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:413:17: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  411|   		c->atom_Int, &i->block_length },
#  412|   	i->options[4] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0,
#  413|-> 		context_map(c, LV2_PARAMETERS__sampleRate), sizeof(float),
#  414|   		c->atom_Float, &fsample_rate };
#  415|   	i->options[5] = (LV2_Options_Option) { LV2_OPTIONS_INSTANCE, 0, 0, 0, 0, NULL };

Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:423:23: warning[-Wanalyzer-malloc-leak]: leak of ‘i’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:374:13: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:375:12: branch_false: following ‘false’ branch (when ‘i’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:378:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:392:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:401:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:423:23: danger: ‘i’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  421|   	spa_assert(n_features < SPA_N_ELEMENTS(i->features));
#  422|   
#  423|-> 	i->instance = lilv_plugin_instantiate(p->p, SampleRate, i->features);
#  424|   	if (i->instance == NULL) {
#  425|   		free(i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def843]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/2)
#  522|   	desc->desc.flags = 0;
#  523|   
#  524|-> 	desc->desc.n_ports = lilv_plugin_get_num_ports(p->p);
#  525|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  526|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def844]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:524:30: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  522|   	desc->desc.flags = 0;
#  523|   
#  524|-> 	desc->desc.n_ports = lilv_plugin_get_num_ports(p->p);
#  525|   	desc->desc.ports = calloc(desc->desc.n_ports, sizeof(struct spa_fga_port));
#  526|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def845]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  529|   	controls = alloca(desc->desc.n_ports * sizeof(float));
#  530|   
#  531|-> 	latent = lilv_plugin_has_latency(p->p);
#  532|   	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def846]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: 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/12/codeFlows/0/threadFlows/0/locations/2)
#  529|   	controls = alloca(desc->desc.n_ports * sizeof(float));
#  530|   
#  531|-> 	latent = lilv_plugin_has_latency(p->p);
#  532|   	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def847]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:531:18: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  529|   	controls = alloca(desc->desc.n_ports * sizeof(float));
#  530|   
#  531|-> 	latent = lilv_plugin_has_latency(p->p);
#  532|   	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def848]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  530|   
#  531|   	latent = lilv_plugin_has_latency(p->p);
#  532|-> 	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   
#  534|   	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def849]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: 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/16/codeFlows/0/threadFlows/0/locations/2)
#  530|   
#  531|   	latent = lilv_plugin_has_latency(p->p);
#  532|-> 	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   
#  534|   	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def850]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:532:34: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  530|   
#  531|   	latent = lilv_plugin_has_latency(p->p);
#  532|-> 	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   
#  534|   	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def851]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/2)
#  532|   	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   
#  534|-> 	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def852]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534: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/18/codeFlows/0/threadFlows/0/locations/2)
#  532|   	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   
#  534|-> 	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def853]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:534:9: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  532|   	latency_index = latent ? lilv_plugin_get_latency_port_index(p->p) : 0;
#  533|   
#  534|-> 	lilv_plugin_get_port_ranges_float(p->p, mins, maxes, controls);
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def854]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/2)
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def855]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537: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/20/codeFlows/0/threadFlows/0/locations/2)
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def856]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def857]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/2)
#  535|   
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|-> 		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|                   const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def858]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/2)
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  540|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def859]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538: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/27/codeFlows/0/threadFlows/0/locations/2)
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  540|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def860]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  540|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def861]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:538:42: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/2)
#  536|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  537|   		const LilvPort *port = lilv_plugin_get_port_by_index(p->p, i);
#  538|->                 const LilvNode *symbol = lilv_port_get_symbol(p->p, port);
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  540|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def862]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:541:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:541:17: danger: ‘fp’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/2)
#  539|   		struct spa_fga_port *fp = &desc->desc.ports[i];
#  540|   
#  541|-> 		fp->index = i;
#  542|   		fp->name = strdup(lilv_node_as_string(symbol));
#  543|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def863]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/2)
#  540|   
#  541|   		fp->index = i;
#  542|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  543|   
#  544|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def864]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542: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/34/codeFlows/0/threadFlows/0/locations/2)
#  540|   
#  541|   		fp->index = i;
#  542|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  543|   
#  544|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def865]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  540|   
#  541|   		fp->index = i;
#  542|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  543|   
#  544|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def866]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:542:28: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/2)
#  540|   
#  541|   		fp->index = i;
#  542|-> 		fp->name = strdup(lilv_node_as_string(symbol));
#  543|   
#  544|   		fp->flags = 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def867]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/2)
#  543|   
#  544|   		fp->flags = 0;
#  545|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def868]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545: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/38/codeFlows/0/threadFlows/0/locations/2)
#  543|   
#  544|   		fp->flags = 0;
#  545|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def869]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
#  543|   
#  544|   		fp->flags = 0;
#  545|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def870]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:545:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/2)
#  543|   
#  544|   		fp->flags = 0;
#  545|-> 		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def871]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/2)
#  545|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def872]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547: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/42/codeFlows/0/threadFlows/0/locations/2)
#  545|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def873]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
#  545|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def874]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:547:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/2)
#  545|   		if (lilv_port_is_a(p->p, port, c->lv2_InputPort))
#  546|   			fp->flags |= SPA_FGA_PORT_INPUT;
#  547|-> 		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def875]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/2)
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def876]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549: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)
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def877]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def878]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:549:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/2)
#  547|   		if (lilv_port_is_a(p->p, port, c->lv2_OutputPort))
#  548|   			fp->flags |= SPA_FGA_PORT_OUTPUT;
#  549|-> 		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def879]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/2)
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|   		if (lilv_port_has_property(p->p, port, c->lv2_Optional))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def880]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551: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)
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|   		if (lilv_port_has_property(p->p, port, c->lv2_Optional))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def881]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/0)
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|   		if (lilv_port_has_property(p->p, port, c->lv2_Optional))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def882]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:551:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/2)
#  549|   		if (lilv_port_is_a(p->p, port, c->lv2_ControlPort))
#  550|   			fp->flags |= SPA_FGA_PORT_CONTROL;
#  551|-> 		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|   		if (lilv_port_has_property(p->p, port, c->lv2_Optional))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def883]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:521:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/2)
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|-> 		if (lilv_port_has_property(p->p, port, c->lv2_Optional))
#  554|   			fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
#  555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def884]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘calloc((long unsigned int)lilv_plugin_get_num_ports(*(struct plugin *)plugin.p), 48)’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553: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)
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|-> 		if (lilv_port_has_property(p->p, port, c->lv2_Optional))
#  554|   			fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
#  555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def885]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|-> 		if (lilv_port_has_property(p->p, port, c->lv2_Optional))
#  554|   			fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
#  555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def886]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: warning[-Wanalyzer-malloc-leak]: leak of ‘fp’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:525:28: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:537:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:553:21: danger: ‘fp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/2)
#  551|   		if (lilv_port_is_a(p->p, port, c->lv2_AudioPort))
#  552|   			fp->flags |= SPA_FGA_PORT_AUDIO;
#  553|-> 		if (lilv_port_has_property(p->p, port, c->lv2_Optional))
#  554|   			fp->flags |= SPA_FGA_PORT_SUPPORTS_NULL_DATA;
#  555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def887]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:564:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:508:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:511:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:536:21: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:564:16: branch_false: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_lv2.c:564:16: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
#  562|   		fp->def = controls[i];
#  563|   	}
#  564|-> 	return &desc->desc;
#  565|   }
#  566|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def888]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:218:13: enter_function: entry to ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:221:26: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.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): [#def889]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:218:13: enter_function: entry to ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:222:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘spatializer_reload’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:230:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.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): [#def890]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:221:26: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.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): [#def891]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:232:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:222:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.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): [#def892]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘left_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:221:26: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: danger: ‘left_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: GCC_ANALYZER_WARNING (CWE-401): [#def893]
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: warning[-Wanalyzer-malloc-leak]: leak of ‘right_ir’
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:222:27: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:227:29: branch_true: following ‘true’ branch (when ‘i != 3’)...
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:228:40: branch_true: ...to here
pipewire-1.5.81/spa/plugins/filter-graph/plugin_sofa.c:233:9: danger: ‘right_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: CPPCHECK_WARNING (CWE-457): [#def894]
pipewire-1.5.81/spa/plugins/jack/jack-device.c:326: error[uninitvar]: Uninitialized variable: idx
#  324|   			return res;
#  325|   		}
#  326|-> 		activate_profile(this, idx);
#  327|   		break;
#  328|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def895]
pipewire-1.5.81/spa/plugins/support/cpu-x86.c:177: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  175|   			mxcsr &= ~0x8040;
#  176|   		_mm_setcsr(mxcsr);
#  177|-> 		spa_log_debug(impl->log, "%p: zero-denormals:%s",
#  178|   				impl, enable ? "on" : "off");
#  179|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def896]
pipewire-1.5.81/spa/plugins/support/cpu.c:170: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  168|   		SPA_FOR_EACH_ELEMENT_VAR(dmi_vendor_table, t) {
#  169|   			if (spa_strstartswith(s, t->vendor)) {
#  170|-> 				spa_log_debug(impl->log, "Virtualization %s found in DMI (%s)",
#  171|   						s, *dv);
#  172|   				impl->vm_type = t->id;

Error: CPPCHECK_WARNING (CWE-190): [#def897]
pipewire-1.5.81/spa/plugins/support/cpu.c:262: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  260|   	}
#  261|   
#  262|-> 	spa_log_debug(this->log, "%p: count:%d align:%d flags:%08x",
#  263|   			this, this->count, this->max_align, this->flags);
#  264|   

Error: CPPCHECK_WARNING (CWE-190): [#def898]
pipewire-1.5.81/spa/plugins/support/dbus.c:77: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   75|   	struct impl *impl = conn->impl;
#   76|   
#   77|-> 	spa_log_debug(impl->log, "impl:%p", impl);
#   78|   	if (dbus_connection_dispatch(conn->conn) == DBUS_DISPATCH_COMPLETE)
#   79|   		spa_loop_utils_enable_idle(impl->utils, conn->dispatch_event, false);

Error: CPPCHECK_WARNING (CWE-190): [#def899]
pipewire-1.5.81/spa/plugins/support/dbus.c:87: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   85|   	struct impl *impl = c->impl;
#   86|   
#   87|-> 	spa_log_debug(impl->log, "impl:%p %d", impl, status);
#   88|   	spa_loop_utils_enable_idle(impl->utils, c->dispatch_event,
#   89|   			status == DBUS_DISPATCH_COMPLETE ? false : true);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def900]
pipewire-1.5.81/spa/plugins/support/dbus.c:98:14: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:139:20: enter_function: entry to ‘add_watch’
pipewire-1.5.81/spa/plugins/support/dbus.c:147:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: call_function: calling ‘dbus_to_io’ from ‘add_watch’
#   96|   
#   97|   	/* no watch flags for disabled watches */
#   98|-> 	if (!dbus_watch_get_enabled(watch))
#   99|   		return 0;
#  100|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def901]
pipewire-1.5.81/spa/plugins/support/dbus.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:139:20: enter_function: entry to ‘add_watch’
pipewire-1.5.81/spa/plugins/support/dbus.c:147:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: call_function: calling ‘dbus_to_io’ from ‘add_watch’
#   99|   		return 0;
#  100|   
#  101|-> 	flags = dbus_watch_get_flags(watch);
#  102|   	mask = SPA_IO_HUP | SPA_IO_ERR;
#  103|   

Error: CPPCHECK_WARNING (CWE-190): [#def902]
pipewire-1.5.81/spa/plugins/support/dbus.c:145: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  143|   	struct source_data *data;
#  144|   
#  145|-> 	spa_log_debug(impl->log, "add watch %p %d", watch, dbus_watch_get_unix_fd(watch));
#  146|   
#  147|   	data = calloc(1, sizeof(struct source_data));

Error: CPPCHECK_WARNING (CWE-476): [#def903]
pipewire-1.5.81/spa/plugins/support/dbus.c:148: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  146|   
#  147|   	data = calloc(1, sizeof(struct source_data));
#  148|-> 	data->conn = conn;
#  149|   	/* we dup because dbus tends to add the same fd multiple times and our epoll
#  150|   	 * implementation does not like that */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def904]
pipewire-1.5.81/spa/plugins/support/dbus.c:148:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:147:16: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/support/dbus.c:148:9: danger: ‘data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  146|   
#  147|   	data = calloc(1, sizeof(struct source_data));
#  148|-> 	data->conn = conn;
#  149|   	/* we dup because dbus tends to add the same fd multiple times and our epoll
#  150|   	 * implementation does not like that */

Error: CPPCHECK_WARNING (CWE-476): [#def905]
pipewire-1.5.81/spa/plugins/support/dbus.c:151: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  149|   	/* we dup because dbus tends to add the same fd multiple times and our epoll
#  150|   	 * implementation does not like that */
#  151|-> 	data->source = spa_loop_utils_add_io(impl->utils,
#  152|   				dup(dbus_watch_get_unix_fd(watch)),
#  153|   				dbus_to_io(watch), true, handle_io_event, watch);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def906]
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(dbus_watch_get_unix_fd(watch))’
pipewire-1.5.81/spa/plugins/support/dbus.c:139:20: enter_function: entry to ‘add_watch’
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: acquire_resource: opened here
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: call_function: calling ‘spa_loop_utils_add_io’ from ‘add_watch’
#  149|   	/* we dup because dbus tends to add the same fd multiple times and our epoll
#  150|   	 * implementation does not like that */
#  151|-> 	data->source = spa_loop_utils_add_io(impl->utils,
#  152|   				dup(dbus_watch_get_unix_fd(watch)),
#  153|   				dbus_to_io(watch), true, handle_io_event, watch);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def907]
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:147:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  149|   	/* we dup because dbus tends to add the same fd multiple times and our epoll
#  150|   	 * implementation does not like that */
#  151|-> 	data->source = spa_loop_utils_add_io(impl->utils,
#  152|   				dup(dbus_watch_get_unix_fd(watch)),
#  153|   				dbus_to_io(watch), true, handle_io_event, watch);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def908]
pipewire-1.5.81/spa/plugins/support/dbus.c:157:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(dbus_watch_get_unix_fd(watch))’
pipewire-1.5.81/spa/plugins/support/dbus.c:139:20: enter_function: entry to ‘add_watch’
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: acquire_resource: opened here
pipewire-1.5.81/spa/plugins/support/dbus.c:151:24: call_function: calling ‘spa_loop_utils_add_io’ from ‘add_watch’
#  155|   
#  156|   	dbus_watch_set_data(watch, data, source_data_free);
#  157|-> 	return TRUE;
#  158|   }
#  159|   

Error: CPPCHECK_WARNING (CWE-190): [#def909]
pipewire-1.5.81/spa/plugins/support/dbus.c:164: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  162|   	struct connection *conn = userdata;
#  163|   	struct impl *impl = conn->impl;
#  164|-> 	spa_log_debug(impl->log, "remove watch %p", watch);
#  165|   	dbus_watch_set_data(watch, NULL, NULL);
#  166|   }

Error: CPPCHECK_WARNING (CWE-190): [#def910]
pipewire-1.5.81/spa/plugins/support/dbus.c:174: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  172|   	struct source_data *data;
#  173|   
#  174|-> 	spa_log_debug(impl->log, "toggle watch %p", watch);
#  175|   
#  176|   	if ((data = dbus_watch_get_data(watch)) == NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def911]
pipewire-1.5.81/spa/plugins/support/dbus.c:198: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  196|   	impl = conn->impl;
#  197|   
#  198|-> 	spa_log_debug(impl->log, "timeout %p conn:%p impl:%p", timeout, conn, impl);
#  199|   
#  200|   	if (dbus_timeout_get_enabled(timeout)) {

Error: CPPCHECK_WARNING (CWE-190): [#def912]
pipewire-1.5.81/spa/plugins/support/dbus.c:221: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  219|   		return FALSE;
#  220|   
#  221|-> 	spa_log_debug(impl->log, "add timeout %p conn:%p impl:%p", timeout, conn, impl);
#  222|   
#  223|   	data = calloc(1, sizeof(struct source_data));

Error: CPPCHECK_WARNING (CWE-476): [#def913]
pipewire-1.5.81/spa/plugins/support/dbus.c:224: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  222|   
#  223|   	data = calloc(1, sizeof(struct source_data));
#  224|-> 	data->conn = conn;
#  225|   	data->source = spa_loop_utils_add_timer(impl->utils, handle_timer_event, timeout);
#  226|   	spa_list_append(&conn->source_list, &data->link);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def914]
pipewire-1.5.81/spa/plugins/support/dbus.c:224:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
pipewire-1.5.81/spa/plugins/support/dbus.c:218:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/dbus.c:221:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/dbus.c:223:16: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/support/dbus.c:224:9: danger: ‘data’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/2)
#  222|   
#  223|   	data = calloc(1, sizeof(struct source_data));
#  224|-> 	data->conn = conn;
#  225|   	data->source = spa_loop_utils_add_timer(impl->utils, handle_timer_event, timeout);
#  226|   	spa_list_append(&conn->source_list, &data->link);

Error: CPPCHECK_WARNING (CWE-476): [#def915]
pipewire-1.5.81/spa/plugins/support/dbus.c:225: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  223|   	data = calloc(1, sizeof(struct source_data));
#  224|   	data->conn = conn;
#  225|-> 	data->source = spa_loop_utils_add_timer(impl->utils, handle_timer_event, timeout);
#  226|   	spa_list_append(&conn->source_list, &data->link);
#  227|   

Error: CPPCHECK_WARNING (CWE-476): [#def916]
pipewire-1.5.81/spa/plugins/support/dbus.c:233: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data
#  231|   	ts.tv_sec = t / SPA_NSEC_PER_SEC;
#  232|   	ts.tv_nsec = t % SPA_NSEC_PER_SEC;
#  233|-> 	spa_loop_utils_update_timer(impl->utils, data->source, &ts, NULL, false);
#  234|   
#  235|   	return TRUE;

Error: CPPCHECK_WARNING (CWE-190): [#def917]
pipewire-1.5.81/spa/plugins/support/dbus.c:242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  240|   	struct connection *conn = userdata;
#  241|   	struct impl *impl = conn->impl;
#  242|-> 	spa_log_debug(impl->log, "remove timeout %p conn:%p impl:%p", timeout, conn, impl);
#  243|   	dbus_timeout_set_data(timeout, NULL, NULL);
#  244|   }

Error: CPPCHECK_WARNING (CWE-190): [#def918]
pipewire-1.5.81/spa/plugins/support/dbus.c:256: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  254|   		return;
#  255|   
#  256|-> 	spa_log_debug(impl->log, "toggle timeout %p conn:%p impl:%p", timeout, conn, impl);
#  257|   
#  258|   	if (dbus_timeout_get_enabled(timeout)) {

Error: CPPCHECK_WARNING (CWE-190): [#def919]
pipewire-1.5.81/spa/plugins/support/dbus.c:274: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  272|   	struct impl *impl = this->impl;
#  273|   
#  274|-> 	spa_log_debug(impl->log, "wakeup main impl:%p", impl);
#  275|   	spa_loop_utils_enable_idle(impl->utils, this->dispatch_event, true);
#  276|   }

Error: CPPCHECK_WARNING (CWE-190): [#def920]
pipewire-1.5.81/spa/plugins/support/dbus.c:287: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  285|   
#  286|   	if (dbus_message_is_signal(message, DBUS_INTERFACE_LOCAL, "Disconnected")) {
#  287|-> 		spa_log_debug(impl->log, "dbus connection %p disconnected", this);
#  288|   		connection_close(this);
#  289|   		connection_emit_disconnected(this);

Error: CPPCHECK_WARNING (CWE-190): [#def921]
pipewire-1.5.81/spa/plugins/support/dbus.c:289: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  287|   		spa_log_debug(impl->log, "dbus connection %p disconnected", this);
#  288|   		connection_close(this);
#  289|-> 		connection_emit_disconnected(this);
#  290|   	}
#  291|   	return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;

Error: CPPCHECK_WARNING (CWE-190): [#def922]
pipewire-1.5.81/spa/plugins/support/dbus.c:333: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  331|   
#  332|   error:
#  333|-> 	spa_log_error(impl->log, "Failed to connect to %s bus: %s", type_to_string(this->type), error.message);
#  334|   	dbus_error_free(&error);
#  335|   	errno = ECONNREFUSED;

Error: CPPCHECK_WARNING (CWE-190): [#def923]
pipewire-1.5.81/spa/plugins/support/dbus.c:338: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  336|   	return NULL;
#  337|   error_filter:
#  338|-> 	spa_log_error(impl->log, "Failed to create filter");
#  339|   	dbus_connection_close(this->conn);
#  340|   	dbus_connection_unref(this->conn);

Error: CPPCHECK_WARNING (CWE-190): [#def924]
pipewire-1.5.81/spa/plugins/support/dbus.c:391: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  389|   	struct impl *impl = this->impl;
#  390|   
#  391|-> 	connection_emit_destroy(this);
#  392|   
#  393|   	spa_log_debug(impl->log, "destroy conn %p", this);

Error: CPPCHECK_WARNING (CWE-190): [#def925]
pipewire-1.5.81/spa/plugins/support/dbus.c:393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  391|   	connection_emit_destroy(this);
#  392|   
#  393|-> 	spa_log_debug(impl->log, "destroy conn %p", this);
#  394|   	connection_free(this);
#  395|   }

Error: CPPCHECK_WARNING (CWE-476): [#def926]
pipewire-1.5.81/spa/plugins/support/dbus.c:423: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: conn
#  421|   
#  422|   	conn = calloc(1, sizeof(struct connection));
#  423|-> 	conn->this = impl_connection;
#  424|   	conn->impl = impl;
#  425|   	conn->type = type;

Error: CPPCHECK_WARNING (CWE-476): [#def927]
pipewire-1.5.81/spa/plugins/support/dbus.c:424: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: conn
#  422|   	conn = calloc(1, sizeof(struct connection));
#  423|   	conn->this = impl_connection;
#  424|-> 	conn->impl = impl;
#  425|   	conn->type = type;
#  426|   	conn->dispatch_event = spa_loop_utils_add_idle(impl->utils,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def928]
pipewire-1.5.81/spa/plugins/support/dbus.c:424:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘conn’
pipewire-1.5.81/spa/plugins/support/dbus.c:422:16: acquire_memory: this call could return NULL
pipewire-1.5.81/spa/plugins/support/dbus.c:424:9: danger: ‘conn’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  422|   	conn = calloc(1, sizeof(struct connection));
#  423|   	conn->this = impl_connection;
#  424|-> 	conn->impl = impl;
#  425|   	conn->type = type;
#  426|   	conn->dispatch_event = spa_loop_utils_add_idle(impl->utils,

Error: CPPCHECK_WARNING (CWE-476): [#def929]
pipewire-1.5.81/spa/plugins/support/dbus.c:425: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: conn
#  423|   	conn->this = impl_connection;
#  424|   	conn->impl = impl;
#  425|-> 	conn->type = type;
#  426|   	conn->dispatch_event = spa_loop_utils_add_idle(impl->utils,
#  427|   						false, dispatch_cb, conn);

Error: CPPCHECK_WARNING (CWE-476): [#def930]
pipewire-1.5.81/spa/plugins/support/dbus.c:426: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: conn
#  424|   	conn->impl = impl;
#  425|   	conn->type = type;
#  426|-> 	conn->dispatch_event = spa_loop_utils_add_idle(impl->utils,
#  427|   						false, dispatch_cb, conn);
#  428|   	if (conn->dispatch_event == NULL)

Error: CPPCHECK_WARNING (CWE-476): [#def931]
pipewire-1.5.81/spa/plugins/support/dbus.c:428: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: conn
#  426|   	conn->dispatch_event = spa_loop_utils_add_idle(impl->utils,
#  427|   						false, dispatch_cb, conn);
#  428|-> 	if (conn->dispatch_event == NULL)
#  429|   		goto no_event;
#  430|   

Error: CPPCHECK_WARNING (CWE-190): [#def932]
pipewire-1.5.81/spa/plugins/support/dbus.c:436: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  434|   	spa_list_append(&impl->connection_list, &conn->link);
#  435|   
#  436|-> 	spa_log_debug(impl->log, "new conn %p", conn);
#  437|   
#  438|   	return &conn->this;

Error: CPPCHECK_WARNING (CWE-190): [#def933]
pipewire-1.5.81/spa/plugins/support/dbus.c:442: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  440|   no_event:
#  441|   	res = -errno;
#  442|-> 	spa_log_error(impl->log, "Failed to create idle event: %m");
#  443|   	free(conn);
#  444|   	errno = -res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def934]
pipewire-1.5.81/spa/plugins/support/dbus.c:442:9: warning[-Wanalyzer-malloc-leak]: leak of ‘conn’
pipewire-1.5.81/spa/plugins/support/dbus.c:415:1: enter_function: entry to ‘impl_get_connection’
pipewire-1.5.81/spa/plugins/support/dbus.c:422:16: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/dbus.c:426:32: call_function: calling ‘spa_loop_utils_add_idle’ from ‘impl_get_connection’
pipewire-1.5.81/spa/plugins/support/dbus.c:426:32: return_function: returning to ‘impl_get_connection’ from ‘spa_loop_utils_add_idle’
pipewire-1.5.81/spa/plugins/support/dbus.c:428:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/dbus.c:429:17: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/dbus.c:442:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘impl_get_connection’
pipewire-1.5.81/spa/plugins/support/dbus.c:442:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/dbus.c:442:9: danger: ‘conn’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#  440|   no_event:
#  441|   	res = -errno;
#  442|-> 	spa_log_error(impl->log, "Failed to create idle event: %m");
#  443|   	free(conn);
#  444|   	errno = -res;

Error: CPPCHECK_WARNING (CWE-190): [#def935]
pipewire-1.5.81/spa/plugins/support/dbus.c:518: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  516|   
#  517|   	if (this->utils == NULL) {
#  518|-> 		spa_log_error(this->log, "a LoopUtils is needed");
#  519|   		return -EINVAL;
#  520|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def936]
pipewire-1.5.81/spa/plugins/support/dbus.c:522: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  520|   	}
#  521|   
#  522|-> 	spa_log_debug(this->log, "%p: initialized", this);
#  523|   
#  524|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def937]
pipewire-1.5.81/spa/plugins/support/journal.c:273: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  271|   		impl->chain_log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);
#  272|   
#  273|-> 	spa_log_debug(&impl->log, "%p: initialized", impl);
#  274|   
#  275|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def938]
pipewire-1.5.81/spa/plugins/support/logger.c:391: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  389|   	spa_ringbuffer_init(&this->trace_rb);
#  390|   
#  391|-> 	spa_log_debug(&this->log, "%p: initialized to %s linebuf:%u", this, dest, linebuf);
#  392|   
#  393|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def939]
pipewire-1.5.81/spa/plugins/support/loop.c:217: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  215|   		loop_queue_destroy(queue->overflow);
#  216|   
#  217|-> 	spa_log_info(impl->log, "%p destroyed queue %p idx:%d", impl, queue, queue->idx);
#  218|   
#  219|   	free(queue);

Error: CPPCHECK_WARNING (CWE-190): [#def940]
pipewire-1.5.81/spa/plugins/support/loop.c:242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  240|   		if ((res = spa_system_eventfd_create(impl->system,
#  241|   				SPA_FD_EVENT_SEMAPHORE | SPA_FD_CLOEXEC)) < 0) {
#  242|-> 			spa_log_error(impl->log, "%p: can't create ack event: %s",
#  243|   					impl, spa_strerror(res));
#  244|   			goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def941]
pipewire-1.5.81/spa/plugins/support/loop.c:242:25: warning[-Wanalyzer-malloc-leak]: leak of ‘queue’
pipewire-1.5.81/spa/plugins/support/loop.c:222:22: enter_function: entry to ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:228:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/loop.c:229:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
pipewire-1.5.81/spa/plugins/support/loop.c:232:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:239:12: branch_true: following ‘true’ branch (when ‘with_fd != 0’)...
pipewire-1.5.81/spa/plugins/support/loop.c:240:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:240:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:242:25: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:242:25: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:242:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:242:25: danger: ‘queue’ leaks here; was allocated at [(2)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/1)
#  240|   		if ((res = spa_system_eventfd_create(impl->system,
#  241|   				SPA_FD_EVENT_SEMAPHORE | SPA_FD_CLOEXEC)) < 0) {
#  242|-> 			spa_log_error(impl->log, "%p: can't create ack event: %s",
#  243|   					impl, spa_strerror(res));
#  244|   			goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def942]
pipewire-1.5.81/spa/plugins/support/loop.c:254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  252|   				/* this is pretty bad, there are QUEUES_MAX concurrent threads
#  253|   				 * that are doing an invoke */
#  254|-> 				spa_log_error(impl->log, "max queues %d exceeded!", idx);
#  255|   				res = -ENOSPC;
#  256|   				goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def943]
pipewire-1.5.81/spa/plugins/support/loop.c:254:33: warning[-Wanalyzer-malloc-leak]: leak of ‘queue’
pipewire-1.5.81/spa/plugins/support/loop.c:222:22: enter_function: entry to ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:228:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/loop.c:229:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
pipewire-1.5.81/spa/plugins/support/loop.c:232:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:239:12: branch_true: following ‘true’ branch (when ‘with_fd != 0’)...
pipewire-1.5.81/spa/plugins/support/loop.c:240:28: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:240:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:246:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:251:28: branch_true: following ‘true’ branch (when ‘idx > 127’)...
pipewire-1.5.81/spa/plugins/support/loop.c:254:33: branch_true: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:254:33: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:254:33: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:254:33: danger: ‘queue’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  252|   				/* this is pretty bad, there are QUEUES_MAX concurrent threads
#  253|   				 * that are doing an invoke */
#  254|-> 				spa_log_error(impl->log, "max queues %d exceeded!", idx);
#  255|   				res = -ENOSPC;
#  256|   				goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def944]
pipewire-1.5.81/spa/plugins/support/loop.c:265: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  263|   		}
#  264|   	}
#  265|-> 	spa_log_info(impl->log, "%p created queue %p idx:%d %p", impl, queue, queue->idx,
#  266|   			(void*)pthread_self());
#  267|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def945]
pipewire-1.5.81/spa/plugins/support/loop.c:265:9: warning[-Wanalyzer-malloc-leak]: leak of ‘queue’
pipewire-1.5.81/spa/plugins/support/loop.c:222:22: enter_function: entry to ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:228:17: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/support/loop.c:229:12: branch_false: following ‘false’ branch (when ‘queue’ is non-NULL)...
pipewire-1.5.81/spa/plugins/support/loop.c:232:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:239:12: branch_false: following ‘false’ branch (when ‘with_fd == 0’)...
pipewire-1.5.81/spa/plugins/support/loop.c:265:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/loop.c:265:9: call_function: inlined call to ‘spa_log_level_topic_enabled’ from ‘loop_create_queue’
pipewire-1.5.81/spa/plugins/support/loop.c:265:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/spa/plugins/support/loop.c:265:9: danger: ‘queue’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  263|   		}
#  264|   	}
#  265|-> 	spa_log_info(impl->log, "%p created queue %p idx:%d %p", impl, queue, queue->idx,
#  266|   			(void*)pthread_self());
#  267|   

Error: CPPCHECK_WARNING (CWE-190): [#def946]
pipewire-1.5.81/spa/plugins/support/loop.c:295: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  293|   		if (SPA_LIKELY(__atomic_compare_exchange_n(&impl->head.v, &head.v, next.v,
#  294|   						0, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED))) {
#  295|-> 			spa_log_trace(impl->log, "%p idx:%d %p", queue, queue->idx, (void*)pthread_self());
#  296|   			return queue;
#  297|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def947]
pipewire-1.5.81/spa/plugins/support/loop.c:306: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  304|   	union tag head, next;
#  305|   
#  306|-> 	spa_log_trace(impl->log, "%p idx:%d %p", queue, queue->idx, (void*)pthread_self());
#  307|   
#  308|   	head.v = SPA_ATOMIC_LOAD(impl->head.v);

Error: CPPCHECK_WARNING (CWE-190): [#def948]
pipewire-1.5.81/spa/plugins/support/loop.c:386: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  384|   		if (block && queue->ack_fd != -1) {
#  385|   			if ((res = spa_system_eventfd_write(impl->system, queue->ack_fd, 1)) < 0)
#  386|-> 				spa_log_warn(impl->log, "%p: failed to write event fd:%d: %s",
#  387|   						queue, queue->ack_fd, spa_strerror(res));
#  388|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def949]
pipewire-1.5.81/spa/plugins/support/loop.c:435: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  433|   	item->item_size = SPA_ROUND_UP_N(sizeof(struct invoke_item) + size, ITEM_ALIGN);
#  434|   
#  435|-> 	spa_log_trace(impl->log, "%p: add item %p filled:%d block:%d", queue, item, filled, block);
#  436|   
#  437|   	if (l0 >= item->item_size) {

Error: CPPCHECK_WARNING (CWE-190): [#def950]
pipewire-1.5.81/spa/plugins/support/loop.c:492: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  490|   
#  491|   			if ((res = spa_system_eventfd_read(impl->system, queue->ack_fd, &count)) < 0)
#  492|-> 				spa_log_warn(impl->log, "%p: failed to read event fd:%d: %s",
#  493|   						queue, queue->ack_fd, spa_strerror(res));
#  494|   

Error: CPPCHECK_WARNING (CWE-190): [#def951]
pipewire-1.5.81/spa/plugins/support/loop.c:557: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  555|   			nsec = get_time_ns(impl->system);
#  556|   			if ((suppressed = spa_ratelimit_test(&impl->rate_limit, nsec)) >= 0) {
#  557|-> 				spa_log_warn(impl->log, "%p: out of queues, retrying (%d suppressed)",
#  558|   						impl, suppressed);
#  559|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def952]
pipewire-1.5.81/spa/plugins/support/loop.c:592: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  590|   {
#  591|   	struct impl *impl = object;
#  592|-> 	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, before, 0));
#  593|   	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, after, 0));
#  594|   	spa_hook_list_append(&impl->hooks_list, hook, hooks, data);

Error: CPPCHECK_WARNING (CWE-190): [#def953]
pipewire-1.5.81/spa/plugins/support/loop.c:593: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  591|   	struct impl *impl = object;
#  592|   	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, before, 0));
#  593|-> 	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, after, 0));
#  594|   	spa_hook_list_append(&impl->hooks_list, hook, hooks, data);
#  595|   }

Error: CPPCHECK_WARNING (CWE-190): [#def954]
pipewire-1.5.81/spa/plugins/support/loop.c:895: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  893|   				mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false,
#  894|   				(spa_source_idle_func_t) source_io_func, source);
#  895|-> 		spa_log_trace(impl->log, "%p: adding fallback %p", impl,
#  896|   				source->fallback);
#  897|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def955]
pipewire-1.5.81/spa/plugins/support/loop.c:916: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  914|   	spa_assert(source->func == source_io_func);
#  915|   
#  916|-> 	spa_log_trace(impl->log, "%p: update %08x -> %08x", s, source->mask, mask);
#  917|   	source->mask = mask;
#  918|   

Error: CPPCHECK_WARNING (CWE-190): [#def956]
pipewire-1.5.81/spa/plugins/support/loop.c:943: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  941|   	if (enabled && !s->enabled) {
#  942|   		if ((res = spa_system_eventfd_write(s->impl->system, source->fd, 1)) < 0)
#  943|-> 			spa_log_warn(s->impl->log, "%p: failed to write idle fd:%d: %s",
#  944|   					source, source->fd, spa_strerror(res));
#  945|   	} else if (!enabled && s->enabled) {

Error: CPPCHECK_WARNING (CWE-190): [#def957]
pipewire-1.5.81/spa/plugins/support/loop.c:948: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  946|   		uint64_t count;
#  947|   		if ((res = spa_system_eventfd_read(s->impl->system, source->fd, &count)) < 0)
#  948|-> 			spa_log_warn(s->impl->log, "%p: failed to read idle fd:%d: %s",
#  949|   					source, source->fd, spa_strerror(res));
#  950|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def958]
pipewire-1.5.81/spa/plugins/support/loop.c:1001: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  999|   	if ((res = spa_system_eventfd_read(s->impl->system, source->fd, &count)) < 0) {
# 1000|   		if (res != -EAGAIN)
# 1001|-> 			spa_log_warn(s->impl->log, "%p: failed to read event fd:%d: %s",
# 1002|   					source, source->fd, spa_strerror(res));
# 1003|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def959]
pipewire-1.5.81/spa/plugins/support/loop.c:1052: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1050|   
# 1051|   	if (SPA_UNLIKELY((res = spa_system_eventfd_write(s->impl->system, source->fd, 1)) < 0))
# 1052|-> 		spa_log_warn(s->impl->log, "%p: failed to write event fd:%d: %s",
# 1053|   				source, source->fd, spa_strerror(res));
# 1054|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def960]
pipewire-1.5.81/spa/plugins/support/loop.c:1066: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1064|   				source->fd, &expirations)) < 0)) {
# 1065|   		if (res != -EAGAIN)
# 1066|-> 			spa_log_warn(s->impl->log, "%p: failed to read timer fd:%d: %s",
# 1067|   					source, source->fd, spa_strerror(res));
# 1068|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def961]
pipewire-1.5.81/spa/plugins/support/loop.c:1146: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1144|   	if ((res = spa_system_signalfd_read(s->impl->system, source->fd, &signal_number)) < 0) {
# 1145|   		if (res != -EAGAIN)
# 1146|-> 			spa_log_warn(s->impl->log, "%p: failed to read signal fd:%d: %s",
# 1147|   					source, source->fd, spa_strerror(res));
# 1148|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def962]
pipewire-1.5.81/spa/plugins/support/loop.c:1196: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1194|   	spa_assert(s->impl == object);
# 1195|   
# 1196|-> 	spa_log_trace(s->impl->log, "%p ", s);
# 1197|   
# 1198|   	if (s->fallback)

Error: CPPCHECK_WARNING (CWE-190): [#def963]
pipewire-1.5.81/spa/plugins/support/loop.c:1299: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1297|   	impl = (struct impl *) handle;
# 1298|   
# 1299|-> 	spa_log_debug(impl->log, "%p: clear", impl);
# 1300|   
# 1301|   	if (impl->enter_count != 0)

Error: CPPCHECK_WARNING (CWE-190): [#def964]
pipewire-1.5.81/spa/plugins/support/loop.c:1302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1300|   
# 1301|   	if (impl->enter_count != 0)
# 1302|-> 		spa_log_warn(impl->log, "%p: loop is entered %d times",
# 1303|   				impl, impl->enter_count);
# 1304|   

Error: CPPCHECK_WARNING (CWE-190): [#def965]
pipewire-1.5.81/spa/plugins/support/loop.c:1385: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1383|   	}
# 1384|   
# 1385|-> 	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1386|   	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit_free_attr);
# 1387|   	if (impl->prio_inherit)

Error: CPPCHECK_WARNING (CWE-190): [#def966]
pipewire-1.5.81/spa/plugins/support/loop.c:1386: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1384|   
# 1385|   	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1386|-> 	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit_free_attr);
# 1387|   	if (impl->prio_inherit)
# 1388|   		CHECK(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT),

Error: CPPCHECK_WARNING (CWE-190): [#def967]
pipewire-1.5.81/spa/plugins/support/loop.c:1388: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1386|   	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit_free_attr);
# 1387|   	if (impl->prio_inherit)
# 1388|-> 		CHECK(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT),
# 1389|   					error_exit_free_attr)
# 1390|   	CHECK(pthread_mutex_init(&impl->lock, &attr), error_exit_free_attr);

Error: CPPCHECK_WARNING (CWE-190): [#def968]
pipewire-1.5.81/spa/plugins/support/loop.c:1390: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1388|   		CHECK(pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT),
# 1389|   					error_exit_free_attr)
# 1390|-> 	CHECK(pthread_mutex_init(&impl->lock, &attr), error_exit_free_attr);
# 1391|   	pthread_mutexattr_destroy(&attr);
# 1392|   

Error: CPPCHECK_WARNING (CWE-190): [#def969]
pipewire-1.5.81/spa/plugins/support/loop.c:1393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1391|   	pthread_mutexattr_destroy(&attr);
# 1392|   
# 1393|-> 	CHECK(pthread_condattr_init(&cattr), error_exit_free_mutex);
# 1394|   	CHECK(pthread_condattr_setclock(&cattr, CLOCK_REALTIME), error_exit_free_mutex);
# 1395|   

Error: CPPCHECK_WARNING (CWE-190): [#def970]
pipewire-1.5.81/spa/plugins/support/loop.c:1394: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1392|   
# 1393|   	CHECK(pthread_condattr_init(&cattr), error_exit_free_mutex);
# 1394|-> 	CHECK(pthread_condattr_setclock(&cattr, CLOCK_REALTIME), error_exit_free_mutex);
# 1395|   
# 1396|   	CHECK(pthread_cond_init(&impl->cond, &cattr), error_exit_free_mutex);

Error: CPPCHECK_WARNING (CWE-190): [#def971]
pipewire-1.5.81/spa/plugins/support/loop.c:1396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1394|   	CHECK(pthread_condattr_setclock(&cattr, CLOCK_REALTIME), error_exit_free_mutex);
# 1395|   
# 1396|-> 	CHECK(pthread_cond_init(&impl->cond, &cattr), error_exit_free_mutex);
# 1397|   	CHECK(pthread_cond_init(&impl->accept_cond, &cattr), error_exit_free_mutex);
# 1398|   	pthread_condattr_destroy(&cattr);

Error: CPPCHECK_WARNING (CWE-190): [#def972]
pipewire-1.5.81/spa/plugins/support/loop.c:1397: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1395|   
# 1396|   	CHECK(pthread_cond_init(&impl->cond, &cattr), error_exit_free_mutex);
# 1397|-> 	CHECK(pthread_cond_init(&impl->accept_cond, &cattr), error_exit_free_mutex);
# 1398|   	pthread_condattr_destroy(&cattr);
# 1399|   

Error: CPPCHECK_WARNING (CWE-190): [#def973]
pipewire-1.5.81/spa/plugins/support/loop.c:1405: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1403|   
# 1404|   	if (impl->system == NULL) {
# 1405|-> 		spa_log_error(impl->log, "%p: a System is needed", impl);
# 1406|   		res = -EINVAL;
# 1407|   		goto error_exit_free_cond;

Error: CPPCHECK_WARNING (CWE-190): [#def974]
pipewire-1.5.81/spa/plugins/support/loop.c:1410: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1408|   	}
# 1409|   	if ((res = spa_system_pollfd_create(impl->system, SPA_FD_CLOEXEC)) < 0) {
# 1410|-> 		spa_log_error(impl->log, "%p: can't create pollfd: %s",
# 1411|   				impl, spa_strerror(res));
# 1412|   		goto error_exit_free_cond;

Error: CPPCHECK_WARNING (CWE-190): [#def975]
pipewire-1.5.81/spa/plugins/support/loop.c:1423: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1421|   	if (impl->wakeup == NULL) {
# 1422|   		res = -errno;
# 1423|-> 		spa_log_error(impl->log, "%p: can't create wakeup event: %m", impl);
# 1424|   		goto error_exit_free_poll;
# 1425|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def976]
pipewire-1.5.81/spa/plugins/support/loop.c:1429: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1427|   	impl->head.t.idx = IDX_INVALID;
# 1428|   
# 1429|-> 	spa_log_debug(impl->log, "%p: initialized", impl);
# 1430|   
# 1431|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def977]
pipewire-1.5.81/spa/plugins/support/node-driver.c:170: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  168|   	 * (Note that the flag only works in combination with SPA_FD_TIMER_ABSTIME.) */
#  169|   
#  170|-> 	spa_log_trace(this->log, "set timeout %"PRIu64, next_time);
#  171|   	this->timerspec.it_value.tv_sec = next_time / SPA_NSEC_PER_SEC;
#  172|   	this->timerspec.it_value.tv_nsec = next_time % SPA_NSEC_PER_SEC;

Error: CPPCHECK_WARNING (CWE-190): [#def978]
pipewire-1.5.81/spa/plugins/support/node-driver.c:185: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  183|   		return 0;
#  184|   	nsec = SPA_TIMESPEC_TO_NSEC(&now);
#  185|-> 	spa_log_trace(this->log, "%p now:%"PRIu64, this, nsec);
#  186|   	return nsec;
#  187|   }

Error: CPPCHECK_WARNING (CWE-190): [#def979]
pipewire-1.5.81/spa/plugins/support/node-driver.c:193: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  191|   	this->next_time = gettime_nsec(this, this->timer_clockid);
#  192|   
#  193|-> 	spa_log_debug(this->log, "%p now:%"PRIu64, this, this->next_time);
#  194|   
#  195|   	if (this->following || !this->started) {

Error: CPPCHECK_WARNING (CWE-190): [#def980]
pipewire-1.5.81/spa/plugins/support/node-driver.c:254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  252|   	if (SPA_ABS(err) > max_resync) {
#  253|   		/* Clock jump */
#  254|-> 		spa_log_info(log, "nsec err %"PRIi64" > max_resync %"PRIi64", resetting",
#  255|   				err, max_resync);
#  256|   		off->offset = offset;

Error: CPPCHECK_WARNING (CWE-190): [#def981]
pipewire-1.5.81/spa/plugins/support/node-driver.c:265: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  263|   	off->err += (SPA_ABS(err) - off->err) / n;
#  264|   
#  265|-> 	spa_log_trace(log, "clock offset %"PRIi64" err:%"PRIi64" abs-err:%"PRIi64,
#  266|   			off->offset, err, off->err);
#  267|   

Error: CPPCHECK_WARNING (CWE-190): [#def982]
pipewire-1.5.81/spa/plugins/support/node-driver.c:295: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  293|   	following = is_following(this);
#  294|   	if (following != this->following) {
#  295|-> 		spa_log_debug(this->log, "%p: reassign follower %d->%d", this, this->following, following);
#  296|   		this->following = following;
#  297|   		spa_loop_locked(this->data_loop, do_set_timers, 0, NULL, 0, this);

Error: CPPCHECK_WARNING (CWE-190): [#def983]
pipewire-1.5.81/spa/plugins/support/node-driver.c:355: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  353|   			return;
#  354|   		} else if (res == -ECANCELED) {
#  355|-> 			spa_log_debug(this->log, "%p: timer was canceled; "
#  356|   					"rescheduling graph cycle", this);
#  357|   			timer_was_canceled = true;

Error: CPPCHECK_WARNING (CWE-190): [#def984]
pipewire-1.5.81/spa/plugins/support/node-driver.c:359: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  357|   			timer_was_canceled = true;
#  358|   		} else {
#  359|-> 			spa_log_error(this->log, "%p: timerfd error: %s",
#  360|   					this, spa_strerror(res));
#  361|   			return;

Error: CPPCHECK_WARNING (CWE-190): [#def985]
pipewire-1.5.81/spa/plugins/support/node-driver.c:446: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  444|   		if (fabs(err) > this->max_error) {
#  445|   			if (fabs(err) > this->max_resync) {
#  446|-> 				spa_log_warn(this->log, "err %f > max_resync %f, resetting",
#  447|   						err, this->max_resync);
#  448|   				spa_dll_set_bw(&this->dll, SPA_DLL_BW_MIN, duration, rate);

Error: CPPCHECK_WARNING (CWE-190): [#def986]
pipewire-1.5.81/spa/plugins/support/node-driver.c:464: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  462|   	if (SPA_UNLIKELY((this->next_time - this->base_time) > BW_PERIOD)) {
#  463|   		this->base_time = this->next_time;
#  464|-> 		spa_log_debug(this->log, "%p: rate:%f "
#  465|   			"bw:%f dur:%"PRIu64" max:%f drift:%f",
#  466|   				this, corr, this->dll.bw, duration,

Error: CPPCHECK_WARNING (CWE-190): [#def987]
pipewire-1.5.81/spa/plugins/support/node-driver.c:548: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  546|   
#  547|   		this->info.props = &SPA_DICT_INIT(items, 3);
#  548|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  549|   		this->info.change_mask = old;
#  550|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def988]
pipewire-1.5.81/spa/plugins/support/node-driver.c:591: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  589|   
#  590|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  591|-> 	spa_log_trace(this->log, "process %d", this->props.freewheel);
#  592|   
#  593|   	if (this->props.freewheel &&

Error: GCC_ANALYZER_WARNING (CWE-775): [#def989]
pipewire-1.5.81/spa/plugins/support/node-driver.c:672:15: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
pipewire-1.5.81/spa/plugins/support/node-driver.c:668:14: acquire_resource: datagram socket created here
pipewire-1.5.81/spa/plugins/support/node-driver.c:669:12: branch_false: following ‘false’ branch (when ‘fd >= 0’)...
pipewire-1.5.81/spa/plugins/support/node-driver.c:672:15: branch_false: ...to here
pipewire-1.5.81/spa/plugins/support/node-driver.c:672:15: danger: ‘fd’ leaks here
#  670|   		return -errno;
#  671|   
#  672|-> 	err = spa_system_ioctl(s, fd, SIOCETHTOOL, &ifr);
#  673|   	close(fd);
#  674|   	if (err < 0)

Error: CPPCHECK_WARNING (CWE-190): [#def990]
pipewire-1.5.81/spa/plugins/support/node-driver.c:708: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  706|   
#  707|   	if (this->data_loop == NULL) {
#  708|-> 		spa_log_error(this->log, "a data_loop is needed");
#  709|   		return -EINVAL;
#  710|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def991]
pipewire-1.5.81/spa/plugins/support/node-driver.c:712: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  710|   	}
#  711|   	if (this->data_system == NULL) {
#  712|-> 		spa_log_error(this->log, "a data_system is needed");
#  713|   		return -EINVAL;
#  714|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def992]
pipewire-1.5.81/spa/plugins/support/node-driver.c:747: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  745|   			this->props.clock_id = clock_name_to_id(s);
#  746|   			if (this->props.clock_id == -1) {
#  747|-> 				spa_log_warn(this->log, "unknown clock id '%s'", s);
#  748|   				this->props.clock_id = DEFAULT_CLOCK_ID;
#  749|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def993]
pipewire-1.5.81/spa/plugins/support/node-driver.c:757: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  755|   
#  756|   			if (this->clock_fd == -1) {
#  757|-> 				spa_log_warn(this->log, "failed to open clock device '%s': %m", s);
#  758|   			} else {
#  759|   				this->props.clock_id = FD_TO_CLOCKID(this->clock_fd);

Error: CPPCHECK_WARNING (CWE-190): [#def994]
pipewire-1.5.81/spa/plugins/support/node-driver.c:764: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  762|   			int phc_index = get_phc_index(this->data_system, s);
#  763|   			if (phc_index < 0) {
#  764|-> 				spa_log_warn(this->log, "failed to get phc device index for interface '%s': %s",
#  765|   						s, spa_strerror(phc_index));
#  766|   			} else {

Error: CPPCHECK_WARNING (CWE-190): [#def995]
pipewire-1.5.81/spa/plugins/support/node-driver.c:771: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  769|   				this->clock_fd = open(dev, O_RDONLY);
#  770|   				if (this->clock_fd == -1) {
#  771|-> 					spa_log_warn(this->log, "failed to open clock device '%s' "
#  772|   							"for interface '%s': %m", dev, s);
#  773|   				} else {

Error: CPPCHECK_WARNING (CWE-190): [#def996]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:171: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  169|   		goto next;
#  170|   
#  171|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  172|   
#  173|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def997]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:181: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  179|   static void set_timeout(struct impl *this, uint64_t next_time)
#  180|   {
#  181|-> 	spa_log_trace(this->log, "set timeout %"PRIu64, next_time);
#  182|   	this->timerspec.it_value.tv_sec = next_time / SPA_NSEC_PER_SEC;
#  183|   	this->timerspec.it_value.tv_nsec = next_time % SPA_NSEC_PER_SEC;

Error: CPPCHECK_WARNING (CWE-190): [#def998]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:231: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  229|   	following = is_following(this);
#  230|   	if (following != this->following) {
#  231|-> 		spa_log_debug(this->log, "%p: reassign follower %d->%d", this, this->following, following);
#  232|   		this->following = following;
#  233|   		spa_loop_locked(this->data_loop, do_set_timers, 0, NULL, 0, this);

Error: CPPCHECK_WARNING (CWE-190): [#def999]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:273: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  271|   	int res;
#  272|   
#  273|-> 	spa_log_trace(this->log, "timeout");
#  274|   
#  275|   	if ((res = spa_system_timerfd_read(this->data_system,

Error: CPPCHECK_WARNING (CWE-190): [#def1000]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:278: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  276|   				this->timer_source.fd, &expirations)) < 0) {
#  277|   		if (res != -EAGAIN)
#  278|-> 			spa_log_error(this->log, "%p: timerfd error: %s",
#  279|   					this, spa_strerror(res));
#  280|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def1001]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:373: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  371|   		};
#  372|   		this->info.props = &SPA_DICT_INIT_ARRAY(node_info_items);
#  373|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  374|   		this->info.change_mask = old;
#  375|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1002]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:384: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  382|   		port->info.change_mask = port->info_all;
#  383|   	if (port->info.change_mask) {
#  384|-> 		spa_node_emit_port_info(&this->hooks,
#  385|   				SPA_DIRECTION_INPUT, 0, &port->info);
#  386|   		port->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1003]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:566: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  564|   		goto next;
#  565|   
#  566|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  567|   
#  568|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def1004]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:577: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  575|   {
#  576|   	if (port->n_buffers > 0) {
#  577|-> 		spa_log_info(this->log, "%p: clear buffers", this);
#  578|   		port->n_buffers = 0;
#  579|   		this->started = false;

Error: CPPCHECK_WARNING (CWE-190): [#def1005]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:732: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  730|   
#  731|   		if (d[0].data == NULL) {
#  732|-> 			spa_log_error(this->log, "%p: invalid memory on buffer %p", this,
#  733|   				      buffers[i]);
#  734|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def1006]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:887: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  885|   
#  886|   	if (this->data_loop == NULL) {
#  887|-> 		spa_log_error(this->log, "a data_loop is needed");
#  888|   		return -EINVAL;
#  889|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1007]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:891: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  889|   	}
#  890|   	if (this->data_system == NULL) {
#  891|-> 		spa_log_error(this->log, "a data_system is needed");
#  892|   		return -EINVAL;
#  893|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1008]
pipewire-1.5.81/spa/plugins/support/null-audio-sink.c:959: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  957|   		}
#  958|   	}
#  959|-> 	spa_log_info(this->log, "%p: initialized", this);
#  960|   
#  961|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1009]
pipewire-1.5.81/spa/plugins/support/system.c:69: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   67|   	struct impl *impl = object;
#   68|   	int res = close(fd);
#   69|-> 	spa_log_debug(impl->log, "%p: close fd:%d", impl, fd);
#   70|   	return res < 0 ? -errno : res;
#   71|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1010]
pipewire-1.5.81/spa/plugins/support/system.c:96: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   94|   		fl |= EPOLL_CLOEXEC;
#   95|   	res = epoll_create1(fl);
#   96|-> 	spa_log_debug(impl->log, "%p: new fd:%d", impl, res);
#   97|   	return res < 0 ? -errno : res;
#   98|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1011]
pipewire-1.5.81/spa/plugins/support/system.c:158: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  156|   		fl |= TFD_NONBLOCK;
#  157|   	res = timerfd_create(clockid, fl);
#  158|-> 	spa_log_debug(impl->log, "%p: new fd:%d", impl, res);
#  159|   	return res < 0 ? -errno : res;
#  160|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1012]
pipewire-1.5.81/spa/plugins/support/system.c:203: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  201|   	res = eventfd(0, fl);
#  202|   	err = -errno; /* save errno in case it is overwritten before return */
#  203|-> 	spa_log_debug(impl->log, "%p: new fd:%d", impl, res);
#  204|   	return res < 0 ? err : res;
#  205|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1013]
pipewire-1.5.81/spa/plugins/support/system.c:237: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  235|   	res = signalfd(-1, &mask, fl);
#  236|   	sigprocmask(SIG_BLOCK, &mask, NULL);
#  237|-> 	spa_log_debug(impl->log, "%p: new fd:%d", impl, res);
#  238|   
#  239|   	return res < 0 ? -errno : res;

Error: CPPCHECK_WARNING (CWE-190): [#def1014]
pipewire-1.5.81/spa/plugins/support/system.c:334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  332|   	spa_log_topic_init(impl->log, &log_topic);
#  333|   
#  334|-> 	spa_log_debug(impl->log, "%p: initialized", impl);
#  335|   
#  336|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1015]
pipewire-1.5.81/spa/plugins/test/test-helper.h:74:9: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.5.81/spa/plugins/audioconvert/test-channelmix.c:371:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/plugins/audioconvert/test-channelmix.c:380:21: call_function: calling ‘get_cpu_flags’ from ‘main’
#   72|   	dlclose(hnd);
#   73|   error:
#   74|-> 	errno = -res;
#   75|   	return NULL;
#   76|   }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def1016]
pipewire-1.5.81/spa/plugins/v4l2/v4l2-device.c:42:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.5.81/spa/plugins/v4l2/v4l2-device.c:227:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/v4l2/v4l2-device.c:228:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/v4l2/v4l2-device.c:228:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/v4l2/v4l2-device.c:230:9: branch_false: ...to here
pipewire-1.5.81/spa/plugins/v4l2/v4l2-device.c:244:9: call_function: inlined call to ‘reset_props’ from ‘impl_init’
#   40|   static void reset_props(struct props *props)
#   41|   {
#   42|-> 	strncpy(props->device, default_device, 64);
#   43|   }
#   44|   

Error: CPPCHECK_WARNING (CWE-457): [#def1017]
pipewire-1.5.81/spa/plugins/videoconvert/videoadapter.c:847: error[uninitvar]: Uninitialized variable: mode
#  845|   		}
#  846|   
#  847|-> 		switch (mode) {
#  848|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  849|   			return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-457): [#def1018]
pipewire-1.5.81/spa/plugins/videoconvert/videoconvert-dummy.c:343: error[uninitvar]: Uninitialized variable: direction
#  341|   		}
#  342|   
#  343|-> 		if ((res = reconfigure_mode(this, mode, direction, infop)) < 0)
#  344|   			return res;
#  345|   

Error: CPPCHECK_WARNING (CWE-457): [#def1019]
pipewire-1.5.81/spa/plugins/videoconvert/videoconvert-dummy.c:343: error[uninitvar]: Uninitialized variable: mode
#  341|   		}
#  342|   
#  343|-> 		if ((res = reconfigure_mode(this, mode, direction, infop)) < 0)
#  344|   			return res;
#  345|   

Error: CPPCHECK_WARNING (CWE-457): [#def1020]
pipewire-1.5.81/spa/plugins/vulkan/vulkan-blit-dsp-filter.c:148: error[uninitvar]: Uninitialized variable: param
#  146|   	}
#  147|   
#  148|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  149|   		goto next;
#  150|   

Error: CPPCHECK_WARNING (CWE-457): [#def1021]
pipewire-1.5.81/spa/plugins/vulkan/vulkan-blit-filter.c:148: error[uninitvar]: Uninitialized variable: param
#  146|   	}
#  147|   
#  148|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  149|   		goto next;
#  150|   

Error: CPPCHECK_WARNING (CWE-457): [#def1022]
pipewire-1.5.81/spa/plugins/vulkan/vulkan-compute-filter.c:119: error[uninitvar]: Uninitialized variable: param
#  117|   	}
#  118|   
#  119|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  120|   		goto next;
#  121|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1023]
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:899:17: warning[-Wanalyzer-malloc-leak]: leak of ‘modPropsList.pDrmFormatModifierProperties’
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:861:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:865:23: branch_false: ...to here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:866:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:870:21: branch_true: following ‘true’ branch (when ‘i < formatCount’)...
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:871:64: branch_true: ...to here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:872:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:874:54: branch_false: ...to here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:888:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:893:61: branch_false: ...to here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:893:61: acquire_memory: allocated here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:895:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:899:17: branch_false: ...to here
pipewire-1.5.81/spa/plugins/vulkan/vulkan-utils.c:899:17: danger: ‘modPropsList.pDrmFormatModifierProperties’ leaks here; was allocated at [(11)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/10)
#  897|   			continue;
#  898|   		}
#  899|-> 		vkGetPhysicalDeviceFormatProperties2(s->physicalDevice, format, &fmtProps);
#  900|   
#  901|   		f_info->infos = calloc(modPropsList.drmFormatModifierCount, sizeof(f_info->infos[0]));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1024]
pipewire-1.5.81/spa/tests/benchmark-aec.c:111:24: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.5.81/spa/tests/benchmark-aec.c:302:5: enter_function: entry to ‘main’
pipewire-1.5.81/spa/tests/benchmark-aec.c:308:20: call_function: calling ‘init’ from ‘main’
#  109|   					"support/libspa-support.so",
#  110|   					SPA_NAME_SUPPORT_SYSTEM)) < 0)
#  111|-> 		return res;
#  112|   
#  113|   	if ((res = spa_handle_get_interface(handle, SPA_TYPE_INTERFACE_System, &iface)) < 0) {

Error: CPPCHECK_WARNING (CWE-476): [#def1025]
pipewire-1.5.81/spa/tests/benchmark-aec.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: k
#  188|   		char *v = malloc(len + 1);
#  189|   
#  190|-> 		memcpy(k, key, strlen(key) + 1);
#  191|   		spa_json_parse_stringn(value, len, v, len + 1);
#  192|   

Error: CPPCHECK_WARNING (CWE-457): [#def1026]
pipewire-1.5.81/spa/tests/benchmark-aec.c:281: warning[uninitvar]: Uninitialized variable: temp
#  279|   	}
#  280|   
#  281|-> 	memcpy(data, temp, sizeof(temp));
#  282|   }
#  283|   

Error: CPPCHECK_WARNING (CWE-457): [#def1027]
pipewire-1.5.81/spa/tests/benchmark-aec.c:294: warning[uninitvar]: Uninitialized variable: temp
#  292|   	}
#  293|   
#  294|-> 	memcpy(data, temp, sizeof(temp));
#  295|   }
#  296|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1028]
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:62:25: warning[-Wanalyzer-infinite-loop]: infinite loop
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:50:14: enter_function: entry to ‘reader_start’
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:62:25: danger: infinite loop here
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:64:20: branch_false: if it ever follows ‘false’ branch, it will always do so...
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:58:19: branch_false: ...to here
#   60|   		int32_t avail;
#   61|   
#   62|-> 		avail = spa_ringbuffer_get_read_index(&rb, &index);
#   63|   
#   64|   		if (avail >= (int32_t)(sizeof(b))) {

Error: GCC_ANALYZER_WARNING (CWE-835): [#def1029]
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:91:25: warning[-Wanalyzer-infinite-loop]: infinite loop
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:80:14: enter_function: entry to ‘writer_start’
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:91:25: danger: infinite loop here
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:93:20: branch_false: when ‘avail <= 251’: always following ‘false’ branch...
pipewire-1.5.81/spa/tests/stress-ringbuffer.c:87:19: branch_false: ...to here
#   89|   		int32_t avail;
#   90|   
#   91|-> 		avail = size - spa_ringbuffer_get_write_index(&rb, &index);
#   92|   
#   93|   		if (avail >= (int32_t)(sizeof(a))) {

Error: COMPILER_WARNING (CWE-563): [#def1030]
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘show_usage’
pipewire-1.5.81/spa/tools/spa-json-dump.c:45:37: warning[-Wunused-parameter]: unused parameter ‘d’
#   45 | static void show_usage(struct data *d, const char *name, bool is_error)
#      |                        ~~~~~~~~~~~~~^
#   43|   };
#   44|   
#   45|-> static void show_usage(struct data *d, const char *name, bool is_error)
#   46|   {
#   47|   	FILE *fp;

Error: COMPILER_WARNING: [#def1031]
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘process_stdin’
pipewire-1.5.81/spa/tools/spa-json-dump.c:228:50: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
#  228 |                         fprintf(stderr, "error: %m\n");
#      |                                                  ^
#  226|   		p = realloc(buf, alloc);
#  227|   		if (!p) {
#  228|-> 			fprintf(stderr, "error: %m\n");
#  229|   			goto error;
#  230|   		}

Error: COMPILER_WARNING: [#def1032]
pipewire-1.5.81/spa/tools/spa-json-dump.c:239:42: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
#  239 |                 fprintf(stderr, "error: %m\n");
#      |                                          ^
#  237|   
#  238|   	if (ferror(stdin)) {
#  239|-> 		fprintf(stderr, "error: %m\n");
#  240|   		goto error;
#  241|   	}

Error: COMPILER_WARNING: [#def1033]
pipewire-1.5.81/spa/tools/spa-json-dump.c: scope_hint: In function ‘main’
pipewire-1.5.81/spa/tools/spa-json-dump.c:298:60: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
#  298 |                 fprintf(stderr, "error opening file '%s': %m\n", d.filename);
#      |                                                            ^
#  296|   
#  297|   	if ((fd = open(d.filename,  O_CLOEXEC | O_RDONLY)) < 0) {
#  298|-> 		fprintf(stderr, "error opening file '%s': %m\n", d.filename);
#  299|   		goto error;
#  300|   	}

Error: COMPILER_WARNING: [#def1034]
pipewire-1.5.81/spa/tools/spa-json-dump.c:302:61: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
#  302 |                 fprintf(stderr, "error statting file '%s': %m\n", d.filename);
#      |                                                             ^
#  300|   	}
#  301|   	if (fstat(fd, &sbuf) < 0) {
#  302|-> 		fprintf(stderr, "error statting file '%s': %m\n", d.filename);
#  303|   		goto error_close;
#  304|   	}

Error: COMPILER_WARNING: [#def1035]
pipewire-1.5.81/spa/tools/spa-json-dump.c:306:61: warning[-Wformat=]: ISO C does not support the ‘%m’ gnu_printf format
#  306 |                 fprintf(stderr, "error mmapping file '%s': %m\n", d.filename);
#      |                                                             ^
#  304|   	}
#  305|   	if ((d.data = mmap(NULL, sbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) {
#  306|-> 		fprintf(stderr, "error mmapping file '%s': %m\n", d.filename);
#  307|   		goto error_close;
#  308|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1036]
pipewire-1.5.81/src/examples/bluez-session.c:130:23: warning[-Wanalyzer-malloc-leak]: leak of ‘node’
pipewire-1.5.81/src/examples/bluez-session.c:93:21: enter_function: entry to ‘create_node’
pipewire-1.5.81/src/examples/bluez-session.c:105:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:110:25: branch_true: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:111:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:116:53: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:116:20: call_function: calling ‘spa_handle_get_interface’ from ‘create_node’
pipewire-1.5.81/src/examples/bluez-session.c:116:20: return_function: returning to ‘create_node’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/examples/bluez-session.c:116:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:121:16: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:121:16: acquire_memory: allocated here
pipewire-1.5.81/src/examples/bluez-session.c:122:12: branch_false: following ‘false’ branch (when ‘node’ is non-NULL)...
pipewire-1.5.81/src/examples/bluez-session.c:125:9: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:130:23: danger: ‘node’ leaks here; was allocated at [(13)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/12)
#  128|   	node->handle = handle;
#  129|   	node->node = iface;
#  130|-> 	node->proxy = pw_core_export(impl->core,
#  131|   			info->type, info->props, node->node, 0);
#  132|   	if (node->proxy == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1037]
pipewire-1.5.81/src/examples/bluez-session.c:238:22: warning[-Wanalyzer-malloc-leak]: leak of ‘obj’
pipewire-1.5.81/src/examples/bluez-session.c:203:23: enter_function: entry to ‘create_object’
pipewire-1.5.81/src/examples/bluez-session.c:214:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:219:25: branch_true: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:220:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:225:53: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:225:20: call_function: calling ‘spa_handle_get_interface’ from ‘create_object’
pipewire-1.5.81/src/examples/bluez-session.c:225:20: return_function: returning to ‘create_object’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/examples/bluez-session.c:225:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/examples/bluez-session.c:230:15: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:230:15: acquire_memory: allocated here
pipewire-1.5.81/src/examples/bluez-session.c:231:12: branch_false: following ‘false’ branch (when ‘obj’ is non-NULL)...
pipewire-1.5.81/src/examples/bluez-session.c:234:9: branch_false: ...to here
pipewire-1.5.81/src/examples/bluez-session.c:238:22: danger: ‘obj’ leaks here; was allocated at [(13)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/12)
#  236|   	obj->handle = handle;
#  237|   	obj->device = iface;
#  238|-> 	obj->proxy = pw_core_export(impl->core,
#  239|   			info->type, info->props, obj->device, 0);
#  240|   	if (obj->proxy == NULL)

Error: CPPCHECK_WARNING (CWE-369): [#def1038]
pipewire-1.5.81/src/examples/video-src-fixate.c:415: error[zerodiv]: Division by zero.
#  413|   			} else {
#  414|   				// Use the allocator to find the best modifier from the list
#  415|-> 				modifier = modifiers[rand()%n_modifiers];
#  416|   			}
#  417|   

Error: COMPILER_WARNING (CWE-252): [#def1039]
pipewire-1.5.81/src/examples/video-src-sync.c: scope_hint: In function ‘on_process’
pipewire-1.5.81/src/examples/video-src-sync.c:134:17: warning[-Wunused-result]: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’
#  134 |                 write(buf->datas[1].fd, &cmd, sizeof(cmd));
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  132|   		stl->release_point = data->seq;
#  133|   		/* write the acquire point */
#  134|-> 		write(buf->datas[1].fd, &cmd, sizeof(cmd));
#  135|   	}
#  136|   	pw_stream_queue_buffer(data->stream, b);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1040]
pipewire-1.5.81/src/gst/gstpipewirepool.c:158:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup((int)*d.fd)’
pipewire-1.5.81/src/gst/gstpipewirepool.c:104:15: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:105:27: branch_true: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:112:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:155:16: branch_false: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:155:15: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:157:17: branch_true: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:156:58: acquire_resource: opened here
pipewire-1.5.81/src/gst/gstpipewirepool.c:158:46: danger: ‘dup((int)*d.fd)’ leaks here; was opened at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  156|         gmem = gst_fd_allocator_alloc (pool->fd_allocator, dup(d->fd),
#  157|                   d->mapoffset + d->maxsize, GST_FD_MEMORY_FLAG_NONE);
#  158|->       gst_memory_resize (gmem, d->mapoffset, d->maxsize);
#  159|       }
#  160|       else if(d->type == SPA_DATA_DmaBuf) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1041]
pipewire-1.5.81/src/gst/gstpipewirepool.c:169:46: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup((int)*d.fd)’
pipewire-1.5.81/src/gst/gstpipewirepool.c:104:15: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:105:27: branch_true: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:112:8: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:155:16: branch_false: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:155:15: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:160:12: branch_false: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:160:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/gst/gstpipewirepool.c:161:18: branch_true: ...to here
pipewire-1.5.81/src/gst/gstpipewirepool.c:167:62: acquire_resource: opened here
pipewire-1.5.81/src/gst/gstpipewirepool.c:169:46: danger: ‘dup((int)*d.fd)’ leaks here; was opened at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  167|         gmem = gst_fd_allocator_alloc (pool->dmabuf_allocator, dup(d->fd),
#  168|           d->mapoffset + d->maxsize, fd_flags);
#  169|->       gst_memory_resize (gmem, d->mapoffset, d->maxsize);
#  170|   
#  171|         if (fd_flags & GST_FD_MEMORY_FLAG_KEEP_MAPPED) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1042]
pipewire-1.5.81/src/modules/module-avb.c:86:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb.c:82:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb.c:86:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   84|   		goto error_errno;
#   85|   
#   86|-> 	pw_log_debug("module %p: new %s", impl, args);
#   87|   
#   88|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1043]
pipewire-1.5.81/src/modules/module-avb.c:91:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb.c:82:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb.c:88:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:91:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   89|   		args = "";
#   90|   
#   91|-> 	props = pw_properties_new_string(args);
#   92|   	if (props == NULL)
#   93|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1044]
pipewire-1.5.81/src/modules/module-avb.c:98:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb.c:82:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb.c:88:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb.c:95:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:98:21: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   96|   	impl->context = context;
#   97|   
#   98|-> 	impl->avb = pw_avb_new(context, props, 0);
#   99|   	if (impl->avb == NULL)
#  100|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1045]
pipewire-1.5.81/src/modules/module-avb.c:102:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb.c:82:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb.c:83:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:86:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb.c:88:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb.c:95:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:99:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb.c:102:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb.c:102:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  100|   		goto error_errno;
#  101|   
#  102|-> 	pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
#  103|   
#  104|   	pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1046]
pipewire-1.5.81/src/modules/module-avb/acmp.c:448:9: warning[-Wanalyzer-malloc-leak]: leak of ‘acmp’
pipewire-1.5.81/src/modules/module-avb/acmp.c:439:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/acmp.c:440:12: branch_false: following ‘false’ branch (when ‘acmp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/acmp.c:443:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/acmp.c:448:9: danger: ‘acmp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  446|   	spa_list_init(&acmp->pending[PENDING_CONTROLLER]);
#  447|   
#  448|-> 	avdecc_server_add_listener(server, &acmp->server_listener, &server_events, acmp);
#  449|   
#  450|   	return (struct avb_acmp*)acmp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1047]
pipewire-1.5.81/src/modules/module-avb/adp.c:349:9: warning[-Wanalyzer-malloc-leak]: leak of ‘adp’
pipewire-1.5.81/src/modules/module-avb/adp.c:342:15: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/adp.c:343:12: branch_false: following ‘false’ branch (when ‘adp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/adp.c:346:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/adp.c:349:9: danger: ‘adp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  347|   	spa_list_init(&adp->entities);
#  348|   
#  349|-> 	avdecc_server_add_listener(server, &adp->server_listener, &server_events, adp);
#  350|   
#  351|   	return (struct avb_adp*)adp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1048]
pipewire-1.5.81/src/modules/module-avb/aecp.c:140:9: warning[-Wanalyzer-malloc-leak]: leak of ‘aecp’
pipewire-1.5.81/src/modules/module-avb/aecp.c:134:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/aecp.c:135:12: branch_false: following ‘false’ branch (when ‘aecp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/aecp.c:138:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/aecp.c:140:9: danger: ‘aecp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  138|   	aecp->server = server;
#  139|   
#  140|-> 	avdecc_server_add_listener(server, &aecp->server_listener, &server_events, aecp);
#  141|   
#  142|   	return (struct avb_aecp*)aecp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1049]
pipewire-1.5.81/src/modules/module-avb/avb.c:25:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:25:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:25:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   23|   
#   24|   	if (props == NULL)
#   25|-> 		props = pw_properties_new(NULL, NULL);
#   26|   	if (props == NULL)
#   27|   		goto error_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1050]
pipewire-1.5.81/src/modules/module-avb/avb.c:29:19: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:29:19: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   27|   		goto error_free;
#   28|   
#   29|-> 	support = pw_context_get_support(context, &n_support);
#   30|   	cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
#   31|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1051]
pipewire-1.5.81/src/modules/module-avb/avb.c:32:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:32:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   30|   	cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
#   31|   
#   32|-> 	pw_context_conf_update_props(context, "avb.properties", props);
#   33|   
#   34|   	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1052]
pipewire-1.5.81/src/modules/module-avb/avb.c:34:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:34:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#   32|   	pw_context_conf_update_props(context, "avb.properties", props);
#   33|   
#   34|-> 	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {
#   35|   		pw_log_warn("vm.overrides in avb.properties are deprecated, "
#   36|   				"use avb.properties.rules instead");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1053]
pipewire-1.5.81/src/modules/module-avb/avb.c:35:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:34:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:35:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:35:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:35:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:35:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#   33|   
#   34|   	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {
#   35|-> 		pw_log_warn("vm.overrides in avb.properties are deprecated, "
#   36|   				"use avb.properties.rules instead");
#   37|   		if (cpu != NULL && spa_cpu_get_vm_type(cpu) != SPA_CPU_VM_NONE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1054]
pipewire-1.5.81/src/modules/module-avb/avb.c:39:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:34:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:35:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:37:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:39:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:39:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#   37|   		if (cpu != NULL && spa_cpu_get_vm_type(cpu) != SPA_CPU_VM_NONE)
#   38|   			pw_properties_update_string(props, str, strlen(str));
#   39|-> 		pw_properties_set(props, "vm.overrides", NULL);
#   40|   	}
#   41|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1055]
pipewire-1.5.81/src/modules/module-avb/avb.c:43:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:43:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#   41|   
#   42|   	impl->context = context;
#   43|-> 	impl->loop = pw_context_get_main_loop(context);
#   44|   	impl->timer_queue = pw_context_get_timer_queue(context);
#   45|   	impl->props = props;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1056]
pipewire-1.5.81/src/modules/module-avb/avb.c:44:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:44:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#   42|   	impl->context = context;
#   43|   	impl->loop = pw_context_get_main_loop(context);
#   44|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
#   45|   	impl->props = props;
#   46|   	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1057]
pipewire-1.5.81/src/modules/module-avb/avb.c:46:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:46:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#   44|   	impl->timer_queue = pw_context_get_timer_queue(context);
#   45|   	impl->props = props;
#   46|-> 	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
#   47|   	if (impl->core == NULL) {
#   48|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1058]
pipewire-1.5.81/src/modules/module-avb/avb.c:48:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:47:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:48:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:48:23: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#   46|   	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
#   47|   	if (impl->core == NULL) {
#   48|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#   49|   		impl->core = pw_context_connect(context,
#   50|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1059]
pipewire-1.5.81/src/modules/module-avb/avb.c:49:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:47:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:48:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:49:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#   47|   	if (impl->core == NULL) {
#   48|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#   49|-> 		impl->core = pw_context_connect(context,
#   50|   				pw_properties_new(
#   51|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1060]
pipewire-1.5.81/src/modules/module-avb/avb.c:58:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:56:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:57:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:58:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:58:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:58:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#   56|   	if (impl->core == NULL) {
#   57|   		res = -errno;
#   58|-> 		pw_log_error("can't connect: %m");
#   59|   		goto error_free;
#   60|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1061]
pipewire-1.5.81/src/modules/module-avb/avb.c:64:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-avb/avb.c:20:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/avb.c:21:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/avb.c:24:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:56:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/avb.c:62:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/avb.c:64:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#   62|   	spa_list_init(&impl->servers);
#   63|   
#   64|-> 	avdecc_server_new(impl, &props->dict);
#   65|   
#   66|   	return (struct pw_avb*)impl;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1062]
pipewire-1.5.81/src/modules/module-avb/maap.c:388:23: warning[-Wanalyzer-malloc-leak]: leak of ‘maap’
pipewire-1.5.81/src/modules/module-avb/maap.c:378:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/maap.c:383:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:383:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/maap.c:384:12: branch_false: following ‘false’ branch (when ‘maap’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/maap.c:388:23: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:388:23: danger: ‘maap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  386|   		goto error_close;
#  387|   	}
#  388|-> 	maap->props = pw_properties_new(NULL, NULL);
#  389|   	if (maap->props == NULL) {
#  390|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1063]
pipewire-1.5.81/src/modules/module-avb/maap.c:395:9: warning[-Wanalyzer-malloc-leak]: leak of ‘maap’
pipewire-1.5.81/src/modules/module-avb/maap.c:378:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/maap.c:383:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:383:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/maap.c:384:12: branch_false: following ‘false’ branch (when ‘maap’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/maap.c:388:23: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:389:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/maap.c:394:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:395:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/maap.c:395:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:395:9: danger: ‘maap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  393|   
#  394|   	maap->server = server;
#  395|-> 	pw_log_info("0x%"PRIx64" %d", server->entity_id, server->ifindex);
#  396|   
#  397|   	pw_random(maap->xsubi, sizeof(maap->xsubi));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1064]
pipewire-1.5.81/src/modules/module-avb/maap.c:397:9: warning[-Wanalyzer-malloc-leak]: leak of ‘maap’
pipewire-1.5.81/src/modules/module-avb/maap.c:378:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/maap.c:383:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:383:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/maap.c:384:12: branch_false: following ‘false’ branch (when ‘maap’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/maap.c:388:23: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:389:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/maap.c:394:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/maap.c:397:9: danger: ‘maap’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  395|   	pw_log_info("0x%"PRIx64" %d", server->entity_id, server->ifindex);
#  396|   
#  397|-> 	pw_random(maap->xsubi, sizeof(maap->xsubi));
#  398|   
#  399|   	load_state(maap);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1065]
pipewire-1.5.81/src/modules/module-avb/mmrp.c:200:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mmrp’
pipewire-1.5.81/src/modules/module-avb/mmrp.c:184:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/mmrp.c:188:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:188:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:189:12: branch_false: following ‘false’ branch (when ‘mmrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/mmrp.c:194:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:198:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/mmrp.c:199:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:200:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/mmrp.c:200:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/mmrp.c:200:17: danger: ‘mmrp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  198|   	if (mmrp->source == NULL) {
#  199|   		res = -errno;
#  200|-> 		pw_log_error("mmrp %p: can't create mmrp source: %m", mmrp);
#  201|   		goto error_no_source;
#  202|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1066]
pipewire-1.5.81/src/modules/module-avb/mrp.c:582:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mrp’
pipewire-1.5.81/src/modules/module-avb/mrp.c:574:15: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/mrp.c:575:12: branch_false: following ‘false’ branch (when ‘mrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/mrp.c:578:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mrp.c:582:9: danger: ‘mrp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  580|   	spa_hook_list_init(&mrp->listener_list);
#  581|   
#  582|-> 	avdecc_server_add_listener(server, &mrp->server_listener, &server_events, mrp);
#  583|   
#  584|   	return (struct avb_mrp*)mrp;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1067]
pipewire-1.5.81/src/modules/module-avb/msrp.c:425:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msrp’
pipewire-1.5.81/src/modules/module-avb/msrp.c:409:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/msrp.c:413:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/msrp.c:413:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/msrp.c:414:12: branch_false: following ‘false’ branch (when ‘msrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/msrp.c:419:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/msrp.c:423:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/msrp.c:424:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/msrp.c:425:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/msrp.c:425:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/msrp.c:425:17: danger: ‘msrp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  423|   	if (msrp->source == NULL) {
#  424|   		res = -errno;
#  425|-> 		pw_log_error("msrp %p: can't create msrp source: %m", msrp);
#  426|   		goto error_no_source;
#  427|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1068]
pipewire-1.5.81/src/modules/module-avb/mvrp.c:263:17: warning[-Wanalyzer-malloc-leak]: leak of ‘mvrp’
pipewire-1.5.81/src/modules/module-avb/mvrp.c:247:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-avb/mvrp.c:251:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:252:12: branch_false: following ‘false’ branch (when ‘mvrp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/mvrp.c:257:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:261:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/mvrp.c:262:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:263:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-avb/mvrp.c:263:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-avb/mvrp.c:263:17: danger: ‘mvrp’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#  261|   	if (mvrp->source == NULL) {
#  262|   		res = -errno;
#  263|-> 		pw_log_error("mvrp %p: can't create mvrp source: %m", mvrp);
#  264|   		goto error_no_source;
#  265|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1069]
pipewire-1.5.81/src/modules/module-avb/srp.c:36:9: warning[-Wanalyzer-malloc-leak]: leak of ‘srp’
pipewire-1.5.81/src/modules/module-avb/srp.c:30:15: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-avb/srp.c:31:12: branch_false: following ‘false’ branch (when ‘srp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-avb/srp.c:34:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-avb/srp.c:36:9: danger: ‘srp’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   34|   	srp->server = server;
#   35|   
#   36|-> 	avdecc_server_add_listener(server, &srp->server_listener, &server_events, srp);
#   37|   
#   38|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1070]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:121: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  119|   		return -EINVAL;
#  120|   
#  121|-> 	pw_proxy_notify(proxy, struct spa_device_methods, sync, 0, seq);
#  122|   	return 0;
#  123|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1071]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:162: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  160|   		return -EINVAL;
#  161|   
#  162|-> 	pw_proxy_notify(proxy, struct spa_device_methods, enum_params, 0,
#  163|   					seq, id, index, max, filter);
#  164|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1072]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:198: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  196|   		return -EINVAL;
#  197|   
#  198|-> 	pw_proxy_notify(proxy, struct spa_device_methods, set_param, 0,
#  199|   					id, flags, param);
#  200|   	return 0;

Error: CPPCHECK_WARNING (CWE-457): [#def1073]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:262: error[uninitvar]: Uninitialized variable: ipod
#  260|   		return -EINVAL;
#  261|   
#  262|-> 	if (ipod) {
#  263|   		struct spa_pod_parser p2;
#  264|   		struct spa_pod_frame f2;

Error: CPPCHECK_WARNING (CWE-190): [#def1074]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:287: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  285|   		infop = NULL;
#  286|   	}
#  287|-> 	pw_resource_notify(resource, struct spa_device_events, info, 0, infop);
#  288|   	return 0;
#  289|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1075]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:365: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  363|   	}
#  364|   
#  365|-> 	pw_resource_notify(resource, struct spa_device_events, result, 0, seq, res, type, result);
#  366|   	return 0;
#  367|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1076]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:394: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  392|   		return -EINVAL;
#  393|   
#  394|-> 	pw_resource_notify(resource, struct spa_device_events, event, 0, event);
#  395|   	return 0;
#  396|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1077]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:453: error[uninitvar]: Uninitialized variable: ipod
#  451|   		return -EINVAL;
#  452|   
#  453|-> 	if (ipod) {
#  454|   		struct spa_pod_parser p2;
#  455|   		struct spa_pod_frame f2;

Error: CPPCHECK_WARNING (CWE-190): [#def1078]
pipewire-1.5.81/src/modules/module-client-device/protocol-native.c:476: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  474|   	}
#  475|   
#  476|-> 	pw_resource_notify(resource, struct spa_device_events, object_info, 0, id, infop);
#  477|   	return 0;
#  478|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1079]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:179: warning[nullPointer]: Possible null pointer dereference: params
#  177|   	}
#  178|   	for (i = 0; i < p->n_params; i++)
#  179|-> 		p->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  180|   	return 0;
#  181|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1080]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:285: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  283|   		struct buffer *b = &mix->buffers[i];
#  284|   
#  285|-> 		spa_log_debug(impl->log, "%p: clear buffer %d", impl, i);
#  286|   		clear_buffer(impl, &b->buffer);
#  287|   		pw_memblock_unref(b->mem);

Error: CPPCHECK_WARNING (CWE-190): [#def1081]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  300|   	if (mix->n_buffers) {
#  301|   		/* this shouldn't happen */
#  302|-> 		spa_log_warn(impl->log, "%p: mix port-id:%u freeing leaked buffers", impl, mix->mix_id - 1u);
#  303|   	}
#  304|   

Error: CPPCHECK_WARNING (CWE-190): [#def1082]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:361: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  359|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  360|   			pw_log_debug("%p: %d param %u", impl, seq, result.index);
#  361|-> 			spa_node_emit_result(&impl->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  362|   			count++;
#  363|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1083]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:382: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  380|   		return param == NULL ? 0 : -EIO;
#  381|   
#  382|-> 	return pw_client_node_resource_set_param(impl->resource, id, flags, param);
#  383|   }
#  384|   

Error: CPPCHECK_WARNING (CWE-190): [#def1084]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:416: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  414|   		return data == NULL ? 0 : -EIO;
#  415|   
#  416|-> 	return pw_client_node_resource_set_io(impl->resource,
#  417|   				       id,
#  418|   				       memid,

Error: CPPCHECK_WARNING (CWE-190): [#def1085]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:437: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  435|   		return -EIO;
#  436|   
#  437|-> 	return pw_client_node_resource_command(impl->resource, command);
#  438|   }
#  439|   

Error: CPPCHECK_WARNING (CWE-190): [#def1086]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:443: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  441|   static void emit_port_info(struct impl *impl, struct port *port)
#  442|   {
#  443|-> 	spa_node_emit_port_info(&impl->hooks,
#  444|   				port->direction, port->id, &port->info);
#  445|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1087]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:511: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  509|   {
#  510|   	if (change_mask & PW_CLIENT_NODE_PORT_UPDATE_PARAMS) {
#  511|-> 		spa_log_debug(impl->log, "%p: port %u update %d params", impl, port->id, n_params);
#  512|   		update_params(&port->params, n_params, params);
#  513|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1088]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:530: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  528|   			port->info.n_params = 0;
#  529|   			port->info.params = NULL;
#  530|-> 			spa_node_emit_port_info(&impl->hooks, port->direction, port->id, info);
#  531|   		}
#  532|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1089]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:545: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  543|   clear_port(struct impl *impl, struct port *port)
#  544|   {
#  545|-> 	spa_log_debug(impl->log, "%p: clear port %p", impl, port);
#  546|   
#  547|   	do_update_port(impl, port,

Error: CPPCHECK_WARNING (CWE-190): [#def1090]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:558: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  556|   
#  557|   	if (!port->removed)
#  558|-> 		spa_node_emit_port_info(&impl->hooks, port->direction, port->id, NULL);
#  559|   }
#  560|   

Error: CPPCHECK_WARNING (CWE-190): [#def1091]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:573: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  571|   		return -EIO;
#  572|   
#  573|-> 	return pw_client_node_resource_add_port(impl->resource, direction, port_id, props);
#  574|   }
#  575|   

Error: CPPCHECK_WARNING (CWE-190): [#def1092]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:587: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  585|   		return -EIO;
#  586|   
#  587|-> 	return pw_client_node_resource_remove_port(impl->resource, direction, port_id);
#  588|   }
#  589|   

Error: CPPCHECK_WARNING (CWE-190): [#def1093]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:635: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  633|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  634|   			pw_log_debug("%p: %d param %u", impl, seq, result.index);
#  635|-> 			spa_node_emit_result(hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  636|   			count++;
#  637|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1094]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:689: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  687|   		return param == NULL ? 0 : -EIO;
#  688|   
#  689|-> 	return pw_client_node_resource_port_set_param(impl->resource,
#  690|   					       direction, port_id,
#  691|   					       id, flags,

Error: CPPCHECK_WARNING (CWE-190): [#def1095]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:742: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  740|   		return data == NULL ? 0 : -EIO;
#  741|   
#  742|-> 	return pw_client_node_resource_port_set_io(impl->resource,
#  743|   					    direction, port_id,
#  744|   					    mix_id,

Error: CPPCHECK_WARNING (CWE-190): [#def1096]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:784: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  782|   		return -ENOSPC;
#  783|   
#  784|-> 	spa_log_debug(impl->log, "%p: %s port %d.%d use buffers %p %u flags:%08x", impl,
#  785|   			direction == SPA_DIRECTION_INPUT ? "input" : "output",
#  786|   			port_id, mix_id, buffers, n_buffers, flags);

Error: CPPCHECK_WARNING (CWE-190): [#def1097]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:854: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  852|   		mb[i].offset = SPA_PTRDIFF(baseptr, mem->map->ptr);
#  853|   		mb[i].size = SPA_PTRDIFF(endptr, baseptr);
#  854|-> 		spa_log_debug(impl->log, "%p: buffer %d %d %d %d", impl, i, mb[i].mem_id,
#  855|   				mb[i].offset, mb[i].size);
#  856|   

Error: CPPCHECK_WARNING (CWE-190): [#def1098]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:884: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  882|   					flags |= PW_MEMBLOCK_FLAG_WRITABLE;
#  883|   
#  884|-> 				spa_log_debug(impl->log, "mem %d type:%d fd:%d", j, d->type, (int)d->fd);
#  885|   				m = pw_mempool_import(impl->client_pool,
#  886|   					flags, d->type, d->fd);

Error: CPPCHECK_WARNING (CWE-190): [#def1099]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:895: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  893|   			}
#  894|   			case SPA_DATA_MemPtr:
#  895|-> 				spa_log_debug(impl->log, "mem %d %zd", j, SPA_PTRDIFF(d->data, baseptr));
#  896|   				b->datas[j].data = SPA_INT_TO_PTR(SPA_PTRDIFF(d->data, baseptr));
#  897|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def1100]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:901: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  899|   				b->datas[j].type = SPA_ID_INVALID;
#  900|   				b->datas[j].data = NULL;
#  901|-> 				spa_log_error(impl->log, "invalid memory type %d", d->type);
#  902|   				break;
#  903|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def1101]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:908: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  906|   	mix->n_buffers = n_buffers;
#  907|   
#  908|-> 	return pw_client_node_resource_port_use_buffers(impl->resource,
#  909|   						 direction, port_id, mix_id, flags,
#  910|   						 n_buffers, mb);

Error: CPPCHECK_WARNING (CWE-190): [#def1102]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:950: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  948|   	/* this should not be called, we call the exported node
#  949|   	 * directly */
#  950|-> 	spa_log_warn(impl->log, "exported node activation");
#  951|   	spa_system_clock_gettime(impl->data_system, CLOCK_MONOTONIC, &ts);
#  952|   	n->rt.target.activation->status = PW_NODE_ACTIVATION_TRIGGERED;

Error: CPPCHECK_WARNING (CWE-190): [#def1103]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:992: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  990|   	}
#  991|   	if (change_mask & PW_CLIENT_NODE_UPDATE_INFO) {
#  992|-> 		spa_node_emit_info(&impl->hooks, info);
#  993|   	}
#  994|   	pw_log_debug("%p: got node update", impl);

Error: CPPCHECK_WARNING (CWE-190): [#def1104]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1011: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1009|   	bool remove;
# 1010|   
# 1011|-> 	spa_log_debug(impl->log, "%p: got port update change:%08x params:%d",
# 1012|   			impl, change_mask, n_params);
# 1013|   

Error: CPPCHECK_WARNING (CWE-190): [#def1105]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1049: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1047|   {
# 1048|   	struct impl *impl = data;
# 1049|-> 	spa_log_debug(impl->log, "%p: active:%d", impl, active);
# 1050|   	return pw_impl_node_set_active(impl->this.node, active);
# 1051|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1106]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1056: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1054|   {
# 1055|   	struct impl *impl = data;
# 1056|-> 	spa_node_emit_event(&impl->hooks, event);
# 1057|   	return 0;
# 1058|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1107]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1072: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1070|   	uint32_t i, j;
# 1071|   
# 1072|-> 	spa_log_debug(impl->log, "%p: %s port %d.%d buffers %p %u", impl,
# 1073|   			direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 1074|   			port_id, mix_id, buffers, n_buffers);

Error: CPPCHECK_WARNING (CWE-190): [#def1108]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1100: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1098|   		newbuf = buffers[i];
# 1099|   
# 1100|-> 		spa_log_debug(impl->log, "buffer %d n_datas:%d", i, newbuf->n_datas);
# 1101|   
# 1102|   		for (j = 0; j < b->buffer.n_datas; j++) {

Error: CPPCHECK_WARNING (CWE-190): [#def1109]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1109: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1107|   			if (d->type == SPA_DATA_MemFd &&
# 1108|   			    !SPA_FLAG_IS_SET(flags, SPA_DATA_FLAG_MAPPABLE)) {
# 1109|-> 				spa_log_debug(impl->log, "buffer:%d data:%d has non mappable MemFd, "
# 1110|   						"fixing to ensure backwards compatibility.",
# 1111|   						i, j);

Error: CPPCHECK_WARNING (CWE-190): [#def1110]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1124: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1122|   			b->datas[j].fd = d->fd;
# 1123|   
# 1124|-> 			spa_log_debug(impl->log, " data %d type:%d fl:%08x fd:%d, offs:%d max:%d",
# 1125|   					j, d->type, flags, (int) d->fd, d->mapoffset,
# 1126|   					d->maxsize);

Error: CPPCHECK_WARNING (CWE-190): [#def1111]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1149|   
# 1150|   	if (SPA_UNLIKELY(source->rmask & (SPA_IO_ERR | SPA_IO_HUP))) {
# 1151|-> 		spa_log_warn(impl->log, "%p: got error", impl);
# 1152|   		return;
# 1153|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1112]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1170|   		} else {
# 1171|   			spa_log_trace_fp(impl->log, "%p: got complete", impl);
# 1172|-> 			pw_impl_node_rt_emit_complete(node);
# 1173|   		}
# 1174|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1113]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1263: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1261|   	pw_log_error("%p: error seq:%d %d (%s)", impl, seq, res, message);
# 1262|   	result.message = message;
# 1263|-> 	spa_node_emit_result(&impl->hooks, seq, res, SPA_RESULT_TYPE_NODE_ERROR, &result);
# 1264|   }
# 1265|   

Error: CPPCHECK_WARNING (CWE-190): [#def1114]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1270: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1268|   	struct impl *impl = data;
# 1269|   	pw_log_debug("%p: got pong, emit result %d", impl, seq);
# 1270|-> 	spa_node_emit_result(&impl->hooks, seq, 0, 0, NULL);
# 1271|   }
# 1272|   

Error: CPPCHECK_WARNING (CWE-190): [#def1115]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1288|   		return;
# 1289|   
# 1290|-> 	pw_client_node_resource_set_activation(impl->resource,
# 1291|   					  peer->info.id,
# 1292|   					  peer->source.fd,

Error: CPPCHECK_WARNING (CWE-190): [#def1116]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1314: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1312|   
# 1313|   	if (impl->resource != NULL) {
# 1314|-> 		pw_client_node_resource_set_activation(impl->resource,
# 1315|   					  peer->info.id,
# 1316|   					  -1,

Error: CPPCHECK_WARNING (CWE-190): [#def1117]
pipewire-1.5.81/src/modules/module-client-node/client-node.c:1345: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1343|   	pw_resource_set_bound_id(impl->resource, node_id);
# 1344|   
# 1345|-> 	pw_client_node_resource_transport(impl->resource,
# 1346|   					  this->node->source.fd,
# 1347|   					  impl->data_source.fd,

Error: CPPCHECK_WARNING (CWE-190): [#def1118]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:380: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  378|   		return -EINVAL;
#  379|   
#  380|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, transport, 0,
#  381|   								   readfd, writefd, mem_id,
#  382|   								   offset, sz);

Error: CPPCHECK_WARNING (CWE-190): [#def1119]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:400: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  398|   		return -EINVAL;
#  399|   
#  400|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, set_param, 0, id, flags, param);
#  401|   	return 0;
#  402|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1120]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:415: error[uninitvar]: Uninitialized variable: event
#  413|   		return -EINVAL;
#  414|   
#  415|-> 	if (event == NULL)
#  416|   		return -EINVAL;
#  417|   

Error: CPPCHECK_WARNING (CWE-190): [#def1121]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:418: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  416|   		return -EINVAL;
#  417|   
#  418|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, event, 0, event);
#  419|   	return 0;
#  420|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1122]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:433: error[uninitvar]: Uninitialized variable: command
#  431|   		return -EINVAL;
#  432|   
#  433|-> 	if (command == NULL)
#  434|   		return -EINVAL;
#  435|   

Error: CPPCHECK_WARNING (CWE-190): [#def1123]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:436: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  434|   		return -EINVAL;
#  435|   
#  436|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, command, 0, command);
#  437|   	return 0;
#  438|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1124]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:459: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  457|   	parse_dict_struct(&prs, &f[1], &props);
#  458|   
#  459|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, add_port, 0, direction, port_id,
#  460|   			props.n_items ? &props : NULL);
#  461|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1125]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:476: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  474|   		return -EINVAL;
#  475|   
#  476|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, remove_port, 0, direction, port_id);
#  477|   	return 0;
#  478|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1126]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:496: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  494|   		return -EINVAL;
#  495|   
#  496|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, port_set_param, 0,
#  497|   			direction, port_id, id, flags, param);
#  498|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1127]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:572: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  570|   		}
#  571|   	}
#  572|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, port_use_buffers, 0,
#  573|   									  direction,
#  574|   									  port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def1128]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:598: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  596|   		return -EINVAL;
#  597|   
#  598|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, port_set_io, 0,
#  599|   							direction, port_id, mix_id,
#  600|   							id, memid,

Error: CPPCHECK_WARNING (CWE-190): [#def1129]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:624: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  622|   	signalfd = pw_protocol_native_get_proxy_fd(proxy, sigidx);
#  623|   
#  624|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, set_activation, 0,
#  625|   							node_id,
#  626|   							signalfd,

Error: CPPCHECK_WARNING (CWE-190): [#def1130]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:671: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  669|   		return -EINVAL;
#  670|   
#  671|-> 	pw_proxy_notify(proxy, struct pw_client_node_events, set_io, 0,
#  672|   			id, memid, off, sz);
#  673|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1131]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:963: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  961|   		return -EINVAL;
#  962|   
#  963|-> 	return pw_resource_notify(resource, struct pw_client_node_methods, get_node, 0,
#  964|   			version, new_id);
#  965|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1132]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:1015: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1013|   	}
# 1014|   
# 1015|-> 	pw_resource_notify(resource, struct pw_client_node_methods, update, 0, change_mask,
# 1016|   									n_params,
# 1017|   									params, infop);

Error: CPPCHECK_WARNING (CWE-190): [#def1133]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:1072: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1070|   	}
# 1071|   
# 1072|-> 	pw_resource_notify(resource, struct pw_client_node_methods, port_update, 0, direction,
# 1073|   									     port_id,
# 1074|   									     change_mask,

Error: CPPCHECK_WARNING (CWE-190): [#def1134]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:1091: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1089|   		return -EINVAL;
# 1090|   
# 1091|-> 	pw_resource_notify(resource, struct pw_client_node_methods, set_active, 0, active);
# 1092|   	return 0;
# 1093|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1135]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:1106: error[uninitvar]: Uninitialized variable: event
# 1104|   		return -EINVAL;
# 1105|   
# 1106|-> 	if (event == NULL)
# 1107|   		return -EINVAL;
# 1108|   

Error: CPPCHECK_WARNING (CWE-190): [#def1136]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:1109: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1107|   		return -EINVAL;
# 1108|   
# 1109|-> 	pw_resource_notify(resource, struct pw_client_node_methods, event, 0, event);
# 1110|   	return 0;
# 1111|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1137]
pipewire-1.5.81/src/modules/module-client-node/protocol-native.c:1162: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1160|   	}
# 1161|   
# 1162|-> 	pw_resource_notify(resource, struct pw_client_node_methods, port_buffers, 0,
# 1163|   			direction, port_id, mix_id, n_buffers, buffers);
# 1164|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1138]
pipewire-1.5.81/src/modules/module-client-node/remote-node.c:137:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mix’
pipewire-1.5.81/src/modules/module-client-node/remote-node.c:1046:13: enter_function: entry to ‘node_port_added’
pipewire-1.5.81/src/modules/module-client-node/remote-node.c:1053:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-client-node/remote-node.c:1056:15: branch_false: ...to here
pipewire-1.5.81/src/modules/module-client-node/remote-node.c:1056:15: call_function: calling ‘create_mix’ from ‘node_port_added’
#  135|   		uint32_t mix_id, uint32_t peer_id)
#  136|   {
#  137|-> 	pw_log_debug("port %p: mix init %d.%d", port, port->port_id, mix_id);
#  138|   	mix->port = port;
#  139|   	mix->mix.id = mix_id;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1139]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
# 1253|   		return -errno;
# 1254|   
# 1255|-> 	pw_log_debug("module %p: new %s", impl, args);
# 1256|   
# 1257|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1140]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1258:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1258:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1258:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1256|   
# 1257|   	if (args)
# 1258|-> 		props = pw_properties_new_string(args);
# 1259|   	else
# 1260|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1141]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1260:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1260:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1260:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1258|   		props = pw_properties_new_string(args);
# 1259|   	else
# 1260|-> 		props = pw_properties_new(NULL, NULL);
# 1261|   	if (props == NULL) {
# 1262|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1142]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1263:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1262:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1263:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1263:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1263:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1261|   	if (props == NULL) {
# 1262|   		res = -errno;
# 1263|-> 		pw_log_error( "can't create properties: %m");
# 1264|   		goto error;
# 1265|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1143]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1265|   	}
# 1266|   
# 1267|-> 	impl->capture_props = pw_properties_new(NULL, NULL);
# 1268|   	impl->source_props = pw_properties_new(NULL, NULL);
# 1269|   	impl->playback_props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1144]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1268:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1268:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1266|   
# 1267|   	impl->capture_props = pw_properties_new(NULL, NULL);
# 1268|-> 	impl->source_props = pw_properties_new(NULL, NULL);
# 1269|   	impl->playback_props = pw_properties_new(NULL, NULL);
# 1270|   	impl->sink_props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1145]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1269:32: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1269:32: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1267|   	impl->capture_props = pw_properties_new(NULL, NULL);
# 1268|   	impl->source_props = pw_properties_new(NULL, NULL);
# 1269|-> 	impl->playback_props = pw_properties_new(NULL, NULL);
# 1270|   	impl->sink_props = pw_properties_new(NULL, NULL);
# 1271|   	if (impl->source_props == NULL || impl->sink_props == NULL ||

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1146]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1270:28: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1270:28: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1268|   	impl->source_props = pw_properties_new(NULL, NULL);
# 1269|   	impl->playback_props = pw_properties_new(NULL, NULL);
# 1270|-> 	impl->sink_props = pw_properties_new(NULL, NULL);
# 1271|   	if (impl->source_props == NULL || impl->sink_props == NULL ||
# 1272|   	    impl->capture_props == NULL || impl->playback_props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1147]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1274:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1274:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1274:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1274:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1272|   	    impl->capture_props == NULL || impl->playback_props == NULL) {
# 1273|   		res = -errno;
# 1274|-> 		pw_log_error( "can't create properties: %m");
# 1275|   		goto error;
# 1276|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1148]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1277|   
# 1278|   	impl->monitor_mode = false;
# 1279|-> 	if ((str = pw_properties_get(props, "monitor.mode")) != NULL)
# 1280|   		impl->monitor_mode = pw_properties_parse_bool(str);
# 1281|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1149]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1285:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1285:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1283|   	impl->context = context;
# 1284|   
# 1285|-> 	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 1286|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u-%u", pid, id);
# 1287|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1150]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1286:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1285:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1286:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1286:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1284|   
# 1285|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 1286|-> 		pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u-%u", pid, id);
# 1287|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1288|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u-%u", pid, id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1151]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1287:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1287:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1285|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 1286|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u-%u", pid, id);
# 1287|-> 	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1288|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u-%u", pid, id);
# 1289|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1152]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1288:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1287:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1288:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1288:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1286|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "echo-cancel-%u-%u", pid, id);
# 1287|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1288|-> 		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u-%u", pid, id);
# 1289|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1290|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1153]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1289:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1289:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1287|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1288|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u-%u", pid, id);
# 1289|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1290|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1291|   	if (pw_properties_get(props, "resample.prefill") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1154]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1290:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1289:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1290:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1290:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1288|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "echo-cancel-%u-%u", pid, id);
# 1289|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1290|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1291|   	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1292|   		pw_properties_set(props, "resample.prefill", "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1155]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1291:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1291:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1289|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1290|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1291|-> 	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1292|   		pw_properties_set(props, "resample.prefill", "true");
# 1293|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1156]
pipewire-1.5.81/src/modules/module-echo-cancel.c:1292:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-echo-cancel.c:1251:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1252:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1255:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1257:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1261:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1267:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1271:13: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1278:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1279:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1282:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1291:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-echo-cancel.c:1292:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-echo-cancel.c:1292:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1290|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1291|   	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1292|-> 		pw_properties_set(props, "resample.prefill", "true");
# 1293|   
# 1294|   	parse_audio_info(props, &info);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1157]
pipewire-1.5.81/src/modules/module-example-filter.c:486:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:495:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:550:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  484|   {
#  485|   	const char *str;
#  486|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  487|   		if (pw_properties_get(impl->capture_props, key) == NULL)
#  488|   			pw_properties_set(impl->capture_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1158]
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  509|   		return -errno;
#  510|   
#  511|-> 	pw_log_debug("module %p: new %s", impl, args);
#  512|   
#  513|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1159]
pipewire-1.5.81/src/modules/module-example-filter.c:514:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:514:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:514:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  512|   
#  513|   	if (args)
#  514|-> 		props = pw_properties_new_string(args);
#  515|   	else
#  516|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1160]
pipewire-1.5.81/src/modules/module-example-filter.c:516:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:516:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:516:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  514|   		props = pw_properties_new_string(args);
#  515|   	else
#  516|-> 		props = pw_properties_new(NULL, NULL);
#  517|   	if (props == NULL) {
#  518|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1161]
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:518:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:519:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  517|   	if (props == NULL) {
#  518|   		res = -errno;
#  519|-> 		pw_log_error( "can't create properties: %m");
#  520|   		goto error;
#  521|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1162]
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  521|   	}
#  522|   
#  523|-> 	impl->capture_props = pw_properties_new(NULL, NULL);
#  524|   	impl->playback_props = pw_properties_new(NULL, NULL);
#  525|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1163]
pipewire-1.5.81/src/modules/module-example-filter.c:524:32: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:524:32: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  522|   
#  523|   	impl->capture_props = pw_properties_new(NULL, NULL);
#  524|-> 	impl->playback_props = pw_properties_new(NULL, NULL);
#  525|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {
#  526|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1164]
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:527:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  525|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {
#  526|   		res = -errno;
#  527|-> 		pw_log_error( "can't create properties: %m");
#  528|   		goto error;
#  529|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1165]
pipewire-1.5.81/src/modules/module-example-filter.c:536:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:536:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  534|   	impl->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
#  535|   
#  536|-> 	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
#  537|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
#  538|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1166]
pipewire-1.5.81/src/modules/module-example-filter.c:537:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:536:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:537:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:537:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  535|   
#  536|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
#  537|-> 		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
#  538|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  539|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1167]
pipewire-1.5.81/src/modules/module-example-filter.c:538:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:538:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  536|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
#  537|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
#  538|-> 	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  539|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
#  540|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1168]
pipewire-1.5.81/src/modules/module-example-filter.c:539:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:538:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:539:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:539:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  537|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-%u-%u", pid, id);
#  538|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  539|-> 		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
#  540|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  541|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1169]
pipewire-1.5.81/src/modules/module-example-filter.c:540:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:540:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  538|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  539|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
#  540|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  541|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  542|   	if (pw_properties_get(props, "resample.prefill") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1170]
pipewire-1.5.81/src/modules/module-example-filter.c:541:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:540:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:541:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:541:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  539|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-%u-%u", pid, id);
#  540|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  541|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  542|   	if (pw_properties_get(props, "resample.prefill") == NULL)
#  543|   		pw_properties_set(props, "resample.prefill", "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1171]
pipewire-1.5.81/src/modules/module-example-filter.c:542:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:542:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  540|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  541|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  542|-> 	if (pw_properties_get(props, "resample.prefill") == NULL)
#  543|   		pw_properties_set(props, "resample.prefill", "true");
#  544|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1172]
pipewire-1.5.81/src/modules/module-example-filter.c:543:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:542:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:543:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:543:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  541|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  542|   	if (pw_properties_get(props, "resample.prefill") == NULL)
#  543|-> 		pw_properties_set(props, "resample.prefill", "true");
#  544|   
#  545|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1173]
pipewire-1.5.81/src/modules/module-example-filter.c:545:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:545:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  543|   		pw_properties_set(props, "resample.prefill", "true");
#  544|   
#  545|-> 	if ((str = pw_properties_get(props, "capture.props")) != NULL)
#  546|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  547|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1174]
pipewire-1.5.81/src/modules/module-example-filter.c:546:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:545:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:546:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:546:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  544|   
#  545|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)
#  546|-> 		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  547|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)
#  548|   		pw_properties_update_string(impl->playback_props, str, strlen(str));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1175]
pipewire-1.5.81/src/modules/module-example-filter.c:547:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:547:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  545|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)
#  546|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  547|-> 	if ((str = pw_properties_get(props, "playback.props")) != NULL)
#  548|   		pw_properties_update_string(impl->playback_props, str, strlen(str));
#  549|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1176]
pipewire-1.5.81/src/modules/module-example-filter.c:548:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-filter.c:507:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-filter.c:508:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:511:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:513:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:517:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-filter.c:523:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:525:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:547:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-filter.c:548:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-filter.c:548:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  546|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  547|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)
#  548|-> 		pw_properties_update_string(impl->playback_props, str, strlen(str));
#  549|   
#  550|   	copy_props(impl, props, PW_KEY_AUDIO_RATE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1177]
pipewire-1.5.81/src/modules/module-example-sink.c:327:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:334:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:388:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  325|   {
#  326|   	const char *str;
#  327|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  328|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  329|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1178]
pipewire-1.5.81/src/modules/module-example-sink.c:328:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:334:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:388:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  326|   	const char *str;
#  327|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  328|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  329|   			pw_properties_set(impl->stream_props, key, str);
#  330|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1179]
pipewire-1.5.81/src/modules/module-example-sink.c:329:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:334:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:388:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  327|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  328|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  329|-> 			pw_properties_set(impl->stream_props, key, str);
#  330|   	}
#  331|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1180]
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  348|   		return -errno;
#  349|   
#  350|-> 	pw_log_debug("module %p: new %s", impl, args);
#  351|   
#  352|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1181]
pipewire-1.5.81/src/modules/module-example-sink.c:355:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:355:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  353|   		args = "";
#  354|   
#  355|-> 	props = pw_properties_new_string(args);
#  356|   	if (props == NULL) {
#  357|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1182]
pipewire-1.5.81/src/modules/module-example-sink.c:358:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:357:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:358:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:358:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:358:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  356|   	if (props == NULL) {
#  357|   		res = -errno;
#  358|-> 		pw_log_error( "can't create properties: %m");
#  359|   		goto error;
#  360|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1183]
pipewire-1.5.81/src/modules/module-example-sink.c:363:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:363:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  361|   	impl->props = props;
#  362|   
#  363|-> 	impl->stream_props = pw_properties_new(NULL, NULL);
#  364|   	if (impl->stream_props == NULL) {
#  365|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1184]
pipewire-1.5.81/src/modules/module-example-sink.c:366:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:365:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:366:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:366:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:366:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  364|   	if (impl->stream_props == NULL) {
#  365|   		res = -errno;
#  366|-> 		pw_log_error( "can't create properties: %m");
#  367|   		goto error;
#  368|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1185]
pipewire-1.5.81/src/modules/module-example-sink.c:373:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:373:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  371|   	impl->context = context;
#  372|   
#  373|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  374|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  375|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1186]
pipewire-1.5.81/src/modules/module-example-sink.c:374:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:373:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:374:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:374:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  372|   
#  373|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  374|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  375|   
#  376|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1187]
pipewire-1.5.81/src/modules/module-example-sink.c:376:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:376:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  374|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  375|   
#  376|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  377|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
#  378|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1188]
pipewire-1.5.81/src/modules/module-example-sink.c:377:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:376:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:377:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:377:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  375|   
#  376|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  377|-> 		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
#  378|   
#  379|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1189]
pipewire-1.5.81/src/modules/module-example-sink.c:379:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:379:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  377|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
#  378|   
#  379|-> 	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  380|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-sink-%u-%u", pid, id);
#  381|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1190]
pipewire-1.5.81/src/modules/module-example-sink.c:380:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:379:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:380:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:380:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  378|   
#  379|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  380|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-sink-%u-%u", pid, id);
#  381|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  382|   		pw_properties_set(props, PW_KEY_NODE_DESCRIPTION,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1191]
pipewire-1.5.81/src/modules/module-example-sink.c:381:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:381:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  379|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  380|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-sink-%u-%u", pid, id);
#  381|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  382|   		pw_properties_set(props, PW_KEY_NODE_DESCRIPTION,
#  383|   				pw_properties_get(props, PW_KEY_NODE_NAME));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1192]
pipewire-1.5.81/src/modules/module-example-sink.c:382:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:381:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:382:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:382:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  380|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-sink-%u-%u", pid, id);
#  381|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  382|-> 		pw_properties_set(props, PW_KEY_NODE_DESCRIPTION,
#  383|   				pw_properties_get(props, PW_KEY_NODE_NAME));
#  384|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1193]
pipewire-1.5.81/src/modules/module-example-sink.c:385:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:385:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  383|   				pw_properties_get(props, PW_KEY_NODE_NAME));
#  384|   
#  385|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  386|   		pw_properties_update_string(impl->stream_props, str, strlen(str));
#  387|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1194]
pipewire-1.5.81/src/modules/module-example-sink.c:386:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-sink.c:346:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-sink.c:347:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:350:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:352:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:356:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:361:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:364:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:385:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-sink.c:386:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-sink.c:386:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  384|   
#  385|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  386|-> 		pw_properties_update_string(impl->stream_props, str, strlen(str));
#  387|   
#  388|   	copy_props(impl, props, PW_KEY_AUDIO_RATE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1195]
pipewire-1.5.81/src/modules/module-example-source.c:333:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:340:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:394:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  331|   {
#  332|   	const char *str;
#  333|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  334|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  335|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1196]
pipewire-1.5.81/src/modules/module-example-source.c:334:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:340:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:394:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  332|   	const char *str;
#  333|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  334|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  335|   			pw_properties_set(impl->stream_props, key, str);
#  336|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1197]
pipewire-1.5.81/src/modules/module-example-source.c:335:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:340:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:394:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  333|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  334|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  335|-> 			pw_properties_set(impl->stream_props, key, str);
#  336|   	}
#  337|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1198]
pipewire-1.5.81/src/modules/module-example-source.c:356:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  354|   		return -errno;
#  355|   
#  356|-> 	pw_log_debug("module %p: new %s", impl, args);
#  357|   
#  358|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1199]
pipewire-1.5.81/src/modules/module-example-source.c:361:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:361:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  359|   		args = "";
#  360|   
#  361|-> 	props = pw_properties_new_string(args);
#  362|   	if (props == NULL) {
#  363|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1200]
pipewire-1.5.81/src/modules/module-example-source.c:364:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:363:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:364:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:364:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:364:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  362|   	if (props == NULL) {
#  363|   		res = -errno;
#  364|-> 		pw_log_error( "can't create properties: %m");
#  365|   		goto error;
#  366|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1201]
pipewire-1.5.81/src/modules/module-example-source.c:369:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:369:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  367|   	impl->props = props;
#  368|   
#  369|-> 	impl->stream_props = pw_properties_new(NULL, NULL);
#  370|   	if (impl->stream_props == NULL) {
#  371|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1202]
pipewire-1.5.81/src/modules/module-example-source.c:372:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:371:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:372:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:372:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:372:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  370|   	if (impl->stream_props == NULL) {
#  371|   		res = -errno;
#  372|-> 		pw_log_error( "can't create properties: %m");
#  373|   		goto error;
#  374|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1203]
pipewire-1.5.81/src/modules/module-example-source.c:379:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:379:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  377|   	impl->context = context;
#  378|   
#  379|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  380|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  381|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1204]
pipewire-1.5.81/src/modules/module-example-source.c:380:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:379:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:380:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:380:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  378|   
#  379|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  380|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  381|   
#  382|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1205]
pipewire-1.5.81/src/modules/module-example-source.c:382:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:382:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  380|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  381|   
#  382|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  383|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Source");
#  384|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1206]
pipewire-1.5.81/src/modules/module-example-source.c:383:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:382:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:383:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:383:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  381|   
#  382|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  383|-> 		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Source");
#  384|   
#  385|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1207]
pipewire-1.5.81/src/modules/module-example-source.c:385:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:385:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  383|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Source");
#  384|   
#  385|-> 	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  386|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-source-%u-%u", pid, id);
#  387|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1208]
pipewire-1.5.81/src/modules/module-example-source.c:386:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:385:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:386:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:386:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  384|   
#  385|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  386|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-source-%u-%u", pid, id);
#  387|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  388|   		pw_properties_set(props, PW_KEY_NODE_DESCRIPTION,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1209]
pipewire-1.5.81/src/modules/module-example-source.c:387:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:387:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  385|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  386|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-source-%u-%u", pid, id);
#  387|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  388|   		pw_properties_set(props, PW_KEY_NODE_DESCRIPTION,
#  389|   				pw_properties_get(props, PW_KEY_NODE_NAME));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1210]
pipewire-1.5.81/src/modules/module-example-source.c:388:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:387:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:388:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:388:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  386|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "example-source-%u-%u", pid, id);
#  387|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  388|-> 		pw_properties_set(props, PW_KEY_NODE_DESCRIPTION,
#  389|   				pw_properties_get(props, PW_KEY_NODE_NAME));
#  390|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1211]
pipewire-1.5.81/src/modules/module-example-source.c:391:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:391:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  389|   				pw_properties_get(props, PW_KEY_NODE_NAME));
#  390|   
#  391|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  392|   		pw_properties_update_string(impl->stream_props, str, strlen(str));
#  393|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1212]
pipewire-1.5.81/src/modules/module-example-source.c:392:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-example-source.c:352:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-example-source.c:353:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:356:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:367:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:370:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:376:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:391:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-example-source.c:392:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-example-source.c:392:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  390|   
#  391|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  392|-> 		pw_properties_update_string(impl->stream_props, str, strlen(str));
#  393|   
#  394|   	copy_props(impl, props, PW_KEY_AUDIO_RATE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1213]
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  379|   		goto error_errno;
#  380|   
#  381|-> 	pw_log_debug("module %p: new %s", impl, args);
#  382|   
#  383|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1214]
pipewire-1.5.81/src/modules/module-fallback-sink.c:389:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:389:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  387|   	impl->context = context;
#  388|   
#  389|-> 	props = pw_properties_new_string(args);
#  390|   	if (props == NULL)
#  391|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1215]
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  391|   		goto error_errno;
#  392|   
#  393|-> 	impl->properties = pw_properties_new(NULL, NULL);
#  394|   	if (impl->properties == NULL)
#  395|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1216]
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  395|   		goto error_errno;
#  396|   
#  397|-> 	if ((str = pw_properties_get(props, "sink.name")) == NULL)
#  398|   		str = DEFAULT_SINK_NAME;
#  399|   	pw_properties_set(impl->properties, PW_KEY_NODE_NAME, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1217]
pipewire-1.5.81/src/modules/module-fallback-sink.c:399:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:399:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  397|   	if ((str = pw_properties_get(props, "sink.name")) == NULL)
#  398|   		str = DEFAULT_SINK_NAME;
#  399|-> 	pw_properties_set(impl->properties, PW_KEY_NODE_NAME, str);
#  400|   
#  401|   	if ((str = pw_properties_get(props, "sink.description")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1218]
pipewire-1.5.81/src/modules/module-fallback-sink.c:401:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:401:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  399|   	pw_properties_set(impl->properties, PW_KEY_NODE_NAME, str);
#  400|   
#  401|-> 	if ((str = pw_properties_get(props, "sink.description")) == NULL)
#  402|   		str = DEFAULT_SINK_DESCRIPTION;
#  403|   	pw_properties_set(impl->properties, PW_KEY_NODE_DESCRIPTION, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1219]
pipewire-1.5.81/src/modules/module-fallback-sink.c:402:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:401:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:402:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:402:23: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  400|   
#  401|   	if ((str = pw_properties_get(props, "sink.description")) == NULL)
#  402|-> 		str = DEFAULT_SINK_DESCRIPTION;
#  403|   	pw_properties_set(impl->properties, PW_KEY_NODE_DESCRIPTION, str);
#  404|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1220]
pipewire-1.5.81/src/modules/module-fallback-sink.c:403:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:403:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  401|   	if ((str = pw_properties_get(props, "sink.description")) == NULL)
#  402|   		str = DEFAULT_SINK_DESCRIPTION;
#  403|-> 	pw_properties_set(impl->properties, PW_KEY_NODE_DESCRIPTION, str);
#  404|   
#  405|   	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_RATE, "%u", 48000);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1221]
pipewire-1.5.81/src/modules/module-fallback-sink.c:405:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:405:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  403|   	pw_properties_set(impl->properties, PW_KEY_NODE_DESCRIPTION, str);
#  404|   
#  405|-> 	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_RATE, "%u", 48000);
#  406|   	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_CHANNELS, "%u", 2);
#  407|   	pw_properties_set(impl->properties, SPA_KEY_AUDIO_POSITION, "FL,FR");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1222]
pipewire-1.5.81/src/modules/module-fallback-sink.c:406:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:406:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  404|   
#  405|   	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_RATE, "%u", 48000);
#  406|-> 	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_CHANNELS, "%u", 2);
#  407|   	pw_properties_set(impl->properties, SPA_KEY_AUDIO_POSITION, "FL,FR");
#  408|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1223]
pipewire-1.5.81/src/modules/module-fallback-sink.c:407:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:407:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  405|   	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_RATE, "%u", 48000);
#  406|   	pw_properties_setf(impl->properties, SPA_KEY_AUDIO_CHANNELS, "%u", 2);
#  407|-> 	pw_properties_set(impl->properties, SPA_KEY_AUDIO_POSITION, "FL,FR");
#  408|   
#  409|   	pw_properties_set(impl->properties, PW_KEY_MEDIA_CLASS, "Audio/Sink");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1224]
pipewire-1.5.81/src/modules/module-fallback-sink.c:409:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:409:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  407|   	pw_properties_set(impl->properties, SPA_KEY_AUDIO_POSITION, "FL,FR");
#  408|   
#  409|-> 	pw_properties_set(impl->properties, PW_KEY_MEDIA_CLASS, "Audio/Sink");
#  410|   	pw_properties_set(impl->properties, PW_KEY_FACTORY_NAME, "support.null-audio-sink");
#  411|   	pw_properties_set(impl->properties, PW_KEY_NODE_VIRTUAL, "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1225]
pipewire-1.5.81/src/modules/module-fallback-sink.c:410:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:410:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  408|   
#  409|   	pw_properties_set(impl->properties, PW_KEY_MEDIA_CLASS, "Audio/Sink");
#  410|-> 	pw_properties_set(impl->properties, PW_KEY_FACTORY_NAME, "support.null-audio-sink");
#  411|   	pw_properties_set(impl->properties, PW_KEY_NODE_VIRTUAL, "true");
#  412|   	pw_properties_set(impl->properties, "monitor.channel-volumes", "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1226]
pipewire-1.5.81/src/modules/module-fallback-sink.c:411:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:411:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  409|   	pw_properties_set(impl->properties, PW_KEY_MEDIA_CLASS, "Audio/Sink");
#  410|   	pw_properties_set(impl->properties, PW_KEY_FACTORY_NAME, "support.null-audio-sink");
#  411|-> 	pw_properties_set(impl->properties, PW_KEY_NODE_VIRTUAL, "true");
#  412|   	pw_properties_set(impl->properties, "monitor.channel-volumes", "true");
#  413|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1227]
pipewire-1.5.81/src/modules/module-fallback-sink.c:412:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:412:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  410|   	pw_properties_set(impl->properties, PW_KEY_FACTORY_NAME, "support.null-audio-sink");
#  411|   	pw_properties_set(impl->properties, PW_KEY_NODE_VIRTUAL, "true");
#  412|-> 	pw_properties_set(impl->properties, "monitor.channel-volumes", "true");
#  413|   
#  414|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1228]
pipewire-1.5.81/src/modules/module-fallback-sink.c:414:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:414:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  412|   	pw_properties_set(impl->properties, "monitor.channel-volumes", "true");
#  413|   
#  414|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  415|   	if (impl->core == NULL) {
#  416|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1229]
pipewire-1.5.81/src/modules/module-fallback-sink.c:416:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:415:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:416:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:416:23: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  414|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  415|   	if (impl->core == NULL) {
#  416|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  417|   		impl->core = pw_context_connect(impl->context,
#  418|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1230]
pipewire-1.5.81/src/modules/module-fallback-sink.c:417:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:415:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:416:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:417:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  415|   	if (impl->core == NULL) {
#  416|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  417|-> 		impl->core = pw_context_connect(impl->context,
#  418|   				pw_properties_new(
#  419|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1231]
pipewire-1.5.81/src/modules/module-fallback-sink.c:426:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:415:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:416:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:424:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:425:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:426:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:426:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:426:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  424|   	if (impl->core == NULL) {
#  425|   		res = -errno;
#  426|-> 		pw_log_error("can't connect: %m");
#  427|   		goto error;
#  428|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1232]
pipewire-1.5.81/src/modules/module-fallback-sink.c:430:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:415:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:424:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:424:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:430:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:430:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  428|   	}
#  429|   
#  430|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
#  431|   			&impl->core_proxy_listener, &core_proxy_events,
#  432|   			impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1233]
pipewire-1.5.81/src/modules/module-fallback-sink.c:458:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-fallback-sink.c:377:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-fallback-sink.c:378:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:381:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:383:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:390:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:393:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:394:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:397:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:415:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:416:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:424:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-fallback-sink.c:425:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:457:12: branch_true: following ‘true’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-fallback-sink.c:458:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-fallback-sink.c:458:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  456|   error:
#  457|   	if (props)
#  458|-> 		pw_properties_free(props);
#  459|   	if (impl)
#  460|   		impl_destroy(impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1234]
pipewire-1.5.81/src/modules/module-filter-chain.c:1849:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1858:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1919:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1847|   {
# 1848|   	const char *str;
# 1849|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
# 1850|   		if (pw_properties_get(impl->capture_props, key) == NULL)
# 1851|   			pw_properties_set(impl->capture_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1235]
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 1874|   		return -errno;
# 1875|   
# 1876|-> 	pw_log_debug("module %p: new %s", impl, args);
# 1877|   
# 1878|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1236]
pipewire-1.5.81/src/modules/module-filter-chain.c:1879:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1879:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1879:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
# 1877|   
# 1878|   	if (args)
# 1879|-> 		props = pw_properties_new_string(args);
# 1880|   	else
# 1881|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1237]
pipewire-1.5.81/src/modules/module-filter-chain.c:1881:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1881:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1881:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1879|   		props = pw_properties_new_string(args);
# 1880|   	else
# 1881|-> 		props = pw_properties_new(NULL, NULL);
# 1882|   
# 1883|   	if (props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1238]
pipewire-1.5.81/src/modules/module-filter-chain.c:1885:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1884:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1885:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1885:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1885:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1883|   	if (props == NULL) {
# 1884|   		res = -errno;
# 1885|-> 		pw_log_error( "can't create properties: %m");
# 1886|   		goto error;
# 1887|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1239]
pipewire-1.5.81/src/modules/module-filter-chain.c:1890:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1890:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1888|   	impl->props = props;
# 1889|   
# 1890|-> 	impl->capture_props = pw_properties_new(NULL, NULL);
# 1891|   	impl->playback_props = pw_properties_new(NULL, NULL);
# 1892|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1240]
pipewire-1.5.81/src/modules/module-filter-chain.c:1891:32: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1891:32: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1889|   
# 1890|   	impl->capture_props = pw_properties_new(NULL, NULL);
# 1891|-> 	impl->playback_props = pw_properties_new(NULL, NULL);
# 1892|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {
# 1893|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1241]
pipewire-1.5.81/src/modules/module-filter-chain.c:1894:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1894:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1894:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1894:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1892|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {
# 1893|   		res = -errno;
# 1894|-> 		pw_log_error( "can't create properties: %m");
# 1895|   		goto error;
# 1896|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1242]
pipewire-1.5.81/src/modules/module-filter-chain.c:1903:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1903:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1901|   	impl->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
# 1902|   
# 1903|-> 	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 1904|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-chain-%u-%u", pid, id);
# 1905|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1243]
pipewire-1.5.81/src/modules/module-filter-chain.c:1904:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1903:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1904:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1904:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1902|   
# 1903|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 1904|-> 		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-chain-%u-%u", pid, id);
# 1905|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1906|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-chain-%u-%u", pid, id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1244]
pipewire-1.5.81/src/modules/module-filter-chain.c:1905:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1905:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1903|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
# 1904|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-chain-%u-%u", pid, id);
# 1905|-> 	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1906|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-chain-%u-%u", pid, id);
# 1907|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1245]
pipewire-1.5.81/src/modules/module-filter-chain.c:1906:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1905:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1906:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1906:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1904|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "filter-chain-%u-%u", pid, id);
# 1905|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1906|-> 		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-chain-%u-%u", pid, id);
# 1907|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1908|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1246]
pipewire-1.5.81/src/modules/module-filter-chain.c:1907:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1907:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1905|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
# 1906|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-chain-%u-%u", pid, id);
# 1907|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1908|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1909|   	if (pw_properties_get(props, "resample.prefill") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1247]
pipewire-1.5.81/src/modules/module-filter-chain.c:1908:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1907:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1908:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1908:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1906|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "filter-chain-%u-%u", pid, id);
# 1907|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1908|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1909|   	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1910|   		pw_properties_set(props, "resample.prefill", "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1248]
pipewire-1.5.81/src/modules/module-filter-chain.c:1909:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1909:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1907|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1908|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1909|-> 	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1910|   		pw_properties_set(props, "resample.prefill", "true");
# 1911|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1249]
pipewire-1.5.81/src/modules/module-filter-chain.c:1910:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1909:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1910:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1910:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1908|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1909|   	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1910|-> 		pw_properties_set(props, "resample.prefill", "true");
# 1911|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1912|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "filter-chain-%u-%u", pid, id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1250]
pipewire-1.5.81/src/modules/module-filter-chain.c:1911:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1911:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1909|   	if (pw_properties_get(props, "resample.prefill") == NULL)
# 1910|   		pw_properties_set(props, "resample.prefill", "true");
# 1911|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1912|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "filter-chain-%u-%u", pid, id);
# 1913|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1251]
pipewire-1.5.81/src/modules/module-filter-chain.c:1912:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1911:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1912:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1912:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1910|   		pw_properties_set(props, "resample.prefill", "true");
# 1911|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1912|-> 		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "filter-chain-%u-%u", pid, id);
# 1913|   
# 1914|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1252]
pipewire-1.5.81/src/modules/module-filter-chain.c:1914:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1914:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1912|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "filter-chain-%u-%u", pid, id);
# 1913|   
# 1914|-> 	if ((str = pw_properties_get(props, "capture.props")) != NULL)
# 1915|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
# 1916|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1253]
pipewire-1.5.81/src/modules/module-filter-chain.c:1915:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1914:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1915:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1915:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1913|   
# 1914|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)
# 1915|-> 		pw_properties_update_string(impl->capture_props, str, strlen(str));
# 1916|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)
# 1917|   		pw_properties_update_string(impl->playback_props, str, strlen(str));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1254]
pipewire-1.5.81/src/modules/module-filter-chain.c:1916:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1916:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1914|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)
# 1915|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
# 1916|-> 	if ((str = pw_properties_get(props, "playback.props")) != NULL)
# 1917|   		pw_properties_update_string(impl->playback_props, str, strlen(str));
# 1918|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1255]
pipewire-1.5.81/src/modules/module-filter-chain.c:1917:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-filter-chain.c:1872:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-filter-chain.c:1873:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1876:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1878:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1883:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-filter-chain.c:1888:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1892:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1916:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-filter-chain.c:1917:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-filter-chain.c:1917:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1915|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
# 1916|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)
# 1917|-> 		pw_properties_update_string(impl->playback_props, str, strlen(str));
# 1918|   
# 1919|   	copy_props(impl, props, PW_KEY_AUDIO_RATE);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1256]
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:132:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:124:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:124:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:130:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:131:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:132:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:132:17: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  130|   	fprintf(f, "{");
#  131|   	if (impl->properties != NULL)
#  132|-> 		pw_properties_serialize_dict(f, &impl->properties->dict, 0);
#  133|   	fprintf(f, " }");
#  134|   	fclose(f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1257]
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:349:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: call_function: calling ‘spa_support_find’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: return_function: returning to ‘pipewire__module_init’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:363:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:367:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: danger: ‘impl’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  368|   		return -ENOMEM;
#  369|   
#  370|-> 	pw_log_debug("module %p: new", impl);
#  371|   
#  372|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1258]
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:35: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:349:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: call_function: calling ‘spa_support_find’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: return_function: returning to ‘pipewire__module_init’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:363:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:367:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:372:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:28: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:35: branch_true: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:35: danger: ‘impl’ leaks here; was allocated at [(9)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/8)
#  371|   
#  372|   	impl->context = context;
#  373|-> 	impl->properties = args ? pw_properties_new_string(args) : NULL;
#  374|   
#  375|   	if (impl->properties)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1259]
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:376:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:349:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: call_function: calling ‘spa_support_find’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:362:16: return_function: returning to ‘pipewire__module_init’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:363:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:366:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:367:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:370:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:372:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:28: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:373:35: branch_true: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:375:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:376:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-jackdbus-detect.c:376:17: danger: ‘impl’ leaks here; was allocated at [(9)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/8)
#  374|   
#  375|   	if (impl->properties)
#  376|-> 		pw_context_conf_update_props(context, "module."NAME".args", impl->properties);
#  377|   
#  378|   	impl->conn = spa_dbus_get_connection(dbus, SPA_DBUS_TYPE_SESSION);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1260]
pipewire-1.5.81/src/modules/module-loopback.c:881:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  879|   		return -errno;
#  880|   
#  881|-> 	pw_log_debug("module %p: new %s", impl, args);
#  882|   
#  883|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1261]
pipewire-1.5.81/src/modules/module-loopback.c:884:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:884:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:884:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  882|   
#  883|   	if (args)
#  884|-> 		props = pw_properties_new_string(args);
#  885|   	else
#  886|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1262]
pipewire-1.5.81/src/modules/module-loopback.c:886:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:886:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:886:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  884|   		props = pw_properties_new_string(args);
#  885|   	else
#  886|-> 		props = pw_properties_new(NULL, NULL);
#  887|   	if (props == NULL) {
#  888|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1263]
pipewire-1.5.81/src/modules/module-loopback.c:889:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:888:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:889:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:889:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:889:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  887|   	if (props == NULL) {
#  888|   		res = -errno;
#  889|-> 		pw_log_error( "can't create properties: %m");
#  890|   		goto error;
#  891|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1264]
pipewire-1.5.81/src/modules/module-loopback.c:893:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:893:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  891|   	}
#  892|   
#  893|-> 	impl->capture_props = pw_properties_new(NULL, NULL);
#  894|   	impl->playback_props = pw_properties_new(NULL, NULL);
#  895|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1265]
pipewire-1.5.81/src/modules/module-loopback.c:894:32: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:894:32: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  892|   
#  893|   	impl->capture_props = pw_properties_new(NULL, NULL);
#  894|-> 	impl->playback_props = pw_properties_new(NULL, NULL);
#  895|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {
#  896|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1266]
pipewire-1.5.81/src/modules/module-loopback.c:897:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:897:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:897:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:897:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  895|   	if (impl->capture_props == NULL || impl->playback_props == NULL) {
#  896|   		res = -errno;
#  897|-> 		pw_log_error( "can't create properties: %m");
#  898|   		goto error;
#  899|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1267]
pipewire-1.5.81/src/modules/module-loopback.c:906:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:906:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  904|   	impl->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
#  905|   
#  906|-> 	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
#  907|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "loopback-%u-%u", pid, id);
#  908|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1268]
pipewire-1.5.81/src/modules/module-loopback.c:907:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:906:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:907:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:907:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  905|   
#  906|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
#  907|-> 		pw_properties_setf(props, PW_KEY_NODE_GROUP, "loopback-%u-%u", pid, id);
#  908|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  909|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "loopback-%u-%u", pid, id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1269]
pipewire-1.5.81/src/modules/module-loopback.c:908:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:908:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  906|   	if (pw_properties_get(props, PW_KEY_NODE_GROUP) == NULL)
#  907|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "loopback-%u-%u", pid, id);
#  908|-> 	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  909|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "loopback-%u-%u", pid, id);
#  910|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1270]
pipewire-1.5.81/src/modules/module-loopback.c:909:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:908:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:909:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:909:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  907|   		pw_properties_setf(props, PW_KEY_NODE_GROUP, "loopback-%u-%u", pid, id);
#  908|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  909|-> 		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "loopback-%u-%u", pid, id);
#  910|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  911|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1271]
pipewire-1.5.81/src/modules/module-loopback.c:910:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:910:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  908|   	if (pw_properties_get(props, PW_KEY_NODE_LINK_GROUP) == NULL)
#  909|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "loopback-%u-%u", pid, id);
#  910|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  911|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  912|   	if (pw_properties_get(props, "resample.prefill") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1272]
pipewire-1.5.81/src/modules/module-loopback.c:911:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:910:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:911:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:911:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  909|   		pw_properties_setf(props, PW_KEY_NODE_LINK_GROUP, "loopback-%u-%u", pid, id);
#  910|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  911|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  912|   	if (pw_properties_get(props, "resample.prefill") == NULL)
#  913|   		pw_properties_set(props, "resample.prefill", "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1273]
pipewire-1.5.81/src/modules/module-loopback.c:912:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:912:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  910|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  911|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  912|-> 	if (pw_properties_get(props, "resample.prefill") == NULL)
#  913|   		pw_properties_set(props, "resample.prefill", "true");
#  914|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1274]
pipewire-1.5.81/src/modules/module-loopback.c:913:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:912:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:913:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:913:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  911|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  912|   	if (pw_properties_get(props, "resample.prefill") == NULL)
#  913|-> 		pw_properties_set(props, "resample.prefill", "true");
#  914|   
#  915|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1275]
pipewire-1.5.81/src/modules/module-loopback.c:915:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:915:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  913|   		pw_properties_set(props, "resample.prefill", "true");
#  914|   
#  915|-> 	if ((str = pw_properties_get(props, "capture.props")) != NULL)
#  916|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  917|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1276]
pipewire-1.5.81/src/modules/module-loopback.c:916:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:915:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:916:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:916:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  914|   
#  915|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)
#  916|-> 		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  917|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)
#  918|   		pw_properties_update_string(impl->playback_props, str, strlen(str));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1277]
pipewire-1.5.81/src/modules/module-loopback.c:917:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:917:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  915|   	if ((str = pw_properties_get(props, "capture.props")) != NULL)
#  916|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  917|-> 	if ((str = pw_properties_get(props, "playback.props")) != NULL)
#  918|   		pw_properties_update_string(impl->playback_props, str, strlen(str));
#  919|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1278]
pipewire-1.5.81/src/modules/module-loopback.c:918:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:917:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:918:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:918:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  916|   		pw_properties_update_string(impl->capture_props, str, strlen(str));
#  917|   	if ((str = pw_properties_get(props, "playback.props")) != NULL)
#  918|-> 		pw_properties_update_string(impl->playback_props, str, strlen(str));
#  919|   
#  920|   	if ((str = pw_properties_get(props, "target.delay.sec")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1279]
pipewire-1.5.81/src/modules/module-loopback.c:920:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:920:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  918|   		pw_properties_update_string(impl->playback_props, str, strlen(str));
#  919|   
#  920|-> 	if ((str = pw_properties_get(props, "target.delay.sec")) != NULL)
#  921|   		spa_atof(str, &impl->target_delay);
#  922|   	if (impl->target_delay > 0.0f &&

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1280]
pipewire-1.5.81/src/modules/module-loopback.c:923:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:922:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:923:13: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:923:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  921|   		spa_atof(str, &impl->target_delay);
#  922|   	if (impl->target_delay > 0.0f &&
#  923|-> 	    pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
#  924|   		/* a source and sink (USB) usually have a 1.5 quantum delay, so we use
#  925|   		 * a 2 times smaller quantum to compensate */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1281]
pipewire-1.5.81/src/modules/module-loopback.c:926:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-loopback.c:877:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-loopback.c:878:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:881:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:883:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:887:12: branch_false: following ‘false’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-loopback.c:893:31: branch_false: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:895:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:922:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:923:13: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:922:13: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-loopback.c:927:44: branch_true: ...to here
pipewire-1.5.81/src/modules/module-loopback.c:926:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  924|   		/* a source and sink (USB) usually have a 1.5 quantum delay, so we use
#  925|   		 * a 2 times smaller quantum to compensate */
#  926|-> 		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
#  927|   				(unsigned)(impl->target_delay * 48000 / 3), 48000);
#  928|   

Error: CPPCHECK_WARNING (CWE-190): [#def1282]
pipewire-1.5.81/src/modules/module-metadata/metadata.c:57: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   55|   		if (res >= 0 ||
#   56|   		    (res == -ENOENT && key == NULL && type == NULL && value == NULL))
#   57|-> 			pw_metadata_resource_property(d->resource, subject, key, type, value);
#   58|   	}
#   59|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1283]
pipewire-1.5.81/src/modules/module-metadata/metadata.c:267:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-metadata/metadata.c:261:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-metadata/metadata.c:262:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-metadata/metadata.c:267:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-metadata/metadata.c:267:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  265|   	}
#  266|   
#  267|-> 	pw_resource_install_marshal(resource, true);
#  268|   
#  269|   	impl->global = pw_global_new(context,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1284]
pipewire-1.5.81/src/modules/module-metadata/metadata.c:269:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-metadata/metadata.c:261:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-metadata/metadata.c:262:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-metadata/metadata.c:267:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-metadata/metadata.c:269:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  267|   	pw_resource_install_marshal(resource, true);
#  268|   
#  269|-> 	impl->global = pw_global_new(context,
#  270|   			PW_TYPE_INTERFACE_Metadata,
#  271|   			PW_VERSION_METADATA,

Error: CPPCHECK_WARNING (CWE-190): [#def1285]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:56: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   54|   
#   55|   	spa_zero(listener);
#   56|-> 	res = pw_proxy_notify(proxy, struct pw_metadata_methods, add_listener, 0,
#   57|   			&listener, &pw_protocol_native_metadata_client_event_marshal, object);
#   58|   	spa_hook_remove(&listener);

Error: CPPCHECK_WARNING (CWE-190): [#def1286]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  111|   	if (metadata_demarshal_set_property(&prs, &subject, &key, &type, &value) < 0)
#  112|   		return -EINVAL;
#  113|-> 	return pw_proxy_notify(proxy, struct pw_metadata_methods, set_property, 0, subject, key, type, value);
#  114|   }
#  115|   

Error: CPPCHECK_WARNING (CWE-190): [#def1287]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:127: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  125|   	if (metadata_demarshal_set_property(&prs, &subject, &key, &type, &value) < 0)
#  126|   		return -EINVAL;
#  127|-> 	return pw_resource_notify(resource, struct pw_metadata_methods, set_property, 0, subject, key, type, value);
#  128|   }
#  129|   

Error: CPPCHECK_WARNING (CWE-190): [#def1288]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:160: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  158|   	if (spa_pod_parser_get_struct(&prs, SPA_POD_None()) < 0)
#  159|   		return -EINVAL;
#  160|-> 	pw_proxy_notify(proxy, struct pw_metadata_methods, clear, 0);
#  161|   	return 0;
#  162|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1289]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  170|   	if (spa_pod_parser_get_struct(&prs, SPA_POD_None()) < 0)
#  171|   		return -EINVAL;
#  172|-> 	pw_resource_notify(resource, struct pw_metadata_methods, clear, 0);
#  173|   	return 0;
#  174|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1290]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:228: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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: CPPCHECK_WARNING (CWE-190): [#def1291]
pipewire-1.5.81/src/modules/module-metadata/protocol-native.c:244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def1292]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  322|   		return -errno;
#  323|   
#  324|-> 	pw_log_debug("module %p: new %s", impl, args);
#  325|   
#  326|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1293]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:329:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:329:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  327|   		args = "";
#  328|   
#  329|-> 	props = pw_properties_new_string(args);
#  330|   	if (props == NULL) {
#  331|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1294]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:332:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:330:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:331:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:332:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:332:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:332:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  330|   	if (props == NULL) {
#  331|   		res = -errno;
#  332|-> 		pw_log_error( "can't create properties: %m");
#  333|   		goto error;
#  334|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1295]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:340:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:330:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:335:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:340:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  338|   	impl->context = context;
#  339|   
#  340|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  341|   	if (impl->core == NULL) {
#  342|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1296]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:342:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:330:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:335:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:341:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:342:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:342:23: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  340|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  341|   	if (impl->core == NULL) {
#  342|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  343|   		impl->core = pw_context_connect(impl->context,
#  344|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1297]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:343:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:330:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:335:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:341:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:342:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:343:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  341|   	if (impl->core == NULL) {
#  342|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  343|-> 		impl->core = pw_context_connect(impl->context,
#  344|   				pw_properties_new(
#  345|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1298]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:353:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:330:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:335:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:341:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:342:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:351:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:352:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:353:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:353:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:353:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  351|   	if (impl->core == NULL) {
#  352|   		res = -errno;
#  353|-> 		pw_log_error("can't connect: %m");
#  354|   		goto error;
#  355|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1299]
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:357:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:320:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:321:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:324:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:326:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:330:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:335:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:341:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:351:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:351:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:357:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-parametric-equalizer.c:357:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  355|   	}
#  356|   
#  357|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
#  358|   			&impl->core_proxy_listener,
#  359|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1300]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:799:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:806:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:885:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  797|   {
#  798|   	const char *str;
#  799|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  800|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  801|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1301]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:800:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:806:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:885:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  798|   	const char *str;
#  799|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  800|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  801|   			pw_properties_set(impl->stream_props, key, str);
#  802|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1302]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:801:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:806:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:885:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  799|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  800|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  801|-> 			pw_properties_set(impl->stream_props, key, str);
#  802|   	}
#  803|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1303]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  820|   	impl->fd = -1;
#  821|   
#  822|-> 	pw_log_debug("module %p: new %s", impl, args);
#  823|   
#  824|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1304]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:827:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:827:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  825|   		args = "";
#  826|   
#  827|-> 	props = pw_properties_new_string(args);
#  828|   	if (props == NULL) {
#  829|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1305]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:830:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:829:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:830:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:830:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:830:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  828|   	if (props == NULL) {
#  829|   		res = -errno;
#  830|-> 		pw_log_error( "can't create properties: %m");
#  831|   		goto error;
#  832|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1306]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:835:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:835:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  833|   	impl->props = props;
#  834|   
#  835|-> 	impl->stream_props = pw_properties_new(NULL, NULL);
#  836|   	if (impl->stream_props == NULL) {
#  837|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1307]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:838:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:837:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:838:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:838:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:838:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  836|   	if (impl->stream_props == NULL) {
#  837|   		res = -errno;
#  838|-> 		pw_log_error( "can't create properties: %m");
#  839|   		goto error;
#  840|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1308]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:844:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:844:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  842|   	impl->module = module;
#  843|   	impl->context = context;
#  844|-> 	impl->main_loop = pw_context_get_main_loop(context);
#  845|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  846|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1309]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:845:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:845:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  843|   	impl->context = context;
#  844|   	impl->main_loop = pw_context_get_main_loop(context);
#  845|-> 	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  846|   
#  847|   	if ((str = pw_properties_get(props, "tunnel.mode")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1310]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:847:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:847:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  845|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  846|   
#  847|-> 	if ((str = pw_properties_get(props, "tunnel.mode")) == NULL)
#  848|   		str = "playback";
#  849|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1311]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:869:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:18: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:863:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:863:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:869:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:869:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:869:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:869:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  867|   		media_class = "Audio/Source";
#  868|   	} else {
#  869|-> 		pw_log_error("invalid tunnel.mode '%s'", str);
#  870|   		res = -EINVAL;
#  871|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1312]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  871|   		goto error;
#  872|   	}
#  873|-> 	if ((str = pw_properties_get(props, "tunnel.may-pause")) != NULL)
#  874|   		impl->may_pause = spa_atob(str);
#  875|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1313]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  874|   		impl->may_pause = spa_atob(str);
#  875|   
#  876|-> 	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  877|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  878|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1314]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:877:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:877:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  875|   
#  876|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  877|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  878|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  879|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1315]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:877:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:878:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:878:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  876|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  877|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  878|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  879|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  880|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, media_class);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1316]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:879:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:879:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  877|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
#  878|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  879|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  880|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, media_class);
#  881|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1317]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:880:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:879:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:880:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:880:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  878|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
#  879|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
#  880|-> 		pw_properties_set(props, PW_KEY_MEDIA_CLASS, media_class);
#  881|   
#  882|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1318]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:882:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:882:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  880|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, media_class);
#  881|   
#  882|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  883|   		pw_properties_update_string(impl->stream_props, str, strlen(str));
#  884|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1319]
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:883:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:816:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:817:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:820:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:822:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:824:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:828:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:833:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:836:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:842:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:850:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:854:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:858:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:873:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:876:57: branch_false: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:882:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:883:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-pipe-tunnel.c:883:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  881|   
#  882|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  883|-> 		pw_properties_update_string(impl->stream_props, str, strlen(str));
#  884|   
#  885|   	copy_props(impl, props, PW_KEY_NODE_LOOP_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1320]
pipewire-1.5.81/src/modules/module-portal.c:297:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-portal.c:276:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-portal.c:289:16: call_function: calling ‘spa_support_find’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-portal.c:289:16: return_function: returning to ‘pipewire__module_init’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-portal.c:290:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-portal.c:293:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-portal.c:293:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-portal.c:294:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-portal.c:297:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-portal.c:297:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-portal.c:297:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-portal.c:297:9: danger: ‘impl’ leaks here; was allocated at [(9)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/8)
#  295|   		return -ENOMEM;
#  296|   
#  297|-> 	pw_log_debug("module %p: new", impl);
#  298|   
#  299|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1321]
pipewire-1.5.81/src/modules/module-portal.c:300:35: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-portal.c:276:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-portal.c:289:16: call_function: calling ‘spa_support_find’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-portal.c:289:16: return_function: returning to ‘pipewire__module_init’ from ‘spa_support_find’
pipewire-1.5.81/src/modules/module-portal.c:290:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-portal.c:293:16: branch_false: ...to here
pipewire-1.5.81/src/modules/module-portal.c:293:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-portal.c:294:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-portal.c:297:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-portal.c:297:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-portal.c:299:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-portal.c:300:28: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-portal.c:300:35: branch_true: ...to here
pipewire-1.5.81/src/modules/module-portal.c:300:35: danger: ‘impl’ leaks here; was allocated at [(9)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/8)
#  298|   
#  299|   	impl->context = context;
#  300|-> 	impl->properties = args ? pw_properties_new_string(args) : NULL;
#  301|   
#  302|   	impl->conn = spa_dbus_get_connection(dbus, SPA_DBUS_TYPE_SESSION);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1322]
pipewire-1.5.81/src/modules/module-profiler.c:532:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:532:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  530|   
#  531|   	spa_list_init(&impl->node_list);
#  532|-> 	pw_protocol_native_ext_profiler_init(context);
#  533|   
#  534|   	pw_log_debug("module %p: new %s", impl, args);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1323]
pipewire-1.5.81/src/modules/module-profiler.c:532:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:532:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  530|   
#  531|   	spa_list_init(&impl->node_list);
#  532|-> 	pw_protocol_native_ext_profiler_init(context);
#  533|   
#  534|   	pw_log_debug("module %p: new %s", impl, args);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1324]
pipewire-1.5.81/src/modules/module-profiler.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/2)
#  532|   	pw_protocol_native_ext_profiler_init(context);
#  533|   
#  534|-> 	pw_log_debug("module %p: new %s", impl, args);
#  535|   
#  536|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1325]
pipewire-1.5.81/src/modules/module-profiler.c:534:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  532|   	pw_protocol_native_ext_profiler_init(context);
#  533|   
#  534|-> 	pw_log_debug("module %p: new %s", impl, args);
#  535|   
#  536|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1326]
pipewire-1.5.81/src/modules/module-profiler.c:537:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:537:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:537:25: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/2)
#  535|   
#  536|   	if (args)
#  537|-> 		props = pw_properties_new_string(args);
#  538|   	else
#  539|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1327]
pipewire-1.5.81/src/modules/module-profiler.c:537:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:537:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:537:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  535|   
#  536|   	if (args)
#  537|-> 		props = pw_properties_new_string(args);
#  538|   	else
#  539|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1328]
pipewire-1.5.81/src/modules/module-profiler.c:539:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:539:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:539:25: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/2)
#  537|   		props = pw_properties_new_string(args);
#  538|   	else
#  539|-> 		props = pw_properties_new(NULL, NULL);
#  540|   
#  541|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1329]
pipewire-1.5.81/src/modules/module-profiler.c:539:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:539:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:539:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  537|   		props = pw_properties_new_string(args);
#  538|   	else
#  539|-> 		props = pw_properties_new(NULL, NULL);
#  540|   
#  541|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1330]
pipewire-1.5.81/src/modules/module-profiler.c:543:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:543:27: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/2)
#  541|   	impl->context = context;
#  542|   	impl->properties = props;
#  543|-> 	impl->main_loop = pw_context_get_main_loop(impl->context);
#  544|   
#  545|   	pw_context_conf_update_props(context, "module."NAME".args", props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1331]
pipewire-1.5.81/src/modules/module-profiler.c:543:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:543:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  541|   	impl->context = context;
#  542|   	impl->properties = props;
#  543|-> 	impl->main_loop = pw_context_get_main_loop(impl->context);
#  544|   
#  545|   	pw_context_conf_update_props(context, "module."NAME".args", props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1332]
pipewire-1.5.81/src/modules/module-profiler.c:545:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:545:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/2)
#  543|   	impl->main_loop = pw_context_get_main_loop(impl->context);
#  544|   
#  545|-> 	pw_context_conf_update_props(context, "module."NAME".args", props);
#  546|   
#  547|   	impl->interval = SPA_NSEC_PER_MSEC *

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1333]
pipewire-1.5.81/src/modules/module-profiler.c:545:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:545:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  543|   	impl->main_loop = pw_context_get_main_loop(impl->context);
#  544|   
#  545|-> 	pw_context_conf_update_props(context, "module."NAME".args", props);
#  546|   
#  547|   	impl->interval = SPA_NSEC_PER_MSEC *

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1334]
pipewire-1.5.81/src/modules/module-profiler.c:551:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:551:24: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/2)
#  549|   	impl->last_signal_time = 0;
#  550|   
#  551|-> 	impl->global = pw_global_new(context,
#  552|   			PW_TYPE_INTERFACE_Profiler,
#  553|   			PW_VERSION_PROFILER,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1335]
pipewire-1.5.81/src/modules/module-profiler.c:551:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:551:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  549|   	impl->last_signal_time = 0;
#  550|   
#  551|-> 	impl->global = pw_global_new(context,
#  552|   			PW_TYPE_INTERFACE_Profiler,
#  553|   			PW_VERSION_PROFILER,

Error: CPPCHECK_WARNING (CWE-190): [#def1336]
pipewire-1.5.81/src/modules/module-protocol-native.c:1157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1155|   		impl->source = NULL;
# 1156|   	}
# 1157|-> 	pw_proxy_notify(core_proxy,
# 1158|   			struct pw_core_events, error, 0, 0,
# 1159|   			this->recv_seq, res, "connection error");

Error: CPPCHECK_WARNING (CWE-190): [#def1337]
pipewire-1.5.81/src/modules/module-protocol-native/connection.c:148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  146|   			free(buf->buffer_data);
#  147|   			buf->buffer_maxsize = 0;
#  148|-> 			spa_hook_list_call(&conn->listener_list,
#  149|   					struct pw_protocol_native_connection_events,
#  150|   					error, 0, res);

Error: CPPCHECK_WARNING (CWE-190): [#def1338]
pipewire-1.5.81/src/modules/module-protocol-native/connection.c:478: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  476|   	pw_log_debug("connection %p: destroy", conn);
#  477|   
#  478|-> 	spa_hook_list_call(&conn->listener_list, struct pw_protocol_native_connection_events, destroy, 0);
#  479|   
#  480|   	spa_hook_list_clean(&conn->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1339]
pipewire-1.5.81/src/modules/module-protocol-native/connection.c:523: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  521|   			impl->hdr_size = HDR_SIZE;
#  522|   		}
#  523|-> 		spa_hook_list_call(&conn->listener_list,
#  524|   				struct pw_protocol_native_connection_events,
#  525|   				start, 0, impl->version);

Error: CPPCHECK_WARNING (CWE-190): [#def1340]
pipewire-1.5.81/src/modules/module-protocol-native/connection.c:734: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  732|   	res = SPA_RESULT_RETURN_ASYNC(buf->msg.seq);
#  733|   
#  734|-> 	spa_hook_list_call(&conn->listener_list,
#  735|   			struct pw_protocol_native_connection_events, need_flush, 0);
#  736|   

Error: CPPCHECK_WARNING (CWE-190): [#def1341]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:312: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  310|   	parse_dict_struct(&prs, &f[1], &props);
#  311|   
#  312|-> 	return pw_proxy_notify(proxy, struct pw_core_events, info, 0, &info);
#  313|   }
#  314|   

Error: CPPCHECK_WARNING (CWE-457): [#def1342]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:327: error[uninitvar]: Uninitialized variable: id
#  325|   		return -EINVAL;
#  326|   
#  327|-> 	if (id == SPA_ID_INVALID)
#  328|   		return 0;
#  329|   

Error: CPPCHECK_WARNING (CWE-190): [#def1343]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:330: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  328|   		return 0;
#  329|   
#  330|-> 	return pw_proxy_notify(proxy, struct pw_core_events, done, 0, id, seq);
#  331|   }
#  332|   

Error: CPPCHECK_WARNING (CWE-190): [#def1344]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:345: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  343|   		return -EINVAL;
#  344|   
#  345|-> 	return pw_proxy_notify(proxy, struct pw_core_events, ping, 0, id, seq);
#  346|   }
#  347|   

Error: CPPCHECK_WARNING (CWE-190): [#def1345]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:364: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  362|   		return -EINVAL;
#  363|   
#  364|-> 	return pw_proxy_notify(proxy, struct pw_core_events, error, 0, id, seq, res, error);
#  365|   }
#  366|   

Error: CPPCHECK_WARNING (CWE-190): [#def1346]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:377: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  375|   		return -EINVAL;
#  376|   
#  377|-> 	return pw_proxy_notify(proxy, struct pw_core_events, remove_id, 0, id);
#  378|   }
#  379|   

Error: CPPCHECK_WARNING (CWE-190): [#def1347]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:395: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  393|   	/* old client / old/new server -> bound_id
#  394|   	 * new client / old server     -> bound_id + bound_props (in case it's using bound_props only) */
#  395|-> 	pw_proxy_notify(proxy, struct pw_core_events, bound_id, 0, id, global_id);
#  396|   	return pw_proxy_notify(proxy, struct pw_core_events, bound_props, 1, id, global_id, &props);
#  397|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1348]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:418: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  416|   
#  417|   	/* new client / new server -> bound_props + bound_id (in case it's not using bound_props yet) */
#  418|-> 	pw_proxy_notify(proxy, struct pw_core_events, bound_id, 0, id, global_id);
#  419|   	return pw_proxy_notify(proxy, struct pw_core_events, bound_props, 1, id, global_id, &props);
#  420|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1349]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:440: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  438|   	fd = pw_protocol_native_get_proxy_fd(proxy, idx);
#  439|   
#  440|-> 	return pw_proxy_notify(proxy, struct pw_core_events, add_mem, 0, id, type, fd, flags);
#  441|   }
#  442|   

Error: CPPCHECK_WARNING (CWE-190): [#def1350]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:454: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  452|   		return -EINVAL;
#  453|   
#  454|-> 	return pw_proxy_notify(proxy, struct pw_core_events, remove_mem, 0, id);
#  455|   }
#  456|   

Error: CPPCHECK_WARNING (CWE-190): [#def1351]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:612: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  610|   		return -EINVAL;
#  611|   
#  612|-> 	return pw_resource_notify(resource, struct pw_core_methods, hello, 0, version);
#  613|   }
#  614|   

Error: CPPCHECK_WARNING (CWE-190): [#def1352]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:627: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  625|   		return -EINVAL;
#  626|   
#  627|-> 	return pw_resource_notify(resource, struct pw_core_methods, sync, 0, id, seq);
#  628|   }
#  629|   

Error: CPPCHECK_WARNING (CWE-190): [#def1353]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:642: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  640|   		return -EINVAL;
#  641|   
#  642|-> 	return pw_resource_notify(resource, struct pw_core_methods, pong, 0, id, seq);
#  643|   }
#  644|   

Error: CPPCHECK_WARNING (CWE-190): [#def1354]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:661: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  659|   		return -EINVAL;
#  660|   
#  661|-> 	return pw_resource_notify(resource, struct pw_core_methods, error, 0, id, seq, res, error);
#  662|   }
#  663|   

Error: CPPCHECK_WARNING (CWE-190): [#def1355]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:676: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  674|   		return -EINVAL;
#  675|   
#  676|-> 	return pw_resource_notify(resource, struct pw_core_methods, get_registry, 0, version, new_id);
#  677|   }
#  678|   

Error: CPPCHECK_WARNING (CWE-190): [#def1356]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:703: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  701|   		return -EINVAL;
#  702|   
#  703|-> 	return pw_resource_notify(resource, struct pw_core_methods, create_object, 0, factory_name,
#  704|   								      type, version,
#  705|   								      &props, new_id);

Error: CPPCHECK_WARNING (CWE-190): [#def1357]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:726: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  724|   		goto no_resource;
#  725|   
#  726|-> 	return pw_resource_notify(resource, struct pw_core_methods, destroy, 0, r);
#  727|   
#  728|         no_resource:

Error: CPPCHECK_WARNING (CWE-190): [#def1358]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:793: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  791|   		return -EINVAL;
#  792|   
#  793|-> 	return pw_resource_notify(resource, struct pw_registry_methods, bind, 0, id, type, version, new_id);
#  794|   }
#  795|   

Error: CPPCHECK_WARNING (CWE-190): [#def1359]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:807: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  805|   		return -EINVAL;
#  806|   
#  807|-> 	return pw_resource_notify(resource, struct pw_registry_methods, destroy, 0, id);
#  808|   }
#  809|   

Error: CPPCHECK_WARNING (CWE-190): [#def1360]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:862: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  860|   	parse_dict_struct(&prs, &f[1], &props);
#  861|   
#  862|-> 	return pw_proxy_notify(proxy, struct pw_module_events, info, 0, &info);
#  863|   }
#  864|   

Error: CPPCHECK_WARNING (CWE-190): [#def1361]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:913: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  911|   	parse_params_struct(&prs, &f[1], info.params, info.n_params);
#  912|   
#  913|-> 	return pw_proxy_notify(proxy, struct pw_device_events, info, 0, &info);
#  914|   }
#  915|   

Error: CPPCHECK_WARNING (CWE-190): [#def1362]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:951: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  949|   		return -EINVAL;
#  950|   
#  951|-> 	return pw_proxy_notify(proxy, struct pw_device_events, param, 0,
#  952|   			seq, id, index, next, param);
#  953|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1363]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:980: error[uninitvar]: Uninitialized variable: csize
#  978|   		return -EINVAL;
#  979|   
#  980|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
#  981|   		return -EINVAL;
#  982|   

Error: CPPCHECK_WARNING (CWE-457): [#def1364]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:980: error[uninitvar]: Uninitialized variable: ctype
#  978|   		return -EINVAL;
#  979|   
#  980|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
#  981|   		return -EINVAL;
#  982|   

Error: CPPCHECK_WARNING (CWE-190): [#def1365]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:983: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  981|   		return -EINVAL;
#  982|   
#  983|-> 	return pw_resource_notify(resource, struct pw_device_methods, subscribe_params, 0,
#  984|   			ids, n_ids);
#  985|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1366]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1023: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1021|   		return -EINVAL;
# 1022|   
# 1023|-> 	return pw_resource_notify(resource, struct pw_device_methods, enum_params, 0,
# 1024|   			seq, id, index, num, filter);
# 1025|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1367]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1056: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1054|   		return -EINVAL;
# 1055|   
# 1056|-> 	return pw_resource_notify(resource, struct pw_device_methods, set_param, 0, id, flags, param);
# 1057|   }
# 1058|   

Error: CPPCHECK_WARNING (CWE-190): [#def1368]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1111: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1109|   	parse_dict_struct(&prs, &f[1], &props);
# 1110|   
# 1111|-> 	return pw_proxy_notify(proxy, struct pw_factory_events, info, 0, &info);
# 1112|   }
# 1113|   

Error: CPPCHECK_WARNING (CWE-190): [#def1369]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1174: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1172|   	parse_params_struct(&prs, &f[1], info.params, info.n_params);
# 1173|   
# 1174|-> 	return pw_proxy_notify(proxy, struct pw_node_events, info, 0, &info);
# 1175|   }
# 1176|   

Error: CPPCHECK_WARNING (CWE-190): [#def1370]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1212: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1210|   		return -EINVAL;
# 1211|   
# 1212|-> 	return pw_proxy_notify(proxy, struct pw_node_events, param, 0,
# 1213|   			seq, id, index, next, param);
# 1214|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1371]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1241: error[uninitvar]: Uninitialized variable: csize
# 1239|   		return -EINVAL;
# 1240|   
# 1241|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1242|   		return -EINVAL;
# 1243|   

Error: CPPCHECK_WARNING (CWE-457): [#def1372]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1241: error[uninitvar]: Uninitialized variable: ctype
# 1239|   		return -EINVAL;
# 1240|   
# 1241|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1242|   		return -EINVAL;
# 1243|   

Error: CPPCHECK_WARNING (CWE-190): [#def1373]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1242|   		return -EINVAL;
# 1243|   
# 1244|-> 	return pw_resource_notify(resource, struct pw_node_methods, subscribe_params, 0,
# 1245|   			ids, n_ids);
# 1246|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1374]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1284: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1282|   		return -EINVAL;
# 1283|   
# 1284|-> 	return pw_resource_notify(resource, struct pw_node_methods, enum_params, 0,
# 1285|   			seq, id, index, num, filter);
# 1286|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1375]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1317: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1315|   		return -EINVAL;
# 1316|   
# 1317|-> 	return pw_resource_notify(resource, struct pw_node_methods, set_param, 0, id, flags, param);
# 1318|   }
# 1319|   

Error: CPPCHECK_WARNING (CWE-457): [#def1376]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1342: error[uninitvar]: Uninitialized variable: command
# 1340|   		return -EINVAL;
# 1341|   
# 1342|-> 	if (command == NULL)
# 1343|   		return -EINVAL;
# 1344|   

Error: CPPCHECK_WARNING (CWE-190): [#def1377]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1345: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1343|   		return -EINVAL;
# 1344|   
# 1345|-> 	return pw_resource_notify(resource, struct pw_node_methods, send_command, 0, command);
# 1346|   }
# 1347|   

Error: CPPCHECK_WARNING (CWE-190): [#def1378]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1398: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1396|   	parse_params_struct(&prs, &f[1], info.params, info.n_params);
# 1397|   
# 1398|-> 	return pw_proxy_notify(proxy, struct pw_port_events, info, 0, &info);
# 1399|   }
# 1400|   

Error: CPPCHECK_WARNING (CWE-190): [#def1379]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1436: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1434|   		return -EINVAL;
# 1435|   
# 1436|-> 	return pw_proxy_notify(proxy, struct pw_port_events, param, 0,
# 1437|   			seq, id, index, next, param);
# 1438|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1380]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1465: error[uninitvar]: Uninitialized variable: csize
# 1463|   		return -EINVAL;
# 1464|   
# 1465|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1466|   		return -EINVAL;
# 1467|   

Error: CPPCHECK_WARNING (CWE-457): [#def1381]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1465: error[uninitvar]: Uninitialized variable: ctype
# 1463|   		return -EINVAL;
# 1464|   
# 1465|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 1466|   		return -EINVAL;
# 1467|   

Error: CPPCHECK_WARNING (CWE-190): [#def1382]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1468: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1466|   		return -EINVAL;
# 1467|   
# 1468|-> 	return pw_resource_notify(resource, struct pw_port_methods, subscribe_params, 0,
# 1469|   			ids, n_ids);
# 1470|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1383]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1508: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1506|   		return -EINVAL;
# 1507|   
# 1508|-> 	return pw_resource_notify(resource, struct pw_port_methods, enum_params, 0,
# 1509|   			seq, id, index, num, filter);
# 1510|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1384]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1558: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1556|   	parse_dict_struct(&prs, &f[1], &props);
# 1557|   
# 1558|-> 	return pw_proxy_notify(proxy, struct pw_client_events, info, 0, &info);
# 1559|   }
# 1560|   

Error: CPPCHECK_WARNING (CWE-190): [#def1385]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1609: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1607|   	parse_permissions_struct(&prs, &f[1], n_permissions, permissions);
# 1608|   
# 1609|-> 	return pw_proxy_notify(proxy, struct pw_client_events, permissions, 0, index, n_permissions, permissions);
# 1610|   }
# 1611|   

Error: CPPCHECK_WARNING (CWE-190): [#def1386]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1639: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1637|   		return -EINVAL;
# 1638|   
# 1639|-> 	return pw_resource_notify(resource, struct pw_client_methods, error, 0, id, res, error);
# 1640|   }
# 1641|   

Error: CPPCHECK_WARNING (CWE-190): [#def1387]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1684: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1682|   	parse_dict_struct(&prs, &f[1], &props);
# 1683|   
# 1684|-> 	return pw_resource_notify(resource, struct pw_client_methods, update_properties, 0,
# 1685|   			&props);
# 1686|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1388]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1700: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1698|   		return -EINVAL;
# 1699|   
# 1700|-> 	return pw_resource_notify(resource, struct pw_client_methods, get_permissions, 0, index, num);
# 1701|   }
# 1702|   

Error: CPPCHECK_WARNING (CWE-190): [#def1389]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1736: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1734|   	parse_permissions_struct(&prs, &f[0], n_permissions, permissions);
# 1735|   
# 1736|-> 	return pw_resource_notify(resource, struct pw_client_methods, update_permissions, 0,
# 1737|   			n_permissions, permissions);
# 1738|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1390]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1800: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1798|   	parse_dict_struct(&prs, &f[1], &props);
# 1799|   
# 1800|-> 	return pw_proxy_notify(proxy, struct pw_link_events, info, 0, &info);
# 1801|   }
# 1802|   

Error: CPPCHECK_WARNING (CWE-190): [#def1391]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1823: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1821|   	parse_dict_struct(&prs, &f[1], &props);
# 1822|   
# 1823|-> 	return pw_proxy_notify(proxy, struct pw_registry_events,
# 1824|   			global, 0, id, permissions, type, version, &props);
# 1825|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1392]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1838: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1836|   		return -EINVAL;
# 1837|   
# 1838|-> 	return pw_proxy_notify(proxy, struct pw_registry_events, global_remove, 0, id);
# 1839|   }
# 1840|   

Error: CPPCHECK_WARNING (CWE-190): [#def1393]
pipewire-1.5.81/src/modules/module-protocol-native/protocol-native.c:1931: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1929|   	close_fd = pw_protocol_native_get_resource_fd(resource, close_idx);
# 1930|   
# 1931|-> 	return pw_resource_notify(resource, struct pw_security_context_methods, create, 0,
# 1932|   			listen_fd, close_fd, &props);
# 1933|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1394]
pipewire-1.5.81/src/modules/module-protocol-native/security-context.c:164:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-native/security-context.c:157:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-native/security-context.c:158:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-native/security-context.c:161:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-native/security-context.c:164:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  162|   	impl->protocol = protocol;
#  163|   
#  164|-> 	impl->global = pw_global_new(context,
#  165|   			PW_TYPE_INTERFACE_SecurityContext,
#  166|   			PW_VERSION_SECURITY_CONTEXT,

Error: CPPCHECK_WARNING (CWE-457): [#def1395]
pipewire-1.5.81/src/modules/module-protocol-native/test-connection.c:87: error[uninitvar]: Uninitialized variable: fdidx
#   85|                   spa_assert_not_reached();
#   86|   
#   87|-> 	fd = pw_protocol_native_connection_get_fd(conn, fdidx);
#   88|   	spa_assert_se(fd != -ENOENT);
#   89|   	pw_log_debug("got fd %d %d", fdidx, fd);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1396]
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse.c:459:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:460:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  461|   		return -errno;
#  462|   
#  463|-> 	pw_log_debug("module %p: new %s", impl, args);
#  464|   
#  465|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1397]
pipewire-1.5.81/src/modules/module-protocol-pulse.c:466:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse.c:459:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:460:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:465:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:465:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:466:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:466:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  464|   
#  465|   	if (args)
#  466|-> 		props = pw_properties_new_string(args);
#  467|   	else
#  468|   		props = NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1398]
pipewire-1.5.81/src/modules/module-protocol-pulse.c:470:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse.c:459:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:460:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:465:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:465:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:470:23: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:470:23: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  468|   		props = NULL;
#  469|   
#  470|-> 	impl->pulse = pw_protocol_pulse_new(context, props, 0);
#  471|   	if (impl->pulse == NULL) {
#  472|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1399]
pipewire-1.5.81/src/modules/module-protocol-pulse.c:477:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse.c:459:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:460:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:463:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:465:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:465:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:470:23: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:471:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse.c:477:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse.c:477:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  475|   	}
#  476|   
#  477|-> 	pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
#  478|   
#  479|   	pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));

Error: CPPCHECK_WARNING (CWE-457): [#def1400]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:194: error[uninitvar]: Uninitialized variable: class
#  192|   					continue;
#  193|   
#  194|-> 				if (spa_streq(class, "Audio/Sink"))
#  195|   					pi->n_sinks += count;
#  196|   				else if (spa_streq(class, "Audio/Source"))

Error: CPPCHECK_WARNING (CWE-457): [#def1401]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:195: error[uninitvar]: Uninitialized variable: count
#  193|   
#  194|   				if (spa_streq(class, "Audio/Sink"))
#  195|-> 					pi->n_sinks += count;
#  196|   				else if (spa_streq(class, "Audio/Source"))
#  197|   					pi->n_sources += count;

Error: CPPCHECK_WARNING (CWE-457): [#def1402]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:225: error[uninitvar]: Uninitialized variable: test_name
#  223|   			continue;
#  224|   
#  225|-> 		if (spa_streq(test_name, name))
#  226|   			return index;
#  227|   

Error: CPPCHECK_WARNING (CWE-457): [#def1403]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:226: error[uninitvar]: Uninitialized variable: index
#  224|   
#  225|   		if (spa_streq(test_name, name))
#  226|-> 			return index;
#  227|   
#  228|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def1404]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:251: error[uninitvar]: Uninitialized variable: dev
#  249|   					SPA_PARAM_ROUTE_props,  SPA_POD_OPT_Pod(&props)) < 0)
#  250|   				continue;
#  251|-> 			if (dev != dev_info->device)
#  252|   				continue;
#  253|   			dev_info->active_port = index;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1405]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:267:25: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_pod_copy(*p.param)’
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:604:6: enter_function: entry to ‘update_object_info’
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:607:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:608:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:608:17: call_function: calling ‘update_device_info’ from ‘update_object_info’
#  265|   			struct spa_pod *copy = spa_pod_copy(p->param);
#  266|   			spa_pod_fixate(copy);
#  267|-> 			format_parse_param(copy, true, &dev_info->ss, &dev_info->map,
#  268|   					&defs->sample_spec, &defs->channel_map);
#  269|   			free(copy);

Error: CPPCHECK_WARNING (CWE-457): [#def1406]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:471: error[uninitvar]: Uninitialized variable: dir
#  469|   				SPA_PARAM_ROUTE_name, SPA_POD_String(&name)) < 0)
#  470|   			continue;
#  471|-> 		if (dir != direction)
#  472|   			continue;
#  473|   		if (spa_streq(name, port_name))

Error: CPPCHECK_WARNING (CWE-457): [#def1407]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:534: error[uninitvar]: Uninitialized variable: iid
#  532|   			continue;
#  533|   
#  534|-> 		if (iid != SPA_PROP_bluetoothAudioCodec)
#  535|   			continue;
#  536|   

Error: CPPCHECK_WARNING (CWE-457): [#def1408]
pipewire-1.5.81/src/modules/module-protocol-pulse/collect.c:596: error[uninitvar]: Uninitialized variable: id
#  594|   
#  595|   		for (j = 0; j < n_codecs; ++j) {
#  596|-> 			if (codecs[j].id == id)
#  597|   				*active = j;
#  598|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def1409]
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:388: error[uninitvar]: Uninitialized variable: device
#  386|   			return;
#  387|   
#  388|-> 		if ((dev = find_device(m, o->this.id, device)) != NULL) {
#  389|   			dev->changed++;
#  390|   			core_sync(o->manager);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1410]
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:632:33: warning[-Wanalyzer-malloc-leak]: leak of ‘o’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:598:13: enter_function: entry to ‘registry_event_global’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:608:16: call_function: calling ‘find_info’ from ‘registry_event_global’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:608:16: return_function: returning to ‘registry_event_global’ from ‘find_info’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:609:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:613:35: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:612:17: call_function: calling ‘pw_registry_bind’ from ‘registry_event_global’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:612:17: return_function: returning to ‘registry_event_global’ from ‘pw_registry_bind’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:614:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:617:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:617:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:618:12: branch_false: following ‘false’ branch (when ‘o’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:623:15: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:623:15: branch_true: following ‘true’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:623:23: call_function: inlined call to ‘spa_dict_lookup’ from ‘registry_event_global’
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:624:14: call_function: calling ‘spa_atou64’ from ‘registry_event_global’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:624:14: return_function: returning to ‘registry_event_global’ from ‘spa_atou64’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:624:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:625:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:632:25: branch_true: following ‘true’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:632:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:632:33: danger: ‘o’ leaks here; was allocated at [(20)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/19)
#  630|   	o->this.version = version;
#  631|   	o->this.index = o->this.serial < (1ULL<<32) ? o->this.serial : SPA_ID_INVALID;
#  632|-> 	o->this.props = props ? pw_properties_new_dict(props) : NULL;
#  633|   	o->this.proxy = proxy;
#  634|   	o->this.creating = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1411]
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: danger: ‘m’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  749|   	}
#  750|   
#  751|-> 	context = pw_core_get_context(core);
#  752|   	m->loop = pw_context_get_main_loop(context);
#  753|   	m->timer_queue = pw_context_get_timer_queue(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1412]
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:752:19: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:752:19: danger: ‘m’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  750|   
#  751|   	context = pw_core_get_context(core);
#  752|-> 	m->loop = pw_context_get_main_loop(context);
#  753|   	m->timer_queue = pw_context_get_timer_queue(context);
#  754|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1413]
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:753:26: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:753:26: danger: ‘m’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  751|   	context = pw_core_get_context(core);
#  752|   	m->loop = pw_context_get_main_loop(context);
#  753|-> 	m->timer_queue = pw_context_get_timer_queue(context);
#  754|   
#  755|   	spa_hook_list_init(&m->hooks);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1414]
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:766:16: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:766:16: danger: ‘m’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  764|   			&registry_events, m);
#  765|   
#  766|-> 	return &m->this;
#  767|   }
#  768|   

Error: GCC_ANALYZER_WARNING (CWE-404): [#def1415]
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:88:22: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:654:5: enter_function: entry to ‘message_dump’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:666:21: call_function: inlined call to ‘read_u8’ from ‘message_dump’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:785:31: call_function: calling ‘read_props’ from ‘message_dump’
#   86|   	if ((res = read_u8(m, &tmp)) < 0)
#   87|   		return res;
#   88|-> 	ss->format = format_pa2id(tmp);
#   89|   	if ((res = read_u8(m, &ss->channels)) < 0)
#   90|   		return res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1416]
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:402:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:825:17: enter_function: entry to ‘message_alloc’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:829:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:831:17: call_function: inlined call to ‘spa_list_remove’ from ‘message_alloc’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:834:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:845:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:845:13: call_function: calling ‘ensure_size’ from ‘message_alloc’
#  400|   	m->data = data;
#  401|   	m->allocated = alloc;
#  402|-> 	return size;
#  403|   }
#  404|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1417]
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:839:17: warning[-Wanalyzer-malloc-leak]: leak of ‘msg’
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:829:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:836:28: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:836:28: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:836:20: branch_false: following ‘false’ branch (when ‘msg’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:839:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:839:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:839:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/message.c:839:17: danger: ‘msg’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  837|   			return NULL;
#  838|   
#  839|-> 		pw_log_trace("new message %p size:%d", msg, size);
#  840|   		msg->impl = impl;
#  841|   		msg->impl->stat.n_allocated++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1418]
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:46:46: warning[-Wanalyzer-malloc-leak]: leak of ‘module_new(impl,  module_info_find(impl,  name))’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:328:16: enter_function: entry to ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: call_function: calling ‘module_info_find’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: return_function: returning to ‘module_create’ from ‘module_info_find’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:335:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:340:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: call_function: calling ‘module_new’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: return_function: returning to ‘module_create’ from ‘module_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:351:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:354:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:382:9: call_function: calling ‘module_free’ from ‘module_create’
#   44|   	struct module *module;
#   45|   
#   46|-> 	module = calloc(1, sizeof(*module) + info->data_size);
#   47|   	if (module == NULL)
#   48|   		return NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def1419]
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:126: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  124|   	const struct str_map *map;
#  125|   
#  126|-> 	while (*p) {
#  127|   		while (*p && isspace(*p))
#  128|   			p++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1420]
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:126:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:121:32: acquire_memory: this call could return NULL
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:126:16: danger: ‘p’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  124|   	const struct str_map *map;
#  125|   
#  126|-> 	while (*p) {
#  127|   		while (*p && isspace(*p))
#  128|   			p++;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1421]
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:181:33: warning[-Wanalyzer-malloc-leak]: leak of ‘module_new(impl,  module_info_find(impl,  name))’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:328:16: enter_function: entry to ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: call_function: calling ‘module_info_find’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: return_function: returning to ‘module_create’ from ‘module_info_find’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:335:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:340:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: call_function: calling ‘module_new’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: return_function: returning to ‘module_create’ from ‘module_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:351:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:354:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:355:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:358:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:360:53: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:360:20: call_function: calling ‘module_args_check’ from ‘module_create’
#  179|   		spa_dict_for_each(it, &props->dict) {
#  180|   			if (!find_key(valid_args, it->key)) {
#  181|-> 				pw_log_warn("'%s' is not a valid module argument key", it->key);
#  182|   				return -EINVAL;
#  183|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1422]
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:354:25: warning[-Wanalyzer-malloc-leak]: leak of ‘module_new(impl,  module_info_find(impl,  name))’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:328:16: enter_function: entry to ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: call_function: calling ‘module_info_find’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: return_function: returning to ‘module_create’ from ‘module_info_find’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:335:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:340:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: call_function: calling ‘module_new’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: return_function: returning to ‘module_create’ from ‘module_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:351:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:354:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:354:25: danger: ‘module_new(impl,  module_info_find(impl,  name))’ leaks here; was allocated at [(16)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/15)
#  352|   		return NULL;
#  353|   
#  354|-> 	module->props = pw_properties_new(NULL, NULL);
#  355|   	if (module->props == NULL)
#  356|   		goto error_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1423]
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:365:20: warning[-Wanalyzer-malloc-leak]: leak of ‘module_new(impl,  module_info_find(impl,  name))’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:328:16: enter_function: entry to ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: call_function: calling ‘module_info_find’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:334:16: return_function: returning to ‘module_create’ from ‘module_info_find’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:335:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:340:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: call_function: calling ‘module_new’ from ‘module_create’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:350:18: return_function: returning to ‘module_create’ from ‘module_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:351:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:354:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:355:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:358:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:358:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:360:53: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:360:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:365:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/module.c:365:20: danger: ‘module_new(impl,  module_info_find(impl,  name))’ leaks here; was allocated at [(16)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/15)
#  363|   	}
#  364|   
#  365|-> 	if ((res = module->info->prepare(module)) < 0) {
#  366|   		errno = -res;
#  367|   		goto error_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1424]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-always-sink.c:59:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-always-sink.c:55:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-always-sink.c:55:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-always-sink.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-always-sink.c:59:20: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   57|   
#   58|   	fprintf(f, "{");
#   59|-> 	if ((str = pw_properties_get(module->props, "sink_name")) != NULL)
#   60|   		fprintf(f, " sink.name = \"%s\"", str);
#   61|   	fprintf(f, " }");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1425]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:176:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:164:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:167:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:172:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:172:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:175:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-combine-sink.c:176:9: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  174|   
#  175|   	fprintf(f, "{");
#  176|-> 	pw_properties_serialize_dict(f, &data->props->dict, 0);
#  177|   	fprintf(f, " combine.props = {");
#  178|   	pw_properties_serialize_dict(f, &data->combine_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1426]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:199:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:184:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:187:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:189:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:189:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:192:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:196:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:199:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:199:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-echo-cancel.c:199:17: danger: ‘f’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#  197|   			break;
#  198|   
#  199|-> 		pw_log_info("Got mic #%d position: (%g, %g, %g)", i, p[0], p[1], p[2]);
#  200|   
#  201|   		fprintf(f, "%s [ %s, %s, %s ]", i == 0 ?  "" : ",",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1427]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:118:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:109:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:114:20: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:27: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:118:29: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
#  116|   
#  117|   		g->name = strdup(info->name);
#  118|-> 		g->module = module_create(d->module->impl, info->module[i], info->args[i]);
#  119|   		if (g->module == NULL) {
#  120|   			pw_log_info("can't create module:%s args:%s: %m",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1428]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:118:29: warning[-Wanalyzer-malloc-leak]: leak of ‘g’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:109:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:113:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:114:20: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:118:29: danger: ‘g’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  116|   
#  117|   		g->name = strdup(info->name);
#  118|-> 		g->module = module_create(d->module->impl, info->module[i], info->args[i]);
#  119|   		if (g->module == NULL) {
#  120|   			pw_log_info("can't create module:%s args:%s: %m",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1429]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:109:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:114:20: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:27: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:119:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/6)
#  118|   		g->module = module_create(d->module->impl, info->module[i], info->args[i]);
#  119|   		if (g->module == NULL) {
#  120|-> 			pw_log_info("can't create module:%s args:%s: %m",
#  121|   					info->module[i], info->args[i]);
#  122|   		} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1430]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: warning[-Wanalyzer-malloc-leak]: leak of ‘g’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:109:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:113:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:114:20: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:119:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:120:25: danger: ‘g’ leaks here; was allocated at [(5)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/4)
#  118|   		g->module = module_create(d->module->impl, info->module[i], info->args[i]);
#  119|   		if (g->module == NULL) {
#  120|-> 			pw_log_info("can't create module:%s args:%s: %m",
#  121|   					info->module[i], info->args[i]);
#  122|   		} else {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1431]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:123:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:109:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:114:20: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:27: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:119:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:123:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:123:25: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/6)
#  121|   					info->module[i], info->args[i]);
#  122|   		} else {
#  123|-> 			module_add_listener(g->module, &g->module_listener,
#  124|   					&module_gsettings_events, g);
#  125|   			if ((res = module_load(g->module)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1432]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:123:25: warning[-Wanalyzer-malloc-leak]: leak of ‘g’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:109:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:110:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:113:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:114:20: branch_false: following ‘false’ branch (when ‘g’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:117:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:119:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:123:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:123:25: danger: ‘g’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  121|   					info->module[i], info->args[i]);
#  122|   		} else {
#  123|-> 			module_add_listener(g->module, &g->module_listener,
#  124|   					&module_gsettings_events, g);
#  125|   			if ((res = module_load(g->module)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1433]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:191:24: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:191:24: danger: ‘info.name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  189|   	spa_zero(info);
#  190|   	info.name = strdup(p);
#  191|-> 	info.enabled = g_settings_get_boolean(settings, "enabled");
#  192|   
#  193|   	for (i = 0; i < MAX_MODULES; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1434]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:195:34: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:194:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:195:34: danger: ‘info.name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  193|   	for (i = 0; i < MAX_MODULES; i++) {
#  194|   		snprintf(p, sizeof(p), "name%d", i);
#  195|-> 		info.module[i] = g_settings_get_string(settings, p);
#  196|   
#  197|   		snprintf(p, sizeof(p), "args%i", i);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1435]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:198:32: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:194:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:198:32: danger: ‘info.name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/4)
#  196|   
#  197|   		snprintf(p, sizeof(p), "args%i", i);
#  198|-> 		info.args[i] = g_settings_get_string(settings, p);
#  199|   	}
#  200|   	pw_loop_invoke(impl->main_loop, do_handle_info, 0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1436]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:203:9: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:194:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_false: following ‘false’ branch (when ‘i == 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:200:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:203:9: danger: ‘info.name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  201|   			&info, sizeof(info), false, d);
#  202|   
#  203|-> 	g_object_unref(G_OBJECT(settings));
#  204|   }
#  205|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1437]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:204:1: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:194:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_false: following ‘false’ branch (when ‘i == 10’)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:200:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-gsettings.c:204:1: danger: ‘info.name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  202|   
#  203|   	g_object_unref(G_OBJECT(settings));
#  204|-> }
#  205|   
#  206|   static void module_group_callback(GSettings *settings, gchar *key, gpointer user_data)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1438]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-jackdbus-detect.c:86:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-jackdbus-detect.c:82:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-jackdbus-detect.c:82:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-jackdbus-detect.c:85:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-jackdbus-detect.c:86:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   84|   
#   85|   	fprintf(f, "{");
#   86|-> 	pw_properties_serialize_dict(f, &data->props->dict, 0);
#   87|   	fprintf(f, " source.props = {");
#   88|   	pw_properties_serialize_dict(f, &data->source_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1439]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:81:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:83:40: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:83:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:91:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:91:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:94:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-sink.c:95:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   93|   
#   94|   	fprintf(f, "{");
#   95|-> 	pw_properties_serialize_dict(f, &module->props->dict, 0);
#   96|   	fprintf(f, " filter.graph = {");
#   97|   	fprintf(f, " nodes = [ { ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1440]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:81:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:83:40: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:83:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:91:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:91:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:94:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-ladspa-source.c:95:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   93|   
#   94|   	fprintf(f, "{");
#   95|-> 	pw_properties_serialize_dict(f, &module->props->dict, 0);
#   96|   	fprintf(f, " filter.graph = {");
#   97|   	fprintf(f, " nodes = [ { ");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1441]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-loopback.c:87:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-loopback.c:83:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-loopback.c:83:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-loopback.c:86:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-loopback.c:87:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   85|   
#   86|   	fprintf(f, "{");
#   87|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#   88|   	fprintf(f, " capture.props = {");
#   89|   	pw_properties_serialize_dict(f, &data->capture_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1442]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:101:21: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:94:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:95:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:98:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:101:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:101:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-native-protocol-tcp.c:101:21: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   99|   	fprintf(f, " \"address\": \"tcp:%s%s%s\" ",
#  100|   			   listen ? listen : "", listen ? ":" : "", port);
#  101|-> 	if (auth && module_args_parse_bool(auth))
#  102|   		fprintf(f, " \"client.access\": \"unrestricted\" ");
#  103|   	fprintf(f, "} ]");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1443]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-sink.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-sink.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-sink.c:80:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-sink.c:83:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-sink.c:84:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|   
#   83|   	fprintf(f, "{");
#   84|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#   85|   	fprintf(f, " \"stream.props\": {");
#   86|   	pw_properties_serialize_dict(f, &data->stream_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1444]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-source.c:83:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-source.c:79:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-source.c:79:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-source.c:82:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-pipe-source.c:83:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   81|   
#   82|   	fprintf(f, "{");
#   83|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#   84|   	fprintf(f, " \"stream.props\": {");
#   85|   	pw_properties_serialize_dict(f, &data->stream_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1445]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-sink.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-sink.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-sink.c:80:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-sink.c:83:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-sink.c:84:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|   
#   83|   	fprintf(f, "{");
#   84|-> 	pw_properties_serialize_dict(f, &module->props->dict, 0);
#   85|   	fprintf(f, " capture.props = {");
#   86|   	pw_properties_serialize_dict(f, &data->capture_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1446]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-source.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-source.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-source.c:80:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-source.c:83:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-remap-source.c:84:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|   
#   83|   	fprintf(f, "{");
#   84|-> 	pw_properties_serialize_dict(f, &module->props->dict, 0);
#   85|   	fprintf(f, " capture.props = { ");
#   86|   	pw_properties_serialize_dict(f, &data->capture_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1447]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink-input.c:81:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink-input.c:77:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink-input.c:77:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink-input.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink-input.c:81:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   79|   
#   80|   	fprintf(f, "{");
#   81|-> 	pw_properties_serialize_dict(f, &data->roc_props->dict, 0);
#   82|   	fprintf(f, " source.props = {");
#   83|   	pw_properties_serialize_dict(f, &data->source_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1448]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink.c:79:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink.c:75:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink.c:75:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink.c:78:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-sink.c:79:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   77|   
#   78|   	fprintf(f, "{");
#   79|-> 	pw_properties_serialize_dict(f, &data->roc_props->dict, 0);
#   80|   	fprintf(f, " sink.props = {");
#   81|   	pw_properties_serialize_dict(f, &data->sink_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1449]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-source.c:81:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-source.c:77:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-source.c:77:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-source.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-roc-source.c:81:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   79|   
#   80|   	fprintf(f, "{");
#   81|-> 	pw_properties_serialize_dict(f, &data->roc_props->dict, 0);
#   82|   	fprintf(f, " source.props = {");
#   83|   	pw_properties_serialize_dict(f, &data->source_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1450]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-recv.c:74:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-recv.c:70:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-recv.c:70:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-recv.c:73:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-recv.c:74:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   72|   
#   73|   	fprintf(f, "{");
#   74|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#   75|   	fprintf(f, " stream.rules = ");
#   76|   	fprintf(f, "[ { matches = [ { rtp.session = \"~.*\" } ] "),

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1451]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:101:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:97:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:97:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:100:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:101:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   99|   
#  100|   	fprintf(f, "{");
#  101|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#  102|   	fprintf(f, " stream.props = {");
#  103|   	pw_properties_serialize_dict(f, &data->stream_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1452]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:123:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:97:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:100:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:112:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:119:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:119:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:122:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-rtp-send.c:123:9: danger: ‘f’ leaks here; was allocated at [(5)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/4)
#  121|   
#  122|   	fprintf(f, "{");
#  123|-> 	pw_properties_serialize_dict(f, &data->sap_props->dict, 0);
#  124|   	fprintf(f, " stream.rules = [");
#  125|   	fprintf(f, "   { matches = [ { pulse.module.id = %u } ] ", module->index);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1453]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-simple-protocol-tcp.c:80:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-simple-protocol-tcp.c:76:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-simple-protocol-tcp.c:76:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-simple-protocol-tcp.c:79:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-simple-protocol-tcp.c:80:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   78|   
#   79|   	fprintf(f, "{");
#   80|-> 	pw_properties_serialize_dict(f, &data->module_props->dict, 0);
#   81|   	fprintf(f, "}");
#   82|   	fclose(f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1454]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:300:33: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:259:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:260:36: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:273:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:282:21: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:282:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:285:26: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:285:20: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:288:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:297:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:298:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:299:37: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:300:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-stream-restore.c:300:33: danger: ‘f’ leaks here; was allocated at [(7)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/6)
#  298|   			fprintf(f, ", \"channels\": [");
#  299|   			for (i = 0; i < map.channels; i++)
#  300|-> 				fprintf(f, "%s\"%s\"", (i == 0 ? " ":", "), channel_id2name(map.map[i]));
#  301|   			fprintf(f, " ]");
#  302|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1455]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-sink.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-sink.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-sink.c:80:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-sink.c:83:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-sink.c:84:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|   
#   83|   	fprintf(f, "{");
#   84|-> 	pw_properties_serialize_dict(f, &module->props->dict, 0);
#   85|   	fprintf(f, " stream.props = {");
#   86|   	pw_properties_serialize_dict(f, &data->stream_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1456]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-source.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-source.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-source.c:80:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-source.c:83:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-tunnel-source.c:84:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|   
#   83|   	fprintf(f, "{");
#   84|-> 	pw_properties_serialize_dict(f, &module->props->dict, 0);
#   85|   	fprintf(f, " stream.props = {");
#   86|   	pw_properties_serialize_dict(f, &data->stream_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1457]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-sink.c:82:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-sink.c:78:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-sink.c:78:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-sink.c:81:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-sink.c:82:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   80|   
#   81|   	fprintf(f, "{");
#   82|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#   83|   	fprintf(f, " capture.props = {");
#   84|   	pw_properties_serialize_dict(f, &data->capture_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1458]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-source.c:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-source.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-source.c:80:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-source.c:83:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-virtual-source.c:84:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   82|   
#   83|   	fprintf(f, "{");
#   84|-> 	pw_properties_serialize_dict(f, &data->global_props->dict, 0);
#   85|   	fprintf(f, " capture.props = {");
#   86|   	pw_properties_serialize_dict(f, &data->capture_props->dict, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1459]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:67:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:66:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:67:20: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   65|   
#   66|   	fprintf(f, "{");
#   67|-> 	if ((str = pw_properties_get(module->props, "sink")) != NULL)
#   68|   		fprintf(f, " sink.name = \"%s\"", str);
#   69|   	if ((str = pw_properties_get(module->props, "sample")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1460]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:69:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:66:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:69:20: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   67|   	if ((str = pw_properties_get(module->props, "sink")) != NULL)
#   68|   		fprintf(f, " sink.name = \"%s\"", str);
#   69|-> 	if ((str = pw_properties_get(module->props, "sample")) != NULL)
#   70|   		fprintf(f, " sample.name = \"%s\"", str);
#   71|   	if ((str = pw_properties_get(module->props, "display")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1461]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:71:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:66:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:71:20: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   69|   	if ((str = pw_properties_get(module->props, "sample")) != NULL)
#   70|   		fprintf(f, " sample.name = \"%s\"", str);
#   71|-> 	if ((str = pw_properties_get(module->props, "display")) != NULL)
#   72|   		fprintf(f, " x11.display = \"%s\"", str);
#   73|   	if ((str = pw_properties_get(module->props, "xauthority")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1462]
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:73:20: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:63:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:66:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/modules/module-x11-bell.c:73:20: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#   71|   	if ((str = pw_properties_get(module->props, "display")) != NULL)
#   72|   		fprintf(f, " x11.display = \"%s\"", str);
#   73|-> 	if ((str = pw_properties_get(module->props, "xauthority")) != NULL)
#   74|   		fprintf(f, " x11.xauthority = \"%s\"", str);
#   75|   	fprintf(f, " }");

Error: CPPCHECK_WARNING (CWE-401): [#def1463]
pipewire-1.5.81/src/modules/module-protocol-pulse/operation.c:35: error[memleak]: Memory leak: o
#   33|   	pw_log_debug("client %p [%s]: new operation tag:%u", client, client->name, tag);
#   34|   
#   35|-> 	return 0;
#   36|   }
#   37|   

Error: CPPCHECK_WARNING (CWE-562): [#def1464]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:966: error[invalidLifetime]: Using pointer to local variable 'name' that is out of scope.
#  964|   	}
#  965|   	if (subject == PW_ID_CORE && o == client->metadata_routes)
#  966|-> 		client_update_routes(client, key, value);
#  967|   }
#  968|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1465]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5056:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pm’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5032:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5035:13: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5035:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5041:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5045:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5048:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5048:14: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5049:12: branch_false: following ‘false’ branch (when ‘pm’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5052:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5056:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5056:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5056:9: danger: ‘pm’ leaks here; was allocated at [(7)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/6)
# 5054|   	pm->module = module;
# 5055|   
# 5056|-> 	pw_log_debug("pending module %p: start tag:%d", pm, tag);
# 5057|   
# 5058|   	r = module_load(module);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1466]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5058:13: warning[-Wanalyzer-malloc-leak]: leak of ‘pm’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5032:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5035:13: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5035:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5041:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5045:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5048:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5048:14: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5049:12: branch_false: following ‘false’ branch (when ‘pm’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5052:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5056:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5058:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5058:13: danger: ‘pm’ leaks here; was allocated at [(7)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/6)
# 5056|   	pw_log_debug("pending module %p: start tag:%d", pm, tag);
# 5057|   
# 5058|-> 	r = module_load(module);
# 5059|   
# 5060|   	module_add_listener(module, &pm->module_listener, &module_events, pm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1467]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5060:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pm’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5032:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5035:13: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5035:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5041:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5045:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5048:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5048:14: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5049:12: branch_false: following ‘false’ branch (when ‘pm’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5052:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5056:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5058:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5060:9: danger: ‘pm’ leaks here; was allocated at [(7)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/6)
# 5058|   	r = module_load(module);
# 5059|   
# 5060|-> 	module_add_listener(module, &pm->module_listener, &module_events, pm);
# 5061|   	client_add_listener(client, &pm->client_listener, &client_events, pm);
# 5062|   	pw_manager_add_listener(client->manager, &pm->manager_listener, &manager_events, pm);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1468]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/10)
# 5523|   	spa_list_init(&impl->free_messages);
# 5524|   
# 5525|-> 	impl->main_loop = pw_context_get_main_loop(context);
# 5526|   	impl->work_queue = pw_context_get_work_queue(context);
# 5527|   	impl->timer_queue = pw_context_get_timer_queue(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1469]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5525:27: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
# 5523|   	spa_list_init(&impl->free_messages);
# 5524|   
# 5525|-> 	impl->main_loop = pw_context_get_main_loop(context);
# 5526|   	impl->work_queue = pw_context_get_work_queue(context);
# 5527|   	impl->timer_queue = pw_context_get_timer_queue(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1470]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5526:28: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5526:28: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
# 5524|   
# 5525|   	impl->main_loop = pw_context_get_main_loop(context);
# 5526|-> 	impl->work_queue = pw_context_get_work_queue(context);
# 5527|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 5528|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1471]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5526:28: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5526:28: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
# 5524|   
# 5525|   	impl->main_loop = pw_context_get_main_loop(context);
# 5526|-> 	impl->work_queue = pw_context_get_work_queue(context);
# 5527|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 5528|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1472]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/10)
# 5525|   	impl->main_loop = pw_context_get_main_loop(context);
# 5526|   	impl->work_queue = pw_context_get_work_queue(context);
# 5527|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
# 5528|   
# 5529|   	if (props == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1473]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5527:29: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
# 5525|   	impl->main_loop = pw_context_get_main_loop(context);
# 5526|   	impl->work_queue = pw_context_get_work_queue(context);
# 5527|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
# 5528|   
# 5529|   	if (props == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1474]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5529:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/10)
# 5528|   
# 5529|   	if (props == NULL)
# 5530|-> 		props = pw_properties_new(NULL, NULL);
# 5531|   	if (props == NULL)
# 5532|   		goto error_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1475]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5529:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/1)
# 5528|   
# 5529|   	if (props == NULL)
# 5530|-> 		props = pw_properties_new(NULL, NULL);
# 5531|   	if (props == NULL)
# 5532|   		goto error_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1476]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5534:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5529:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5531:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5534:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5534:19: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/10)
# 5532|   		goto error_free;
# 5533|   
# 5534|-> 	support = pw_context_get_support(context, &n_support);
# 5535|   	cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
# 5536|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1477]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5534:19: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5529:12: branch_true: following ‘true’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5530:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5531:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5534:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5534:19: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/1)
# 5532|   		goto error_free;
# 5533|   
# 5534|-> 	support = pw_context_get_support(context, &n_support);
# 5535|   	cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
# 5536|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1478]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5537:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5537:9: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/10)
# 5535|   	cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
# 5536|   
# 5537|-> 	pw_context_conf_update_props(context, "pulse.properties", props);
# 5538|   
# 5539|   	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1479]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5537:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5537:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/1)
# 5535|   	cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
# 5536|   
# 5537|-> 	pw_context_conf_update_props(context, "pulse.properties", props);
# 5538|   
# 5539|   	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1480]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:20: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/10)
# 5537|   	pw_context_conf_update_props(context, "pulse.properties", props);
# 5538|   
# 5539|-> 	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {
# 5540|   		pw_log_warn("vm.overrides in pulse.properties are deprecated, "
# 5541|   				"use pulse.properties.rules instead");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1481]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:20: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/1)
# 5537|   	pw_context_conf_update_props(context, "pulse.properties", props);
# 5538|   
# 5539|-> 	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {
# 5540|   		pw_log_warn("vm.overrides in pulse.properties are deprecated, "
# 5541|   				"use pulse.properties.rules instead");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1482]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/10)
# 5538|   
# 5539|   	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {
# 5540|-> 		pw_log_warn("vm.overrides in pulse.properties are deprecated, "
# 5541|   				"use pulse.properties.rules instead");
# 5542|   		if (cpu != NULL && spa_cpu_get_vm_type(cpu) != SPA_CPU_VM_NONE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1483]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/1)
# 5538|   
# 5539|   	if ((str = pw_properties_get(props, "vm.overrides")) != NULL) {
# 5540|-> 		pw_log_warn("vm.overrides in pulse.properties are deprecated, "
# 5541|   				"use pulse.properties.rules instead");
# 5542|   		if (cpu != NULL && spa_cpu_get_vm_type(cpu) != SPA_CPU_VM_NONE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1484]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5544:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5544:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5544:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/10)
# 5542|   		if (cpu != NULL && spa_cpu_get_vm_type(cpu) != SPA_CPU_VM_NONE)
# 5543|   			pw_properties_update_string(props, str, strlen(str));
# 5544|-> 		pw_properties_set(props, "vm.overrides", NULL);
# 5545|   	}
# 5546|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1485]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5544:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5539:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5540:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5542:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5544:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5544:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/1)
# 5542|   		if (cpu != NULL && spa_cpu_get_vm_type(cpu) != SPA_CPU_VM_NONE)
# 5543|   			pw_properties_update_string(props, str, strlen(str));
# 5544|-> 		pw_properties_set(props, "vm.overrides", NULL);
# 5545|   	}
# 5546|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1486]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5547:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5547:15: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/10)
# 5545|   	}
# 5546|   
# 5547|-> 	str = pw_properties_get(props, "server.address");
# 5548|   	if (str == NULL) {
# 5549|   		pw_properties_setf(props, "server.address",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1487]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5547:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5547:15: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/1)
# 5545|   	}
# 5546|   
# 5547|-> 	str = pw_properties_get(props, "server.address");
# 5548|   	if (str == NULL) {
# 5549|   		pw_properties_setf(props, "server.address",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1488]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5548:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/10)
# 5547|   	str = pw_properties_get(props, "server.address");
# 5548|   	if (str == NULL) {
# 5549|-> 		pw_properties_setf(props, "server.address",
# 5550|   				"[ \"%s-%s\" ]",
# 5551|   				PW_PROTOCOL_PULSE_DEFAULT_SERVER,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1489]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5548:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/1)
# 5547|   	str = pw_properties_get(props, "server.address");
# 5548|   	if (str == NULL) {
# 5549|-> 		pw_properties_setf(props, "server.address",
# 5550|   				"[ \"%s-%s\" ]",
# 5551|   				PW_PROTOCOL_PULSE_DEFAULT_SERVER,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1490]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5553:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5548:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5553:23: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/10)
# 5551|   				PW_PROTOCOL_PULSE_DEFAULT_SERVER,
# 5552|   				get_server_name(context));
# 5553|-> 		str = pw_properties_get(props, "server.address");
# 5554|   	}
# 5555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1491]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5553:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5548:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5549:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5553:23: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/1)
# 5551|   				PW_PROTOCOL_PULSE_DEFAULT_SERVER,
# 5552|   				get_server_name(context));
# 5553|-> 		str = pw_properties_get(props, "server.address");
# 5554|   	}
# 5555|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1492]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5559:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5559:20: danger: ‘<unknown>’ leaks here; was allocated at [(11)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/10)
# 5557|   		goto error_free;
# 5558|   
# 5559|-> 	if ((res = servers_create_and_start(impl, str, NULL)) < 0) {
# 5560|   		pw_log_error("%p: no servers could be started: %s",
# 5561|   				impl, spa_strerror(res));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1493]
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5559:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5502:27: enter_function: entry to ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5512:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5513:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5516:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5520:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5521:9: call_function: inlined call to ‘pw_map_init’ from ‘pw_protocol_pulse_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/pulse-server.c:5559:20: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/1)
# 5557|   		goto error_free;
# 5558|   
# 5559|-> 	if ((res = servers_create_and_start(impl, str, NULL)) < 0) {
# 5560|   		pw_log_error("%p: no servers could be started: %s",
# 5561|   				impl, spa_strerror(res));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1494]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  127|   	}
#  128|   
#  129|-> 	p->context = pw_core_get_context(core);
#  130|   	p->main_loop = pw_context_get_main_loop(p->context);
#  131|   	spa_hook_list_init(&p->hooks);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1495]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:130:24: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:130:24: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  128|   
#  129|   	p->context = pw_core_get_context(core);
#  130|-> 	p->main_loop = pw_context_get_main_loop(p->context);
#  131|   	spa_hook_list_init(&p->hooks);
#  132|   	p->user_data = SPA_PTROFF(p, sizeof(struct sample_play), void);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1496]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:134:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:134:9: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  132|   	p->user_data = SPA_PTROFF(p, sizeof(struct sample_play), void);
#  133|   
#  134|-> 	pw_properties_update(props, &sample->props->dict);
#  135|   
#  136|   	p->stream = pw_stream_new(core, sample->name, props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1497]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:136:21: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:136:21: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  134|   	pw_properties_update(props, &sample->props->dict);
#  135|   
#  136|-> 	p->stream = pw_stream_new(core, sample->name, props);
#  137|   	props = NULL;
#  138|   	if (p->stream == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1498]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:147:21: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:112:21: enter_function: entry to ‘sample_play_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:138:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:146:21: call_function: inlined call to ‘sample_ref’ from ‘sample_play_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:147:21: danger: ‘p’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  145|   	   (even if `pw_stream_connect()` fails) */
#  146|   	p->sample = sample_ref(sample);
#  147|-> 	p->stride = sample_spec_frame_size(&sample->ss);
#  148|   
#  149|   	pw_stream_add_listener(p->stream,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1499]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:149:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:112:21: enter_function: entry to ‘sample_play_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:138:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:146:21: call_function: inlined call to ‘sample_ref’ from ‘sample_play_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:149:9: danger: ‘p’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#  147|   	p->stride = sample_spec_frame_size(&sample->ss);
#  148|   
#  149|-> 	pw_stream_add_listener(p->stream,
#  150|   			&p->listener,
#  151|   			&sample_play_stream_events, p);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1500]
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:171:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:123:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:124:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:129:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:138:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:139:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/sample-play.c:171:9: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  169|   	pw_stream_destroy(p->stream);
#  170|   error_free:
#  171|-> 	pw_properties_free(props);
#  172|   	free(p);
#  173|   	errno = -res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1501]
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-simple.c:965:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-simple.c:966:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  967|   		return -errno;
#  968|   
#  969|-> 	pw_log_debug("module %p: new %s", impl, args);
#  970|   
#  971|   	if (args)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1502]
pipewire-1.5.81/src/modules/module-protocol-simple.c:972:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-simple.c:965:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-simple.c:966:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-simple.c:971:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:971:12: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:972:25: branch_true: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:972:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  970|   
#  971|   	if (args)
#  972|-> 		props = pw_properties_new_string(args);
#  973|   	else
#  974|   		props = pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1503]
pipewire-1.5.81/src/modules/module-protocol-simple.c:974:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-simple.c:965:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-simple.c:966:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-simple.c:971:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:971:12: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:974:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:974:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  972|   		props = pw_properties_new_string(args);
#  973|   	else
#  974|-> 		props = pw_properties_new(NULL, NULL);
#  975|   
#  976|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1504]
pipewire-1.5.81/src/modules/module-protocol-simple.c:977:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-simple.c:965:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-simple.c:966:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-simple.c:971:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:977:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  975|   
#  976|   	impl->context = context;
#  977|-> 	impl->loop = pw_context_get_main_loop(context);
#  978|   	impl->props = props;
#  979|   	spa_list_init(&impl->server_list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1505]
pipewire-1.5.81/src/modules/module-protocol-simple.c:981:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-protocol-simple.c:965:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-simple.c:966:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:969:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-simple.c:971:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-simple.c:981:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  979|   	spa_list_init(&impl->server_list);
#  980|   
#  981|-> 	pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
#  982|   
#  983|   	pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));

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

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

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1508]
pipewire-1.5.81/src/modules/module-raop-discover.c:183:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct tunnel)*((struct spa_list *)t)).info.name’
pipewire-1.5.81/src/modules/module-raop-discover.c:571:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-discover.c:581:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:590:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-discover.c:591:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:612:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-discover.c:613:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:613:17: call_function: calling ‘impl_free’ from ‘pipewire__module_init’
#  181|   	if (t->module)
#  182|   		pw_impl_module_destroy(t->module);
#  183|-> 	free((char *) t->info.name);
#  184|   	free(t);
#  185|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1509]
pipewire-1.5.81/src/modules/module-raop-discover.c:331:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-raop-discover.c:324:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-discover.c:324:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-discover.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:331:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  329|   
#  330|   	fprintf(f, "{");
#  331|-> 	pw_properties_serialize_dict(f, &props->dict, 0);
#  332|   	fprintf(f, "}");
#  333|           fclose(f);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1510]
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-discover.c:580:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-discover.c:581:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  582|   		goto error_errno;
#  583|   
#  584|-> 	pw_log_debug("module %p: new %s", impl, args);
#  585|   
#  586|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1511]
pipewire-1.5.81/src/modules/module-raop-discover.c:589:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-discover.c:580:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-discover.c:581:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-discover.c:586:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:589:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  587|   		args = "";
#  588|   
#  589|-> 	props = pw_properties_new_string(args);
#  590|   	if (props == NULL)
#  591|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1512]
pipewire-1.5.81/src/modules/module-raop-discover.c:602:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-discover.c:580:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-discover.c:581:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:584:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-discover.c:586:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:590:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-discover.c:593:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-discover.c:602:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  600|   			"raop.discover-local", false);
#  601|   
#  602|-> 	pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
#  603|   
#  604|   	pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1513]
pipewire-1.5.81/src/modules/module-raop-sink.c:1741:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1748:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1900:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1739|   {
# 1740|   	const char *str;
# 1741|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
# 1742|   		if (pw_properties_get(impl->stream_props, key) == NULL)
# 1743|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1514]
pipewire-1.5.81/src/modules/module-raop-sink.c:1742:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1748:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1900:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1740|   	const char *str;
# 1741|   	if ((str = pw_properties_get(props, key)) != NULL) {
# 1742|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
# 1743|   			pw_properties_set(impl->stream_props, key, str);
# 1744|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1515]
pipewire-1.5.81/src/modules/module-raop-sink.c:1743:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1748:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1900:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1741|   	if ((str = pw_properties_get(props, key)) != NULL) {
# 1742|   		if (pw_properties_get(impl->stream_props, key) == NULL)
# 1743|-> 			pw_properties_set(impl->stream_props, key, str);
# 1744|   	}
# 1745|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1516]
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
# 1760|   		return -errno;
# 1761|   
# 1762|-> 	pw_log_debug("module %p: new %s", impl, args);
# 1763|   	impl->server_fd = -1;
# 1764|   	impl->control_fd = -1;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1517]
pipewire-1.5.81/src/modules/module-raop-sink.c:1766:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1766:21: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
# 1764|   	impl->control_fd = -1;
# 1765|   	impl->timing_fd = -1;
# 1766|-> 	impl->ctx = EVP_CIPHER_CTX_new();
# 1767|   	if (impl->ctx == NULL) {
# 1768|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1518]
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1768:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1769:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1767|   	if (impl->ctx == NULL) {
# 1768|   		res = -errno;
# 1769|-> 		pw_log_error( "can't create cipher context: %m");
# 1770|   		goto error;
# 1771|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1519]
pipewire-1.5.81/src/modules/module-raop-sink.c:1775:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1775:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1773|   		args = "";
# 1774|   
# 1775|-> 	props = pw_properties_new_string(args);
# 1776|   	if (props == NULL) {
# 1777|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1520]
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1777:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1778:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1776|   	if (props == NULL) {
# 1777|   		res = -errno;
# 1778|-> 		pw_log_error( "can't create properties: %m");
# 1779|   		goto error;
# 1780|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1521]
pipewire-1.5.81/src/modules/module-raop-sink.c:1783:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1783:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
# 1781|   	impl->props = props;
# 1782|   
# 1783|-> 	impl->stream_props = pw_properties_new(NULL, NULL);
# 1784|   	if (impl->stream_props == NULL) {
# 1785|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1522]
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1785:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1786:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
# 1784|   	if (impl->stream_props == NULL) {
# 1785|   		res = -errno;
# 1786|-> 		pw_log_error( "can't create properties: %m");
# 1787|   		goto error;
# 1788|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1523]
pipewire-1.5.81/src/modules/module-raop-sink.c:1792:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1792:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
# 1790|   	impl->module = module;
# 1791|   	impl->context = context;
# 1792|-> 	impl->loop = pw_context_get_main_loop(context);
# 1793|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 1794|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1524]
pipewire-1.5.81/src/modules/module-raop-sink.c:1793:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1793:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
# 1791|   	impl->context = context;
# 1792|   	impl->loop = pw_context_get_main_loop(context);
# 1793|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
# 1794|   
# 1795|   	ip = pw_properties_get(props, "raop.ip");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1525]
pipewire-1.5.81/src/modules/module-raop-sink.c:1795:14: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1795:14: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
# 1793|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 1794|   
# 1795|-> 	ip = pw_properties_get(props, "raop.ip");
# 1796|   	port = pw_properties_get(props, "raop.port");
# 1797|   	if (ip == NULL || port == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1526]
pipewire-1.5.81/src/modules/module-raop-sink.c:1796:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1796:16: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
# 1794|   
# 1795|   	ip = pw_properties_get(props, "raop.ip");
# 1796|-> 	port = pw_properties_get(props, "raop.port");
# 1797|   	if (ip == NULL || port == NULL) {
# 1798|   		pw_log_error("Missing raop.ip or raop.port");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1527]
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1798:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
# 1796|   	port = pw_properties_get(props, "raop.port");
# 1797|   	if (ip == NULL || port == NULL) {
# 1798|-> 		pw_log_error("Missing raop.ip or raop.port");
# 1799|   		res = -EINVAL;
# 1800|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1528]
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
# 1801|   	}
# 1802|   
# 1803|-> 	if ((str = pw_properties_get(props, "raop.transport")) == NULL)
# 1804|   		str = "udp";
# 1805|   	if (spa_streq(str, "udp")) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1529]
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1805:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1808:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1808:19: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1812:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
# 1810|   		impl->psamples = FRAMES_PER_TCP_PACKET;
# 1811|   	} else {
# 1812|-> 		pw_log_error( "can't handle transport %s", str);
# 1813|   		res = -EINVAL;
# 1814|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1530]
pipewire-1.5.81/src/modules/module-raop-sink.c:1817:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1817:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1815|   	}
# 1816|   
# 1817|-> 	if ((str = pw_properties_get(props, "raop.encryption.type")) == NULL)
# 1818|   		str = "none";
# 1819|   	if (spa_streq(str, "none"))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1531]
pipewire-1.5.81/src/modules/module-raop-sink.c:1833:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1833:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1831|   	}
# 1832|   
# 1833|-> 	if ((str = pw_properties_get(props, "raop.audio.codec")) == NULL)
# 1834|   		str = "PCM";
# 1835|   	if (spa_streq(str, "PCM"))

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1532]
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1835:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1837:18: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1837:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1840:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1838|   		impl->codec = CODEC_ALAC;
# 1839|   	else {
# 1840|-> 		pw_log_error( "can't handle codec type %s", str);
# 1841|   		res = -EINVAL;
# 1842|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1533]
pipewire-1.5.81/src/modules/module-raop-sink.c:1844:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1844:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1842|   		goto error;
# 1843|   	}
# 1844|-> 	str = pw_properties_get(props, "raop.password");
# 1845|   	impl->password = str ? strdup(str) : NULL;
# 1846|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1534]
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/14)
# 1845|   	impl->password = str ? strdup(str) : NULL;
# 1846|   
# 1847|-> 	if ((name = pw_properties_get(props, "raop.name")) == NULL)
# 1848|   		name = "RAOP";
# 1849|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1535]
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1847:21: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1845|   	impl->password = str ? strdup(str) : NULL;
# 1846|   
# 1847|-> 	if ((name = pw_properties_get(props, "raop.name")) == NULL)
# 1848|   		name = "RAOP";
# 1849|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1536]
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/14)
# 1853|   			name = str;
# 1854|   	}
# 1855|-> 	if ((hostname = pw_properties_get(props, "raop.hostname")) == NULL)
# 1856|   		hostname = name;
# 1857|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1537]
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1855:25: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1853|   			name = str;
# 1854|   	}
# 1855|-> 	if ((hostname = pw_properties_get(props, "raop.hostname")) == NULL)
# 1856|   		hostname = name;
# 1857|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1538]
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/14)
# 1860|   	impl->stride = RAOP_STRIDE;
# 1861|   
# 1862|-> 	if ((str = pw_properties_get(props, "raop.latency.ms")) == NULL)
# 1863|   		str = SPA_STRINGIFY(DEFAULT_LATENCY_MS);
# 1864|   	impl->latency = SPA_MAX(impl->latency, msec_to_samples(impl, atoi(str)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1539]
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1862:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
# 1860|   	impl->stride = RAOP_STRIDE;
# 1861|   
# 1862|-> 	if ((str = pw_properties_get(props, "raop.latency.ms")) == NULL)
# 1863|   		str = SPA_STRINGIFY(DEFAULT_LATENCY_MS);
# 1864|   	impl->latency = SPA_MAX(impl->latency, msec_to_samples(impl, atoi(str)));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1540]
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 1864|   	impl->latency = SPA_MAX(impl->latency, msec_to_samples(impl, atoi(str)));
# 1865|   
# 1866|-> 	if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867|   		pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|   	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1541]
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/14)
# 1865|   
# 1866|   	if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867|-> 		pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|   	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|   		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1542]
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1866:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1867:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
# 1865|   
# 1866|   	if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867|-> 		pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|   	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|   		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1543]
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
# 1866|   	if (pw_properties_get(props, PW_KEY_AUDIO_FORMAT) == NULL)
# 1867|   		pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|-> 	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|   		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|   	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1544]
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/14)
# 1867|   		pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|   	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|-> 		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|   	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|   		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1545]
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1868:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1869:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 1867|   		pw_properties_setf(props, PW_KEY_AUDIO_FORMAT, "%s", RAOP_FORMAT);
# 1868|   	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|-> 		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|   	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|   		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1546]
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1868|   	if (pw_properties_get(props, PW_KEY_AUDIO_RATE) == NULL)
# 1869|   		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|-> 	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|   		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1547]
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/14)
# 1869|   		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|   	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|-> 		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1548]
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1870:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1871:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1869|   		pw_properties_setf(props, PW_KEY_AUDIO_RATE, "%u", impl->rate);
# 1870|   	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|-> 		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1549]
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/0)
# 1870|   	if (pw_properties_get(props, PW_KEY_DEVICE_ICON_NAME) == NULL)
# 1871|   		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|-> 	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874|   				hostname, ip, port);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1550]
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/14)
# 1871|   		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874|   				hostname, ip, port);
# 1875|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1551]
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1872:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1873:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/0)
# 1871|   		pw_properties_set(props, PW_KEY_DEVICE_ICON_NAME, "audio-speakers");
# 1872|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
# 1873|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874|   				hostname, ip, port);
# 1875|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1552]
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0)
# 1873|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "raop_sink.%s.%s.%s",
# 1874|   				hostname, ip, port);
# 1875|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1553]
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/14)
# 1874|   				hostname, ip, port);
# 1875|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876|-> 		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1554]
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1875:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1876:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
# 1874|   				hostname, ip, port);
# 1875|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876|-> 		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1555]
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
# 1875|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
# 1876|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|   	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1556]
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/14)
# 1876|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|-> 		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|   	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|   		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1557]
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1877:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1878:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/0)
# 1876|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RAOP to %s", name);
# 1877|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|-> 		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|   	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|   		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1558]
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/0)
# 1877|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
# 1878|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|-> 	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|   		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881|   				impl->psamples, impl->rate);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1559]
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/14)
# 1878|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|   	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|-> 		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881|   				impl->psamples, impl->rate);
# 1882|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1560]
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1879:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1880:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/0)
# 1878|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", name);
# 1879|   	if (pw_properties_get(props, PW_KEY_NODE_LATENCY) == NULL)
# 1880|-> 		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881|   				impl->psamples, impl->rate);
# 1882|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1561]
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 1880|   		pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%u/%u",
# 1881|   				impl->psamples, impl->rate);
# 1882|-> 	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1562]
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/14)
# 1881|   				impl->psamples, impl->rate);
# 1882|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1563]
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1882:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1883:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/0)
# 1881|   				impl->psamples, impl->rate);
# 1882|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883|-> 		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1564]
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/0)
# 1882|   	if (pw_properties_get(props, PW_KEY_NODE_VIRTUAL) == NULL)
# 1883|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|   	if (pw_properties_get(props, "net.mtu") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1565]
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/14)
# 1883|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|-> 		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|   	if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|   		pw_properties_set(props, "net.mtu", "1448");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1566]
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1884:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1885:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 1883|   		pw_properties_set(props, PW_KEY_NODE_VIRTUAL, "true");
# 1884|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|-> 		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|   	if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|   		pw_properties_set(props, "net.mtu", "1448");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1567]
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
# 1884|   	if (pw_properties_get(props, PW_KEY_MEDIA_CLASS) == NULL)
# 1885|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|-> 	if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|   		pw_properties_set(props, "net.mtu", "1448");
# 1888|   	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1568]
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/14)
# 1885|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|   	if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|-> 		pw_properties_set(props, "net.mtu", "1448");
# 1888|   	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|   		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1569]
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1886:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1887:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/55/codeFlows/0/threadFlows/0/locations/0)
# 1885|   		pw_properties_set(props, PW_KEY_MEDIA_CLASS, "Audio/Sink");
# 1886|   	if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|-> 		pw_properties_set(props, "net.mtu", "1448");
# 1888|   	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|   		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1570]
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/57/codeFlows/0/threadFlows/0/locations/0)
# 1886|   	if (pw_properties_get(props, "net.mtu") == NULL)
# 1887|   		pw_properties_set(props, "net.mtu", "1448");
# 1888|-> 	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|   		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|   	if (pw_properties_get(props, "sess.ts-direct") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1571]
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/14)
# 1887|   		pw_properties_set(props, "net.mtu", "1448");
# 1888|   	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|-> 		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|   	if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|   		pw_properties_setf(props, "sess.ts-direct", "%d", 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1572]
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1888:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1889:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
# 1887|   		pw_properties_set(props, "net.mtu", "1448");
# 1888|   	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|-> 		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|   	if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|   		pw_properties_setf(props, "sess.ts-direct", "%d", 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1573]
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/60/codeFlows/0/threadFlows/0/locations/0)
# 1888|   	if (pw_properties_get(props, "rtp.sender-ts-offset") == NULL)
# 1889|   		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|-> 	if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|   		pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|   	if (pw_properties_get(props, "sess.media") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1574]
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/62/codeFlows/0/threadFlows/0/locations/14)
# 1889|   		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|   	if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|-> 		pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|   	if (pw_properties_get(props, "sess.media") == NULL)
# 1893|   		pw_properties_set(props, "sess.media", "raop");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1575]
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1890:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1891:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/61/codeFlows/0/threadFlows/0/locations/0)
# 1889|   		pw_properties_setf(props, "rtp.sender-ts-offset", "%d", 0);
# 1890|   	if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|-> 		pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|   	if (pw_properties_get(props, "sess.media") == NULL)
# 1893|   		pw_properties_set(props, "sess.media", "raop");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1576]
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/63/codeFlows/0/threadFlows/0/locations/0)
# 1890|   	if (pw_properties_get(props, "sess.ts-direct") == NULL)
# 1891|   		pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|-> 	if (pw_properties_get(props, "sess.media") == NULL)
# 1893|   		pw_properties_set(props, "sess.media", "raop");
# 1894|   	if (pw_properties_get(props, "sess.latency.msec") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1577]
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/65/codeFlows/0/threadFlows/0/locations/14)
# 1891|   		pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|   	if (pw_properties_get(props, "sess.media") == NULL)
# 1893|-> 		pw_properties_set(props, "sess.media", "raop");
# 1894|   	if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|   		pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1578]
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1892:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1893:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/64/codeFlows/0/threadFlows/0/locations/0)
# 1891|   		pw_properties_setf(props, "sess.ts-direct", "%d", 0);
# 1892|   	if (pw_properties_get(props, "sess.media") == NULL)
# 1893|-> 		pw_properties_set(props, "sess.media", "raop");
# 1894|   	if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|   		pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1579]
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/66/codeFlows/0/threadFlows/0/locations/0)
# 1892|   	if (pw_properties_get(props, "sess.media") == NULL)
# 1893|   		pw_properties_set(props, "sess.media", "raop");
# 1894|-> 	if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|   		pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1580]
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/68/codeFlows/0/threadFlows/0/locations/14)
# 1893|   		pw_properties_set(props, "sess.media", "raop");
# 1894|   	if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|-> 		pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|   
# 1897|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1581]
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1894:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1895:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/67/codeFlows/0/threadFlows/0/locations/0)
# 1893|   		pw_properties_set(props, "sess.media", "raop");
# 1894|   	if (pw_properties_get(props, "sess.latency.msec") == NULL)
# 1895|-> 		pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|   
# 1897|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1582]
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/69/codeFlows/0/threadFlows/0/locations/0)
# 1895|   		pw_properties_setf(props, "sess.latency.msec", "%d", RAOP_LATENCY_MS);
# 1896|   
# 1897|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1898|   		pw_properties_update_string(impl->stream_props, str, strlen(str));
# 1899|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1583]
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:32: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: danger: ‘<unknown>’ leaks here; was allocated at [(15)](sarif:/runs/0/results/71/codeFlows/0/threadFlows/0/locations/14)
# 1896|   
# 1897|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1898|-> 		pw_properties_update_string(impl->stream_props, str, strlen(str));
# 1899|   
# 1900|   	copy_props(impl, props, PW_KEY_AUDIO_FORMAT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1584]
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-raop-sink.c:1758:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop-sink.c:1759:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1762:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1763:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1767:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1772:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1776:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1781:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1784:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1790:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1797:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1803:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1845:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1850:12: branch_false: following ‘false’ branch (when ‘str’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1864:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1897:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop-sink.c:1898:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/70/codeFlows/0/threadFlows/0/locations/0)
# 1896|   
# 1897|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1898|-> 		pw_properties_update_string(impl->stream_props, str, strlen(str));
# 1899|   
# 1900|   	copy_props(impl, props, PW_KEY_AUDIO_FORMAT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1585]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:92:27: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:81:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:84:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:92:27: danger: ‘client’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   90|   	spa_list_init(&client->pending);
#   91|   	spa_hook_list_init(&client->listener_list);
#   92|-> 	client->headers = pw_properties_new(NULL, NULL);
#   93|   	pw_array_init(&client->content, 4096);
#   94|   	client->recv_state = CLIENT_RECV_NONE;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1586]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:96:9: warning[-Wanalyzer-malloc-leak]: leak of ‘client’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:80:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:81:12: branch_false: following ‘false’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:84:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:96:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:96:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:96:9: danger: ‘client’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   94|   	client->recv_state = CLIENT_RECV_NONE;
#   95|   
#   96|-> 	pw_log_info("new client %p", client);
#   97|   
#   98|   	return client;

Error: COMPILER_WARNING (CWE-252): [#def1587]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c: scope_hint: In function ‘handle_connect’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:178:17: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
#  178 |                 asprintf(&client->url, "rtsp://%s/%s", local_ip, client->session_id);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  176|   
#  177|   	if (ip_version == 4)
#  178|-> 		asprintf(&client->url, "rtsp://%s/%s", local_ip, client->session_id);
#  179|   	else
#  180|   		asprintf(&client->url, "rtsp://[%s]/%s", local_ip, client->session_id);

Error: COMPILER_WARNING (CWE-252): [#def1588]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:180:17: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
#  180 |                 asprintf(&client->url, "rtsp://[%s]/%s", local_ip, client->session_id);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  178|   		asprintf(&client->url, "rtsp://%s/%s", local_ip, client->session_id);
#  179|   	else
#  180|-> 		asprintf(&client->url, "rtsp://[%s]/%s", local_ip, client->session_id);
#  181|   
#  182|   	pw_log_info("connected local ip %s", local_ip);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1589]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:306:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:366:12: enter_function: entry to ‘process_input’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:368:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:369:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:369:23: release_memory: ‘buf’ is NULL
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:372:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:375:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:381:32: release_memory: ‘buf’ is NULL
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:381:32: call_function: calling ‘process_header’ from ‘process_input’
#  304|   static int process_header(struct pw_rtsp_client *client, char *buf)
#  305|   {
#  306|-> 	if (strlen(buf) > 0) {
#  307|   		char *key = buf, *value;
#  308|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1590]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:509:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:476:5: enter_function: entry to ‘pw_rtsp_client_connect’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:495:9: call_function: calling ‘spa_scnprintf’ from ‘pw_rtsp_client_connect’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:495:9: return_function: returning to ‘pw_rtsp_client_connect’ from ‘spa_scnprintf’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:497:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:502:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:502:27: branch_true: following ‘true’ branch (when ‘rp’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:503:22: branch_true: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:503:22: acquire_resource: socket created here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:506:20: branch_false: following ‘false’ branch (when ‘fd != -1’)...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:509:23: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:509:23: danger: ‘fd’ leaks here
#  507|   			continue;
#  508|   
#  509|-> 		res = connect(fd, rp->ai_addr, rp->ai_addrlen);
#  510|   		if (res == 0 || (res < 0 && errno == EINPROGRESS))
#  511|   			break;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1591]
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:579:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:576:18: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:576:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:579:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-raop/rtsp-client.c:579:9: danger: ‘f’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  577|   		return -errno;
#  578|   
#  579|-> 	fseek(f, offsetof(struct message, data), SEEK_SET);
#  580|   
#  581|   	cseq = ++client->cseq;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1592]
pipewire-1.5.81/src/modules/module-roc-sink.c:385:44: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/src/modules/module-roc-sink.c:378:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-roc-sink.c:379:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
pipewire-1.5.81/src/modules/module-roc-sink.c:382:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-roc-sink.c:385:44: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  383|   		args = "";
#  384|   
#  385|-> 	spa_autoptr(pw_properties) props = pw_properties_new_string(args);
#  386|   	if (props == NULL) {
#  387|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1593]
pipewire-1.5.81/src/modules/module-roc-source.c:428:44: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/src/modules/module-roc-source.c:421:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-roc-source.c:422:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
pipewire-1.5.81/src/modules/module-roc-source.c:425:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-roc-source.c:428:44: danger: ‘data’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  426|   		args = "";
#  427|   
#  428|-> 	spa_autoptr(pw_properties) props = pw_properties_new_string(args);
#  429|   	if (props == NULL) {
#  430|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1594]
pipewire-1.5.81/src/modules/module-rt.c:283:20: warning[-Wanalyzer-malloc-leak]: leak of ‘bus’
pipewire-1.5.81/src/modules/module-rt.c:272:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:277:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:279:15: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:280:12: branch_false: following ‘false’ branch (when ‘bus’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:283:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:283:20: danger: ‘bus’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  281|   		return NULL;
#  282|   
#  283|-> 	bus->bus = dbus_bus_get_private(bus_type, &error);
#  284|   	if (bus->bus == NULL)
#  285|   		goto error;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1595]
pipewire-1.5.81/src/modules/module-rt.c:287:9: warning[-Wanalyzer-malloc-leak]: leak of ‘bus’
pipewire-1.5.81/src/modules/module-rt.c:272:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:277:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:279:15: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:280:12: branch_false: following ‘false’ branch (when ‘bus’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:283:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:284:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:287:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:287:9: danger: ‘bus’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  285|   		goto error;
#  286|   
#  287|-> 	dbus_connection_set_exit_on_disconnect(bus->bus, false);
#  288|   
#  289|   	return bus;

Error: CPPCHECK_WARNING (CWE-476): [#def1596]
pipewire-1.5.81/src/modules/module-rt.c:727: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: this
#  725|   
#  726|   	this = calloc(1, sizeof(*this));
#  727|-> 	this->impl = impl;
#  728|   	this->start = start_routine;
#  729|   	this->arg = arg;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1597]
pipewire-1.5.81/src/modules/module-rt.c:727:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘this’
pipewire-1.5.81/src/modules/module-rt.c:726:16: acquire_memory: this call could return NULL
pipewire-1.5.81/src/modules/module-rt.c:727:9: danger: ‘this’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  725|   
#  726|   	this = calloc(1, sizeof(*this));
#  727|-> 	this->impl = impl;
#  728|   	this->start = start_routine;
#  729|   	this->arg = arg;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1598]
pipewire-1.5.81/src/modules/module-rt.c:1066:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rt.c:1062:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:1063:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1066:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
# 1064|   		return -ENOMEM;
# 1065|   
# 1066|-> 	pw_log_debug("module %p: new", impl);
# 1067|   
# 1068|   	spa_autoptr(pw_properties) props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1599]
pipewire-1.5.81/src/modules/module-rt.c:1068:51: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rt.c:1062:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:1063:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1068:51: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:51: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
# 1066|   	pw_log_debug("module %p: new", impl);
# 1067|   
# 1068|-> 	spa_autoptr(pw_properties) props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);
# 1069|   	if (!props) {
# 1070|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1600]
pipewire-1.5.81/src/modules/module-rt.c:1068:84: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rt.c:1062:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:1063:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1066:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:36: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-rt.c:1068:84: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rt.c:1068:84: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
# 1066|   	pw_log_debug("module %p: new", impl);
# 1067|   
# 1068|-> 	spa_autoptr(pw_properties) props = args ? pw_properties_new_string(args) : pw_properties_new(NULL, NULL);
# 1069|   	if (!props) {
# 1070|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1601]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1809:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1881:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1980:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 1807|   		pw_core_disconnect(impl->core);
# 1808|   
# 1809|-> 	pw_timer_queue_cancel(&impl->timer);
# 1810|   	if (impl->sap_source)
# 1811|   		pw_loop_destroy_source(impl->loop, impl->sap_source);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1602]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1879:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1879:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
# 1877|   		args = "";
# 1878|   
# 1879|-> 	props = pw_properties_new_string(args);
# 1880|   	if (props == NULL) {
# 1881|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1603]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1882:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1881:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1882:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1882:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1882:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
# 1880|   	if (props == NULL) {
# 1881|   		res = -errno;
# 1882|-> 		pw_log_error( "can't create properties: %m");
# 1883|   		goto out;
# 1884|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1604]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1888:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1888:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1886|   
# 1887|   	impl->module = module;
# 1888|-> 	impl->loop = pw_context_get_main_loop(context);
# 1889|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 1890|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1605]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1889:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1889:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1887|   	impl->module = module;
# 1888|   	impl->loop = pw_context_get_main_loop(context);
# 1889|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
# 1890|   
# 1891|   	str = pw_properties_get(props, "local.ifname");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1606]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1891:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1891:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1889|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 1890|   
# 1891|-> 	str = pw_properties_get(props, "local.ifname");
# 1892|   	impl->ifname = str ? strdup(str) : NULL;
# 1893|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1607]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1894:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1894:15: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/6)
# 1892|   	impl->ifname = str ? strdup(str) : NULL;
# 1893|   
# 1894|-> 	str = pw_properties_get(props, "ptp.management-socket");
# 1895|   	impl->ptp_mgmt_socket = str ? strdup(str) : NULL;
# 1896|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1608]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1894:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1894:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1892|   	impl->ifname = str ? strdup(str) : NULL;
# 1893|   
# 1894|-> 	str = pw_properties_get(props, "ptp.management-socket");
# 1895|   	impl->ptp_mgmt_socket = str ? strdup(str) : NULL;
# 1896|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1609]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/6)
# 1899|   		impl->ptp_fd = make_unix_socket(impl->ptp_mgmt_socket);
# 1900|   
# 1901|-> 	if ((str = pw_properties_get(props, "sap.ip")) == NULL)
# 1902|   		str = DEFAULT_SAP_IP;
# 1903|   	port = pw_properties_get_uint32(props, "sap.port", DEFAULT_SAP_PORT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1610]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 1899|   		impl->ptp_fd = make_unix_socket(impl->ptp_mgmt_socket);
# 1900|   
# 1901|-> 	if ((str = pw_properties_get(props, "sap.ip")) == NULL)
# 1902|   		str = DEFAULT_SAP_IP;
# 1903|   	port = pw_properties_get_uint32(props, "sap.port", DEFAULT_SAP_PORT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1611]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/7)
# 1903|   	port = pw_properties_get_uint32(props, "sap.port", DEFAULT_SAP_PORT);
# 1904|   	if ((res = pw_net_parse_address(str, port, &impl->sap_addr, &impl->sap_len)) < 0) {
# 1905|-> 		pw_log_error("invalid sap.ip %s: %s", str, spa_strerror(res));
# 1906|   		goto out;
# 1907|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1612]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1905:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/1)
# 1903|   	port = pw_properties_get_uint32(props, "sap.port", DEFAULT_SAP_PORT);
# 1904|   	if ((res = pw_net_parse_address(str, port, &impl->sap_addr, &impl->sap_len)) < 0) {
# 1905|-> 		pw_log_error("invalid sap.ip %s: %s", str, spa_strerror(res));
# 1906|   		goto out;
# 1907|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1613]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:20: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/7)
# 1917|   	char buffer[MAX_SDP];
# 1918|   	struct spa_strbuf buf;
# 1919|-> 	if ((str = pw_properties_get(props, "sap.preamble-extra")) != NULL) {
# 1920|   		spa_strbuf_init(&buf, buffer, sizeof(buffer));
# 1921|   		struct spa_json it[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1614]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:20: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/1)
# 1917|   	char buffer[MAX_SDP];
# 1918|   	struct spa_strbuf buf;
# 1919|-> 	if ((str = pw_properties_get(props, "sap.preamble-extra")) != NULL) {
# 1920|   		spa_strbuf_init(&buf, buffer, sizeof(buffer));
# 1921|   		struct spa_json it[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1615]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/7)
# 1928|   		impl->extra_attrs_preamble = strdup(buffer);
# 1929|   	}
# 1930|-> 	if ((str = pw_properties_get(props, "sap.end-extra")) != NULL) {
# 1931|   		spa_strbuf_init(&buf, buffer, sizeof(buffer));
# 1932|   		struct spa_json it[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1616]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/1)
# 1928|   		impl->extra_attrs_preamble = strdup(buffer);
# 1929|   	}
# 1930|-> 	if ((str = pw_properties_get(props, "sap.end-extra")) != NULL) {
# 1931|   		spa_strbuf_init(&buf, buffer, sizeof(buffer));
# 1932|   		struct spa_json it[1];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1617]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/7)
# 1940|   	}
# 1941|   
# 1942|-> 	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
# 1943|   	if (impl->core == NULL) {
# 1944|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1618]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/1)
# 1940|   	}
# 1941|   
# 1942|-> 	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
# 1943|   	if (impl->core == NULL) {
# 1944|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1619]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/7)
# 1942|   	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
# 1943|   	if (impl->core == NULL) {
# 1944|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1945|   		impl->core = pw_context_connect(context,
# 1946|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1620]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/1)
# 1942|   	impl->core = pw_context_get_object(context, PW_TYPE_INTERFACE_Core);
# 1943|   	if (impl->core == NULL) {
# 1944|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1945|   		impl->core = pw_context_connect(context,
# 1946|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1621]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1945:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1945:30: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/7)
# 1943|   	if (impl->core == NULL) {
# 1944|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1945|-> 		impl->core = pw_context_connect(context,
# 1946|   				pw_properties_new(
# 1947|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1622]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1945:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1945:30: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/1)
# 1943|   	if (impl->core == NULL) {
# 1944|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1945|-> 		impl->core = pw_context_connect(context,
# 1946|   				pw_properties_new(
# 1947|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1623]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1952:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1953:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/7)
# 1952|   	if (impl->core == NULL) {
# 1953|   		res = -errno;
# 1954|-> 		pw_log_error("can't connect: %m");
# 1955|   		goto out;
# 1956|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1624]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1944:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1952:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1953:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1954:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/1)
# 1952|   	if (impl->core == NULL) {
# 1953|   		res = -errno;
# 1954|-> 		pw_log_error("can't connect: %m");
# 1955|   		goto out;
# 1956|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1625]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1958:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1952:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1952:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1958:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1958:9: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/7)
# 1956|   	}
# 1957|   
# 1958|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
# 1959|   			&impl->core_proxy_listener,
# 1960|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1626]
pipewire-1.5.81/src/modules/module-rtp-sap.c:1958:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1868:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1919:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1930:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1942:22: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1943:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1952:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1952:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1958:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1958:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/1)
# 1956|   	}
# 1957|   
# 1958|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
# 1959|   			&impl->core_proxy_listener,
# 1960|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1627]
pipewire-1.5.81/src/modules/module-rtp-session.c:589:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  587|   
#  588|   	sess->impl->n_sessions--;
#  589|-> 	pw_timer_queue_cancel(&sess->timer);
#  590|   
#  591|   	if (sess->send)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1628]
pipewire-1.5.81/src/modules/module-rtp-session.c:592:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  590|   
#  591|   	if (sess->send)
#  592|-> 		rtp_stream_destroy(sess->send);
#  593|   	if (sess->recv)
#  594|   		rtp_stream_destroy(sess->recv);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1629]
pipewire-1.5.81/src/modules/module-rtp-session.c:594:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  592|   		rtp_stream_destroy(sess->send);
#  593|   	if (sess->recv)
#  594|-> 		rtp_stream_destroy(sess->recv);
#  595|   	free(sess->name);
#  596|   	free(sess);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1630]
pipewire-1.5.81/src/modules/module-rtp-session.c:1224:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1667:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 1222|   		pw_context_release_loop(impl->context, impl->data_loop);
# 1223|   
# 1224|-> 	pw_properties_free(impl->stream_props);
# 1225|   	pw_properties_free(impl->props);
# 1226|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1631]
pipewire-1.5.81/src/modules/module-rtp-session.c:1225:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1667:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1808:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
# 1223|   
# 1224|   	pw_properties_free(impl->stream_props);
# 1225|-> 	pw_properties_free(impl->props);
# 1226|   
# 1227|   	free(impl->ifname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1632]
pipewire-1.5.81/src/modules/module-rtp-session.c:1637:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1698:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1635|   {
# 1636|   	const char *str;
# 1637|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
# 1638|   		if (pw_properties_get(impl->stream_props, key) == NULL)
# 1639|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1633]
pipewire-1.5.81/src/modules/module-rtp-session.c:1638:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1698:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1636|   	const char *str;
# 1637|   	if ((str = pw_properties_get(props, key)) != NULL) {
# 1638|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
# 1639|   			pw_properties_set(impl->stream_props, key, str);
# 1640|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1634]
pipewire-1.5.81/src/modules/module-rtp-session.c:1639:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1698:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
# 1637|   	if ((str = pw_properties_get(props, key)) != NULL) {
# 1638|   		if (pw_properties_get(impl->stream_props, key) == NULL)
# 1639|-> 			pw_properties_set(impl->stream_props, key, str);
# 1640|   	}
# 1641|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1635]
pipewire-1.5.81/src/modules/module-rtp-session.c:1665:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1665:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
# 1663|   	spa_list_init(&impl->service_list);
# 1664|   
# 1665|-> 	props = pw_properties_new_string(args);
# 1666|   	if (props == NULL) {
# 1667|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1636]
pipewire-1.5.81/src/modules/module-rtp-session.c:1668:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1667:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1668:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1668:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1668:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
# 1666|   	if (props == NULL) {
# 1667|   		res = -errno;
# 1668|-> 		pw_log_error( "can't create properties: %m");
# 1669|   		goto out;
# 1670|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1637]
pipewire-1.5.81/src/modules/module-rtp-session.c:1676:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1676:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
# 1674|   			"sess.discover-local", false);
# 1675|   
# 1676|-> 	stream_props = pw_properties_new(NULL, NULL);
# 1677|   	if (stream_props == NULL) {
# 1678|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1638]
pipewire-1.5.81/src/modules/module-rtp-session.c:1679:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1678:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1679:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1679:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1679:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
# 1677|   	if (stream_props == NULL) {
# 1678|   		res = -errno;
# 1679|-> 		pw_log_error( "can't create properties: %m");
# 1680|   		goto out;
# 1681|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1639]
pipewire-1.5.81/src/modules/module-rtp-session.c:1686:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1686:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
# 1684|   	impl->module = module;
# 1685|   	impl->context = context;
# 1686|-> 	impl->loop = pw_context_get_main_loop(context);
# 1687|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
# 1688|   	impl->timer_queue = pw_context_get_timer_queue(context);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1640]
pipewire-1.5.81/src/modules/module-rtp-session.c:1687:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1687:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
# 1685|   	impl->context = context;
# 1686|   	impl->loop = pw_context_get_main_loop(context);
# 1687|-> 	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
# 1688|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 1689|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1641]
pipewire-1.5.81/src/modules/module-rtp-session.c:1688:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1688:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
# 1686|   	impl->loop = pw_context_get_main_loop(context);
# 1687|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
# 1688|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
# 1689|   
# 1690|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1642]
pipewire-1.5.81/src/modules/module-rtp-session.c:1690:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1690:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
# 1688|   	impl->timer_queue = pw_context_get_timer_queue(context);
# 1689|   
# 1690|-> 	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
# 1691|   
# 1692|   	if (pw_properties_get(props, "sess.media") == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1643]
pipewire-1.5.81/src/modules/module-rtp-session.c:1692:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1692:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
# 1690|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
# 1691|   
# 1692|-> 	if (pw_properties_get(props, "sess.media") == NULL)
# 1693|   		pw_properties_set(props, "sess.media", "midi");
# 1694|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1644]
pipewire-1.5.81/src/modules/module-rtp-session.c:1693:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1692:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1693:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1693:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
# 1691|   
# 1692|   	if (pw_properties_get(props, "sess.media") == NULL)
# 1693|-> 		pw_properties_set(props, "sess.media", "midi");
# 1694|   
# 1695|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1645]
pipewire-1.5.81/src/modules/module-rtp-session.c:1695:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1695:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
# 1693|   		pw_properties_set(props, "sess.media", "midi");
# 1694|   
# 1695|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1696|   		pw_properties_update_string(stream_props, str, strlen(str));
# 1697|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1646]
pipewire-1.5.81/src/modules/module-rtp-session.c:1696:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1695:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1696:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1696:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
# 1694|   
# 1695|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
# 1696|-> 		pw_properties_update_string(stream_props, str, strlen(str));
# 1697|   
# 1698|   	copy_props(impl, props, PW_KEY_NODE_LOOP_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1647]
pipewire-1.5.81/src/modules/module-rtp-session.c:1721:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1721:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
# 1719|   	impl->mcast_loop = pw_properties_get_bool(props, "net.loop", DEFAULT_LOOP);
# 1720|   
# 1721|-> 	str = pw_properties_get(stream_props, "sess.media");
# 1722|   
# 1723|   	if (spa_streq(str, "audio")) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1648]
pipewire-1.5.81/src/modules/module-rtp-session.c:1729:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1723:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1724:38: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1729:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
# 1727|   			{ "audio.channels", SPA_STRINGIFY(DEFAULT_CHANNELS) },
# 1728|   			{ "audio.position", DEFAULT_POSITION } };
# 1729|-> 		pw_properties_add(stream_props, &SPA_DICT_INIT_ARRAY(items));
# 1730|   	}
# 1731|   	else if (spa_streq(str, "opus")) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1649]
pipewire-1.5.81/src/modules/module-rtp-session.c:1736:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1723:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1731:18: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1731:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1732:38: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1736:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
# 1734|   			{ "audio.channels", SPA_STRINGIFY(DEFAULT_CHANNELS) },
# 1735|   			{ "audio.position", DEFAULT_POSITION } };
# 1736|-> 		pw_properties_add(stream_props, &SPA_DICT_INIT_ARRAY(items));
# 1737|   	}
# 1738|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1650]
pipewire-1.5.81/src/modules/module-rtp-session.c:1739:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1739:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
# 1737|   	}
# 1738|   
# 1739|-> 	str = pw_properties_get(props, "local.ifname");
# 1740|   	impl->ifname = str ? strdup(str) : NULL;
# 1741|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1651]
pipewire-1.5.81/src/modules/module-rtp-session.c:1743:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1743:20: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/8)
# 1741|   
# 1742|   	port = pw_properties_get_uint32(props, "control.port", DEFAULT_CONTROL_PORT);
# 1743|-> 	if ((str = pw_properties_get(props, "control.ip")) == NULL)
# 1744|   		str = DEFAULT_CONTROL_IP;
# 1745|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1652]
pipewire-1.5.81/src/modules/module-rtp-session.c:1743:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1743:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/0)
# 1741|   
# 1742|   	port = pw_properties_get_uint32(props, "control.port", DEFAULT_CONTROL_PORT);
# 1743|-> 	if ((str = pw_properties_get(props, "control.ip")) == NULL)
# 1744|   		str = DEFAULT_CONTROL_IP;
# 1745|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1653]
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/9)
# 1747|   
# 1748|   	if ((res = pw_net_parse_address(str, port, &impl->ctrl_addr, &impl->ctrl_len)) < 0) {
# 1749|-> 		pw_log_error("invalid control.ip %s: %s", str, spa_strerror(res));
# 1750|   		goto out;
# 1751|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1654]
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1740:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-session.c:1749:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
# 1747|   
# 1748|   	if ((res = pw_net_parse_address(str, port, &impl->ctrl_addr, &impl->ctrl_len)) < 0) {
# 1749|-> 		pw_log_error("invalid control.ip %s: %s", str, spa_strerror(res));
# 1750|   		goto out;
# 1751|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1655]
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1644:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-session.c:1753:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1)
# 1751|   	}
# 1752|   	if ((res = pw_net_parse_address(str, port ? port+1 : 0, &impl->data_addr, &impl->data_len)) < 0) {
# 1753|-> 		pw_log_error("invalid data.ip %s: %s", str, spa_strerror(res));
# 1754|   		goto out;
# 1755|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1656]
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/0)
# 1756|   
# 1757|   	impl->ts_offset = pw_properties_get_int64(props,
# 1758|-> 			"sess.ts-offset", pw_rand32());
# 1759|   	str = pw_properties_get(props, "sess.ts-refclk");
# 1760|   	impl->ts_refclk = str ? strdup(str) : NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1657]
pipewire-1.5.81/src/modules/module-rtp-session.c:1759:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1759:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/0)
# 1757|   	impl->ts_offset = pw_properties_get_int64(props,
# 1758|   			"sess.ts-offset", pw_rand32());
# 1759|-> 	str = pw_properties_get(props, "sess.ts-refclk");
# 1760|   	impl->ts_refclk = str ? strdup(str) : NULL;
# 1761|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1658]
pipewire-1.5.81/src/modules/module-rtp-session.c:1762:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1762:20: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/12)
# 1760|   	impl->ts_refclk = str ? strdup(str) : NULL;
# 1761|   
# 1762|-> 	if ((str = pw_properties_get(props, "sess.name")) == NULL)
# 1763|   		pw_properties_setf(props, "sess.name", "%s", pw_get_host_name());
# 1764|   	str = pw_properties_get(props, "sess.name");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1659]
pipewire-1.5.81/src/modules/module-rtp-session.c:1762:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1762:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/0)
# 1760|   	impl->ts_refclk = str ? strdup(str) : NULL;
# 1761|   
# 1762|-> 	if ((str = pw_properties_get(props, "sess.name")) == NULL)
# 1763|   		pw_properties_setf(props, "sess.name", "%s", pw_get_host_name());
# 1764|   	str = pw_properties_get(props, "sess.name");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1660]
pipewire-1.5.81/src/modules/module-rtp-session.c:1763:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1762:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1763:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1763:17: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/12)
# 1761|   
# 1762|   	if ((str = pw_properties_get(props, "sess.name")) == NULL)
# 1763|-> 		pw_properties_setf(props, "sess.name", "%s", pw_get_host_name());
# 1764|   	str = pw_properties_get(props, "sess.name");
# 1765|   	impl->session_name = str ? strdup(str) : NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1661]
pipewire-1.5.81/src/modules/module-rtp-session.c:1763:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1762:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1763:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1763:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/0)
# 1761|   
# 1762|   	if ((str = pw_properties_get(props, "sess.name")) == NULL)
# 1763|-> 		pw_properties_setf(props, "sess.name", "%s", pw_get_host_name());
# 1764|   	str = pw_properties_get(props, "sess.name");
# 1765|   	impl->session_name = str ? strdup(str) : NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1662]
pipewire-1.5.81/src/modules/module-rtp-session.c:1764:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1764:15: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/12)
# 1762|   	if ((str = pw_properties_get(props, "sess.name")) == NULL)
# 1763|   		pw_properties_setf(props, "sess.name", "%s", pw_get_host_name());
# 1764|-> 	str = pw_properties_get(props, "sess.name");
# 1765|   	impl->session_name = str ? strdup(str) : NULL;
# 1766|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1663]
pipewire-1.5.81/src/modules/module-rtp-session.c:1764:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1764:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/0)
# 1762|   	if ((str = pw_properties_get(props, "sess.name")) == NULL)
# 1763|   		pw_properties_setf(props, "sess.name", "%s", pw_get_host_name());
# 1764|-> 	str = pw_properties_get(props, "sess.name");
# 1765|   	impl->session_name = str ? strdup(str) : NULL;
# 1766|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1664]
pipewire-1.5.81/src/modules/module-rtp-session.c:1767:22: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1767:22: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/51/codeFlows/0/threadFlows/0/locations/12)
# 1765|   	impl->session_name = str ? strdup(str) : NULL;
# 1766|   
# 1767|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
# 1768|   	if (impl->core == NULL) {
# 1769|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1665]
pipewire-1.5.81/src/modules/module-rtp-session.c:1767:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1767:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/0)
# 1765|   	impl->session_name = str ? strdup(str) : NULL;
# 1766|   
# 1767|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
# 1768|   	if (impl->core == NULL) {
# 1769|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1666]
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1768:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/53/codeFlows/0/threadFlows/0/locations/12)
# 1767|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
# 1768|   	if (impl->core == NULL) {
# 1769|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1770|   		impl->core = pw_context_connect(impl->context,
# 1771|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1667]
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1768:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/52/codeFlows/0/threadFlows/0/locations/0)
# 1767|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
# 1768|   	if (impl->core == NULL) {
# 1769|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1770|   		impl->core = pw_context_connect(impl->context,
# 1771|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1668]
pipewire-1.5.81/src/modules/module-rtp-session.c:1770:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1768:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1770:30: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/56/codeFlows/0/threadFlows/0/locations/12)
# 1768|   	if (impl->core == NULL) {
# 1769|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1770|-> 		impl->core = pw_context_connect(impl->context,
# 1771|   				pw_properties_new(
# 1772|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1669]
pipewire-1.5.81/src/modules/module-rtp-session.c:1770:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1768:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1769:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1770:30: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/54/codeFlows/0/threadFlows/0/locations/0)
# 1768|   	if (impl->core == NULL) {
# 1769|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
# 1770|-> 		impl->core = pw_context_connect(impl->context,
# 1771|   				pw_properties_new(
# 1772|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1670]
pipewire-1.5.81/src/modules/module-rtp-session.c:1783:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:33: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1777:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1783:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1783:9: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/59/codeFlows/0/threadFlows/0/locations/12)
# 1781|   	}
# 1782|   
# 1783|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
# 1784|   			&impl->core_proxy_listener,
# 1785|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1671]
pipewire-1.5.81/src/modules/module-rtp-session.c:1783:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-session.c:1655:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-session.c:1656:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-session.c:1659:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1666:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1671:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1677:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1682:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1748:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1752:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1758:43: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1760:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:30: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1765:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1777:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-session.c:1783:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-session.c:1783:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/58/codeFlows/0/threadFlows/0/locations/0)
# 1781|   	}
# 1782|   
# 1783|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
# 1784|   			&impl->core_proxy_listener,
# 1785|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1672]
pipewire-1.5.81/src/modules/module-rtp-sink.c:512:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:578:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  510|   {
#  511|   	const char *str;
#  512|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  513|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  514|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1673]
pipewire-1.5.81/src/modules/module-rtp-sink.c:513:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:578:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  511|   	const char *str;
#  512|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  513|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  514|   			pw_properties_set(impl->stream_props, key, str);
#  515|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1674]
pipewire-1.5.81/src/modules/module-rtp-sink.c:514:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:578:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  512|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  513|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  514|-> 			pw_properties_set(impl->stream_props, key, str);
#  515|   	}
#  516|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1675]
pipewire-1.5.81/src/modules/module-rtp-sink.c:541:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:541:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  539|   		args = "";
#  540|   
#  541|-> 	props = pw_properties_new_string(args);
#  542|   	if (props == NULL) {
#  543|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1676]
pipewire-1.5.81/src/modules/module-rtp-sink.c:544:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:543:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:544:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:544:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:544:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  542|   	if (props == NULL) {
#  543|   		res = -errno;
#  544|-> 		pw_log_error( "can't create properties: %m");
#  545|   		goto out;
#  546|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1677]
pipewire-1.5.81/src/modules/module-rtp-sink.c:549:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:549:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  547|   	impl->props = props;
#  548|   
#  549|-> 	stream_props = pw_properties_new(NULL, NULL);
#  550|   	if (stream_props == NULL) {
#  551|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1678]
pipewire-1.5.81/src/modules/module-rtp-sink.c:552:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:551:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:552:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:552:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:552:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  550|   	if (stream_props == NULL) {
#  551|   		res = -errno;
#  552|-> 		pw_log_error( "can't create properties: %m");
#  553|   		goto out;
#  554|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1679]
pipewire-1.5.81/src/modules/module-rtp-sink.c:562:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:562:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  560|   	impl->module = module;
#  561|   	impl->context = context;
#  562|-> 	impl->loop = pw_context_get_main_loop(context);
#  563|   
#  564|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1680]
pipewire-1.5.81/src/modules/module-rtp-sink.c:564:26: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:564:26: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  562|   	impl->loop = pw_context_get_main_loop(context);
#  563|   
#  564|-> 	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  565|   		sess_name = pw_get_host_name();
#  566|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1681]
pipewire-1.5.81/src/modules/module-rtp-sink.c:565:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:564:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:565:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:565:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  563|   
#  564|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  565|-> 		sess_name = pw_get_host_name();
#  566|   
#  567|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1682]
pipewire-1.5.81/src/modules/module-rtp-sink.c:567:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:567:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  565|   		sess_name = pw_get_host_name();
#  566|   
#  567|-> 	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  568|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  569|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1683]
pipewire-1.5.81/src/modules/module-rtp-sink.c:568:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:567:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:568:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:568:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  566|   
#  567|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  568|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  569|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  570|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1684]
pipewire-1.5.81/src/modules/module-rtp-sink.c:569:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:569:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  567|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  568|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  569|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  570|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  571|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1685]
pipewire-1.5.81/src/modules/module-rtp-sink.c:570:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:569:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:570:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:570:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  568|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  569|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  570|-> 		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  571|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  572|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RTP Session with %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1686]
pipewire-1.5.81/src/modules/module-rtp-sink.c:571:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:571:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  569|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  570|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  571|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  572|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RTP Session with %s",
#  573|   				sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1687]
pipewire-1.5.81/src/modules/module-rtp-sink.c:572:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:571:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:572:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:572:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  570|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  571|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  572|-> 		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RTP Session with %s",
#  573|   				sess_name);
#  574|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1688]
pipewire-1.5.81/src/modules/module-rtp-sink.c:575:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:575:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  573|   				sess_name);
#  574|   
#  575|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  576|   		pw_properties_update_string(stream_props, str, strlen(str));
#  577|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1689]
pipewire-1.5.81/src/modules/module-rtp-sink.c:576:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:575:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:576:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:576:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  574|   
#  575|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  576|-> 		pw_properties_update_string(stream_props, str, strlen(str));
#  577|   
#  578|   	copy_props(impl, props, PW_KEY_AUDIO_FORMAT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1690]
pipewire-1.5.81/src/modules/module-rtp-sink.c:601:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:601:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  599|   	copy_props(impl, props, "aes67.driver-group");
#  600|   
#  601|-> 	str = pw_properties_get(props, "local.ifname");
#  602|   	impl->ifname = str ? strdup(str) : NULL;
#  603|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1691]
pipewire-1.5.81/src/modules/module-rtp-sink.c:604:54: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:604:54: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/8)
#  602|   	impl->ifname = str ? strdup(str) : NULL;
#  603|   
#  604|-> 	impl->dst_port = DEFAULT_PORT + ((uint32_t) (pw_rand32() % 512) << 1);
#  605|   	impl->dst_port = pw_properties_get_uint32(props, "destination.port", impl->dst_port);
#  606|   	if ((str = pw_properties_get(props, "destination.ip")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1692]
pipewire-1.5.81/src/modules/module-rtp-sink.c:604:54: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:604:54: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  602|   	impl->ifname = str ? strdup(str) : NULL;
#  603|   
#  604|-> 	impl->dst_port = DEFAULT_PORT + ((uint32_t) (pw_rand32() % 512) << 1);
#  605|   	impl->dst_port = pw_properties_get_uint32(props, "destination.port", impl->dst_port);
#  606|   	if ((str = pw_properties_get(props, "destination.ip")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1693]
pipewire-1.5.81/src/modules/module-rtp-sink.c:606:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:606:20: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/8)
#  604|   	impl->dst_port = DEFAULT_PORT + ((uint32_t) (pw_rand32() % 512) << 1);
#  605|   	impl->dst_port = pw_properties_get_uint32(props, "destination.port", impl->dst_port);
#  606|-> 	if ((str = pw_properties_get(props, "destination.ip")) == NULL)
#  607|   		str = DEFAULT_DESTINATION_IP;
#  608|   	if ((res = pw_net_parse_address(str, impl->dst_port, &impl->dst_addr, &impl->dst_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1694]
pipewire-1.5.81/src/modules/module-rtp-sink.c:606:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:606:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  604|   	impl->dst_port = DEFAULT_PORT + ((uint32_t) (pw_rand32() % 512) << 1);
#  605|   	impl->dst_port = pw_properties_get_uint32(props, "destination.port", impl->dst_port);
#  606|-> 	if ((str = pw_properties_get(props, "destination.ip")) == NULL)
#  607|   		str = DEFAULT_DESTINATION_IP;
#  608|   	if ((res = pw_net_parse_address(str, impl->dst_port, &impl->dst_addr, &impl->dst_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1695]
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/9)
#  607|   		str = DEFAULT_DESTINATION_IP;
#  608|   	if ((res = pw_net_parse_address(str, impl->dst_port, &impl->dst_addr, &impl->dst_len)) < 0) {
#  609|-> 		pw_log_error("invalid destination.ip %s: %s", str, spa_strerror(res));
#  610|   		goto out;
#  611|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1696]
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:602:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-sink.c:609:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/1)
#  607|   		str = DEFAULT_DESTINATION_IP;
#  608|   	if ((res = pw_net_parse_address(str, impl->dst_port, &impl->dst_addr, &impl->dst_len)) < 0) {
#  609|-> 		pw_log_error("invalid destination.ip %s: %s", str, spa_strerror(res));
#  610|   		goto out;
#  611|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1697]
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/1)
#  610|   		goto out;
#  611|   	}
#  612|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  613|   		str = impl->dst_addr.ss_family == AF_INET ?
#  614|   			DEFAULT_SOURCE_IP : DEFAULT_SOURCE_IP6;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1698]
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-sink.c:616:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/1)
#  614|   			DEFAULT_SOURCE_IP : DEFAULT_SOURCE_IP6;
#  615|   	if ((res = pw_net_parse_address(str, 0, &impl->src_addr, &impl->src_len)) < 0) {
#  616|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  617|   		goto out;
#  618|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1699]
pipewire-1.5.81/src/modules/module-rtp-sink.c:626:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:625:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:626:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:626:29: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/1)
#  624|   	ts_offset = pw_properties_get_int64(props, "sess.ts-offset", DEFAULT_TS_OFFSET);
#  625|   	if (ts_offset == -1)
#  626|-> 		ts_offset = pw_rand32();
#  627|   	pw_properties_setf(stream_props, "rtp.sender-ts-offset", "%u", (uint32_t)ts_offset);
#  628|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1700]
pipewire-1.5.81/src/modules/module-rtp-sink.c:627:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:625:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:627:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:627:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/1)
#  625|   	if (ts_offset == -1)
#  626|   		ts_offset = pw_rand32();
#  627|-> 	pw_properties_setf(stream_props, "rtp.sender-ts-offset", "%u", (uint32_t)ts_offset);
#  628|   
#  629|   	header_size = impl->dst_addr.ss_family == AF_INET ?

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1701]
pipewire-1.5.81/src/modules/module-rtp-sink.c:632:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:632:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
#  630|                           IP4_HEADER_SIZE : IP6_HEADER_SIZE;
#  631|   	header_size += UDP_HEADER_SIZE;
#  632|-> 	pw_properties_setf(stream_props, "net.header", "%u", header_size);
#  633|   	pw_net_get_ip(&impl->src_addr, addr, sizeof(addr), NULL, NULL);
#  634|   	pw_properties_set(stream_props, "rtp.source.ip", addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1702]
pipewire-1.5.81/src/modules/module-rtp-sink.c:634:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:634:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/1)
#  632|   	pw_properties_setf(stream_props, "net.header", "%u", header_size);
#  633|   	pw_net_get_ip(&impl->src_addr, addr, sizeof(addr), NULL, NULL);
#  634|-> 	pw_properties_set(stream_props, "rtp.source.ip", addr);
#  635|   	pw_net_get_ip(&impl->dst_addr, addr, sizeof(addr), NULL, NULL);
#  636|   	pw_properties_set(stream_props, "rtp.destination.ip", addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1703]
pipewire-1.5.81/src/modules/module-rtp-sink.c:636:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:636:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1)
#  634|   	pw_properties_set(stream_props, "rtp.source.ip", addr);
#  635|   	pw_net_get_ip(&impl->dst_addr, addr, sizeof(addr), NULL, NULL);
#  636|-> 	pw_properties_set(stream_props, "rtp.destination.ip", addr);
#  637|   	pw_properties_setf(stream_props, "rtp.destination.port", "%u", impl->dst_port);
#  638|   	pw_properties_setf(stream_props, "rtp.ttl", "%u", impl->ttl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1704]
pipewire-1.5.81/src/modules/module-rtp-sink.c:637:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:637:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/1)
#  635|   	pw_net_get_ip(&impl->dst_addr, addr, sizeof(addr), NULL, NULL);
#  636|   	pw_properties_set(stream_props, "rtp.destination.ip", addr);
#  637|-> 	pw_properties_setf(stream_props, "rtp.destination.port", "%u", impl->dst_port);
#  638|   	pw_properties_setf(stream_props, "rtp.ttl", "%u", impl->ttl);
#  639|   	pw_properties_setf(stream_props, "rtp.dscp", "%u", impl->dscp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1705]
pipewire-1.5.81/src/modules/module-rtp-sink.c:638:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:638:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/1)
#  636|   	pw_properties_set(stream_props, "rtp.destination.ip", addr);
#  637|   	pw_properties_setf(stream_props, "rtp.destination.port", "%u", impl->dst_port);
#  638|-> 	pw_properties_setf(stream_props, "rtp.ttl", "%u", impl->ttl);
#  639|   	pw_properties_setf(stream_props, "rtp.dscp", "%u", impl->dscp);
#  640|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1706]
pipewire-1.5.81/src/modules/module-rtp-sink.c:639:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:639:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/1)
#  637|   	pw_properties_setf(stream_props, "rtp.destination.port", "%u", impl->dst_port);
#  638|   	pw_properties_setf(stream_props, "rtp.ttl", "%u", impl->ttl);
#  639|-> 	pw_properties_setf(stream_props, "rtp.dscp", "%u", impl->dscp);
#  640|   
#  641|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1707]
pipewire-1.5.81/src/modules/module-rtp-sink.c:641:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:641:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/1)
#  639|   	pw_properties_setf(stream_props, "rtp.dscp", "%u", impl->dscp);
#  640|   
#  641|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  642|   	if (impl->core == NULL) {
#  643|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1708]
pipewire-1.5.81/src/modules/module-rtp-sink.c:643:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:642:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:643:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:643:23: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/1)
#  641|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  642|   	if (impl->core == NULL) {
#  643|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  644|   		impl->core = pw_context_connect(impl->context,
#  645|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1709]
pipewire-1.5.81/src/modules/module-rtp-sink.c:644:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:642:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:643:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:644:30: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/1)
#  642|   	if (impl->core == NULL) {
#  643|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  644|-> 		impl->core = pw_context_connect(impl->context,
#  645|   				pw_properties_new(
#  646|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1710]
pipewire-1.5.81/src/modules/module-rtp-sink.c:653:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:651:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:652:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:653:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:653:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:653:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/1)
#  651|   	if (impl->core == NULL) {
#  652|   		res = -errno;
#  653|-> 		pw_log_error("can't connect: %m");
#  654|   		goto out;
#  655|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1711]
pipewire-1.5.81/src/modules/module-rtp-sink.c:657:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-sink.c:519:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:532:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sink.c:533:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sink.c:536:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:542:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:547:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:550:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:555:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:608:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:612:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:615:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:620:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:633:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sink.c:635:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-sink.c:651:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sink.c:657:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sink.c:657:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/48/codeFlows/0/threadFlows/0/locations/1)
#  655|   	}
#  656|   
#  657|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
#  658|   			&impl->core_proxy_listener,
#  659|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1712]
pipewire-1.5.81/src/modules/module-rtp-source.c:679:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:738:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  677|   {
#  678|   	const char *str;
#  679|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  680|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  681|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1713]
pipewire-1.5.81/src/modules/module-rtp-source.c:680:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:738:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  678|   	const char *str;
#  679|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  680|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  681|   			pw_properties_set(impl->stream_props, key, str);
#  682|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1714]
pipewire-1.5.81/src/modules/module-rtp-source.c:681:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:738:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  679|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  680|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  681|-> 			pw_properties_set(impl->stream_props, key, str);
#  682|   	}
#  683|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1715]
pipewire-1.5.81/src/modules/module-rtp-source.c:706:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:706:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  704|   		args = "";
#  705|   
#  706|-> 	props = impl->props = pw_properties_new_string(args);
#  707|   	stream_props = impl->stream_props = pw_properties_new(NULL, NULL);
#  708|   	if (props == NULL || stream_props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1716]
pipewire-1.5.81/src/modules/module-rtp-source.c:707:45: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:707:45: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  705|   
#  706|   	props = impl->props = pw_properties_new_string(args);
#  707|-> 	stream_props = impl->stream_props = pw_properties_new(NULL, NULL);
#  708|   	if (props == NULL || stream_props == NULL) {
#  709|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1717]
pipewire-1.5.81/src/modules/module-rtp-source.c:710:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:709:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:710:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:710:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:710:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  708|   	if (props == NULL || stream_props == NULL) {
#  709|   		res = -errno;
#  710|-> 		pw_log_error( "can't create properties: %m");
#  711|   		goto out;
#  712|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1718]
pipewire-1.5.81/src/modules/module-rtp-source.c:716:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:716:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  714|   	impl->module = module;
#  715|   	impl->context = context;
#  716|-> 	impl->main_loop = pw_context_get_main_loop(context);
#  717|   	impl->timer_queue = pw_context_get_timer_queue(context);
#  718|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1719]
pipewire-1.5.81/src/modules/module-rtp-source.c:717:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:717:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  715|   	impl->context = context;
#  716|   	impl->main_loop = pw_context_get_main_loop(context);
#  717|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
#  718|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  719|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1720]
pipewire-1.5.81/src/modules/module-rtp-source.c:718:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:718:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  716|   	impl->main_loop = pw_context_get_main_loop(context);
#  717|   	impl->timer_queue = pw_context_get_timer_queue(context);
#  718|-> 	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  719|   
#  720|   	impl->rate_limit.interval = 2 * SPA_NSEC_PER_SEC;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1721]
pipewire-1.5.81/src/modules/module-rtp-source.c:723:26: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:723:26: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  721|   	impl->rate_limit.burst = 1;
#  722|   
#  723|-> 	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  724|   		sess_name = pw_get_host_name();
#  725|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1722]
pipewire-1.5.81/src/modules/module-rtp-source.c:724:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:723:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:724:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:724:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  722|   
#  723|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  724|-> 		sess_name = pw_get_host_name();
#  725|   
#  726|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1723]
pipewire-1.5.81/src/modules/module-rtp-source.c:726:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:726:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  724|   		sess_name = pw_get_host_name();
#  725|   
#  726|-> 	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  727|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  728|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1724]
pipewire-1.5.81/src/modules/module-rtp-source.c:727:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:727:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  725|   
#  726|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  727|-> 	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  728|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  729|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1725]
pipewire-1.5.81/src/modules/module-rtp-source.c:728:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:727:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:728:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:728:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  726|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  727|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  728|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  729|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  730|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1726]
pipewire-1.5.81/src/modules/module-rtp-source.c:729:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:729:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  727|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  728|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  729|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  730|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  731|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1727]
pipewire-1.5.81/src/modules/module-rtp-source.c:730:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:729:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:730:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:730:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  728|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "rtp_session.%s", sess_name);
#  729|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  730|-> 		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  731|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  732|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RTP Session with %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1728]
pipewire-1.5.81/src/modules/module-rtp-source.c:731:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:731:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  729|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  730|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  731|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  732|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RTP Session with %s",
#  733|   				sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1729]
pipewire-1.5.81/src/modules/module-rtp-source.c:732:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:731:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:732:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:732:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  730|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  731|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  732|-> 		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "RTP Session with %s",
#  733|   				sess_name);
#  734|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1730]
pipewire-1.5.81/src/modules/module-rtp-source.c:735:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:735:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  733|   				sess_name);
#  734|   
#  735|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  736|   		pw_properties_update_string(stream_props, str, strlen(str));
#  737|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1731]
pipewire-1.5.81/src/modules/module-rtp-source.c:736:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:735:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:736:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:736:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  734|   
#  735|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  736|-> 		pw_properties_update_string(stream_props, str, strlen(str));
#  737|   
#  738|   	copy_props(impl, props, PW_KEY_NODE_LOOP_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1732]
pipewire-1.5.81/src/modules/module-rtp-source.c:761:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:761:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  759|   	copy_props(impl, props, "stream.may-pause");
#  760|   
#  761|-> 	str = pw_properties_get(props, "local.ifname");
#  762|   	impl->ifname = str ? strdup(str) : NULL;
#  763|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1733]
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/6)
#  765|   	if (impl->src_port == 0) {
#  766|   		res = -EINVAL;
#  767|-> 		pw_log_error("invalid source.port");
#  768|   		goto out;
#  769|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1734]
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:767:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  765|   	if (impl->src_port == 0) {
#  766|   		res = -EINVAL;
#  767|-> 		pw_log_error("invalid source.port");
#  768|   		goto out;
#  769|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1735]
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/6)
#  768|   		goto out;
#  769|   	}
#  770|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  771|   		str = DEFAULT_SOURCE_IP;
#  772|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1736]
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  768|   		goto out;
#  769|   	}
#  770|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  771|   		str = DEFAULT_SOURCE_IP;
#  772|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1737]
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/7)
#  771|   		str = DEFAULT_SOURCE_IP;
#  772|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {
#  773|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  774|   		goto out;
#  775|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1738]
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-rtp-source.c:773:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/1)
#  771|   		str = DEFAULT_SOURCE_IP;
#  772|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {
#  773|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  774|   		goto out;
#  775|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1739]
pipewire-1.5.81/src/modules/module-rtp-source.c:777:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:777:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/1)
#  775|   	}
#  776|   	pw_net_get_ip(&impl->src_addr, addr, sizeof(addr), NULL, NULL);
#  777|-> 	pw_properties_set(stream_props, "rtp.source.ip", addr);
#  778|   	pw_properties_setf(stream_props, "rtp.source.port", "%u", impl->src_port);
#  779|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1740]
pipewire-1.5.81/src/modules/module-rtp-source.c:778:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:778:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/1)
#  776|   	pw_net_get_ip(&impl->src_addr, addr, sizeof(addr), NULL, NULL);
#  777|   	pw_properties_set(stream_props, "rtp.source.ip", addr);
#  778|-> 	pw_properties_setf(stream_props, "rtp.source.port", "%u", impl->src_port);
#  779|   
#  780|   	header_size = impl->src_addr.ss_family == AF_INET ?

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1741]
pipewire-1.5.81/src/modules/module-rtp-source.c:783:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:783:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/1)
#  781|                           IP4_HEADER_SIZE : IP6_HEADER_SIZE;
#  782|   	header_size += UDP_HEADER_SIZE;
#  783|-> 	pw_properties_setf(stream_props, "net.header", "%u", header_size);
#  784|   
#  785|   	ts_offset = pw_properties_get_int64(props, "sess.ts-offset", DEFAULT_TS_OFFSET);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1742]
pipewire-1.5.81/src/modules/module-rtp-source.c:787:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:786:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:787:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:787:29: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/1)
#  785|   	ts_offset = pw_properties_get_int64(props, "sess.ts-offset", DEFAULT_TS_OFFSET);
#  786|   	if (ts_offset == -1)
#  787|-> 		ts_offset = pw_rand32();
#  788|   	pw_properties_setf(stream_props, "rtp.receiver-ts-offset", "%u", (uint32_t)ts_offset);
#  789|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1743]
pipewire-1.5.81/src/modules/module-rtp-source.c:788:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:786:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:788:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:788:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1)
#  786|   	if (ts_offset == -1)
#  787|   		ts_offset = pw_rand32();
#  788|-> 	pw_properties_setf(stream_props, "rtp.receiver-ts-offset", "%u", (uint32_t)ts_offset);
#  789|   
#  790|   	impl->always_process = pw_properties_get_bool(stream_props,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1744]
pipewire-1.5.81/src/modules/module-rtp-source.c:798:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:798:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/1)
#  796|   	/* Because we don't know the stream receiving state at the start, we try to fake it
#  797|   	 * till we make it (or get timed out) */
#  798|-> 	pw_properties_set(stream_props, "rtp.receiving", "true");
#  799|   
#  800|   	impl->cleanup_interval = pw_properties_get_uint32(props,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1745]
pipewire-1.5.81/src/modules/module-rtp-source.c:803:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:803:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/1)
#  801|   			"cleanup.sec", DEFAULT_CLEANUP_SEC);
#  802|   
#  803|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  804|   	if (impl->core == NULL) {
#  805|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1746]
pipewire-1.5.81/src/modules/module-rtp-source.c:805:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:804:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:805:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:805:23: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/1)
#  803|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  804|   	if (impl->core == NULL) {
#  805|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  806|   		impl->core = pw_context_connect(impl->context,
#  807|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1747]
pipewire-1.5.81/src/modules/module-rtp-source.c:806:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:804:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:805:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:806:30: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/1)
#  804|   	if (impl->core == NULL) {
#  805|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  806|-> 		impl->core = pw_context_connect(impl->context,
#  807|   				pw_properties_new(
#  808|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1748]
pipewire-1.5.81/src/modules/module-rtp-source.c:815:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:813:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:814:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:815:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:815:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:815:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/1)
#  813|   	if (impl->core == NULL) {
#  814|   		res = -errno;
#  815|-> 		pw_log_error("can't connect: %m");
#  816|   		goto out;
#  817|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1749]
pipewire-1.5.81/src/modules/module-rtp-source.c:819:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:813:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:819:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:819:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/1)
#  817|   	}
#  818|   
#  819|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
#  820|   			&impl->core_proxy_listener,
#  821|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1750]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  160|   	spa_list_init(&this->streams);
#  161|   
#  162|-> 	pw_log_debug(NAME" %p: new", this);
#  163|   
#  164|   	if (!properties)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1751]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:165:30: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_true: following ‘true’ branch (when ‘properties’ is NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:165:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:165:30: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  163|   
#  164|   	if (!properties)
#  165|-> 		properties = pw_properties_new(NULL, NULL);
#  166|   	if (!properties)
#  167|   		goto no_mem;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1752]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:169:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:169:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  167|   		goto no_mem;
#  168|   
#  169|-> 	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  170|   			pw_impl_client_get_info(owner)->id);
#  171|   	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1753]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:170:25: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:170:25: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  168|   
#  169|   	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  170|-> 			pw_impl_client_get_info(owner)->id);
#  171|   	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  172|   			pw_impl_factory_get_info(factory)->id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1754]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:171:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:171:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  169|   	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  170|   			pw_impl_client_get_info(owner)->id);
#  171|-> 	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  172|   			pw_impl_factory_get_info(factory)->id);
#  173|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1755]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:172:25: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:172:25: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  170|   			pw_impl_client_get_info(owner)->id);
#  171|   	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  172|-> 			pw_impl_factory_get_info(factory)->id);
#  173|   
#  174|   	this->resource = pw_resource_new(owner, new_id, PW_PERM_ALL, type, version, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1756]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:174:26: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:174:26: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  172|   			pw_impl_factory_get_info(factory)->id);
#  173|   
#  174|-> 	this->resource = pw_resource_new(owner, new_id, PW_PERM_ALL, type, version, 0);
#  175|   	if (this->resource == NULL)
#  176|   		goto no_mem;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1757]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:178:13: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:175:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:178:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:178:13: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  176|   		goto no_mem;
#  177|   
#  178|-> 	if (endpoint_init(&this->endpoint, this, context, properties) < 0)
#  179|   		goto no_mem;
#  180|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1758]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:189:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:156:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:157:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:160:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:162:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:164:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:175:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:176:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/client-endpoint.c:189:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  187|   
#  188|         no_mem:
#  189|-> 	pw_properties_free(properties);
#  190|   	if (this && this->resource)
#  191|   		pw_resource_destroy(this->resource);

Error: CPPCHECK_WARNING (CWE-190): [#def1759]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:62: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   60|   		if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#   61|   			pw_log_debug(NAME" %p: %d param %u", this, seq, index);
#   62|-> 			pw_endpoint_stream_resource_param(resource, seq, id, index, next, result);
#   63|   			count++;
#   64|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1760]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:98: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   96|   	struct endpoint_stream *this = data->stream;
#   97|   
#   98|-> 	pw_client_endpoint_resource_set_param(this->client_ep->resource,
#   99|   						id, flags, param);
#  100|   

Error: CPPCHECK_WARNING (CWE-190): [#def1761]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:128: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  126|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  127|   		if (data->subscribe_ids[i] == d->id) {
#  128|-> 			pw_endpoint_stream_resource_param(resource, 1,
#  129|   				d->id, d->index, d->next, d->param);
#  130|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1762]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   {
#  156|   	struct endpoint_stream *this = data;
#  157|-> 	pw_endpoint_stream_resource_info(resource, &this->info);
#  158|   	return 0;
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1763]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:161:5: enter_function: entry to ‘endpoint_stream_update’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:167:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:170:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:175:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:180:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:181:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:187:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: call_function: calling ‘endpoint_stream_notify_subscribed’ from ‘endpoint_stream_update’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: return_function: returning to ‘endpoint_stream_update’ from ‘endpoint_stream_notify_subscribed’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:43: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:55: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:55: call_function: calling ‘spa_pod_copy’ from ‘endpoint_stream_update’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:55: return_function: returning to ‘endpoint_stream_update’ from ‘spa_pod_copy’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: danger: ‘<unknown>’ leaks here; was allocated at [(24)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/23)
#  189|   		for (i = 0; i < this->n_params; i++) {
#  190|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  191|-> 			endpoint_stream_notify_subscribed(this, i, i+1);
#  192|   		}
#  193|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1764]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:262: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  260|   
#  261|   	this->info.change_mask = PW_ENDPOINT_STREAM_CHANGE_MASK_ALL;
#  262|-> 	pw_endpoint_stream_resource_info(resource, &this->info);
#  263|   	this->info.change_mask = 0;
#  264|   

Error: CPPCHECK_WARNING (CWE-190): [#def1765]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:64: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   62|   		if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#   63|   			pw_log_debug(NAME" %p: %d param %u", this, seq, index);
#   64|-> 			pw_endpoint_resource_param(resource, seq, id, index, next, result);
#   65|   			count++;
#   66|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1766]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:101: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   99|   
#  100|   	pw_log_debug("%p", this);
#  101|-> 	pw_client_endpoint_resource_set_param(this->client_ep->resource,
#  102|   						id, flags, param);
#  103|   

Error: CPPCHECK_WARNING (CWE-190): [#def1767]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:114: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  112|   
#  113|   	pw_log_debug("%p", this);
#  114|-> 	pw_client_endpoint_resource_create_link(this->client_ep->resource,
#  115|   						props);
#  116|   

Error: CPPCHECK_WARNING (CWE-190): [#def1768]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:145: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  143|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  144|   		if (data->subscribe_ids[i] == d->id) {
#  145|-> 			pw_endpoint_resource_param(resource, 1,
#  146|   				d->id, d->index, d->next, d->param);
#  147|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1769]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:174: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  172|   {
#  173|   	struct endpoint *this = data;
#  174|-> 	pw_endpoint_resource_info(resource, &this->info);
#  175|   	return 0;
#  176|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1770]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:178:5: enter_function: entry to ‘endpoint_update’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:184:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:187:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:192:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:197:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:198:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:204:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:206:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:207:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: call_function: calling ‘endpoint_notify_subscribed’ from ‘endpoint_update’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: return_function: returning to ‘endpoint_update’ from ‘endpoint_notify_subscribed’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:206:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:207:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:207:43: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:207:55: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:207:55: call_function: calling ‘spa_pod_copy’ from ‘endpoint_update’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:207:55: return_function: returning to ‘endpoint_update’ from ‘spa_pod_copy’
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: danger: ‘<unknown>’ leaks here; was allocated at [(24)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/23)
#  206|   		for (i = 0; i < this->n_params; i++) {
#  207|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  208|-> 			endpoint_notify_subscribed(this, i, i+1);
#  209|   		}
#  210|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1771]
pipewire-1.5.81/src/modules/module-session-manager/client-endpoint/endpoint.c:284: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  282|   
#  283|   	this->info.change_mask = PW_ENDPOINT_CHANGE_MASK_ALL;
#  284|-> 	pw_endpoint_resource_info(resource, &this->info);
#  285|   	this->info.change_mask = 0;
#  286|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1772]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  159|   	spa_list_init(&this->links);
#  160|   
#  161|-> 	pw_log_debug(NAME" %p: new", this);
#  162|   
#  163|   	if (!properties)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1773]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:164:30: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_true: following ‘true’ branch (when ‘properties’ is NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:164:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:164:30: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  162|   
#  163|   	if (!properties)
#  164|-> 		properties = pw_properties_new(NULL, NULL);
#  165|   	if (!properties)
#  166|   		goto no_mem;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1774]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:168:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:168:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  166|   		goto no_mem;
#  167|   
#  168|-> 	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  169|   			pw_impl_client_get_info(owner)->id);
#  170|   	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1775]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:169:25: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:169:25: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  167|   
#  168|   	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  169|-> 			pw_impl_client_get_info(owner)->id);
#  170|   	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  171|   			pw_impl_factory_get_info(factory)->id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1776]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:170:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:170:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  168|   	pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  169|   			pw_impl_client_get_info(owner)->id);
#  170|-> 	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  171|   			pw_impl_factory_get_info(factory)->id);
#  172|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1777]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:171:25: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:171:25: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  169|   			pw_impl_client_get_info(owner)->id);
#  170|   	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  171|-> 			pw_impl_factory_get_info(factory)->id);
#  172|   
#  173|   	this->resource = pw_resource_new(owner, new_id, PW_PERM_ALL, type, version, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1778]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:173:26: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:173:26: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  171|   			pw_impl_factory_get_info(factory)->id);
#  172|   
#  173|-> 	this->resource = pw_resource_new(owner, new_id, PW_PERM_ALL, type, version, 0);
#  174|   	if (this->resource == NULL)
#  175|   		goto no_mem;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1779]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:177:13: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:174:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:177:13: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:177:13: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  175|   		goto no_mem;
#  176|   
#  177|-> 	if (session_init(&this->session, this, context, properties) < 0)
#  178|   		goto no_mem;
#  179|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1780]
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:188:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:155:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:156:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:159:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:161:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:163:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:174:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:175:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/client-session.c:188:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  186|   
#  187|         no_mem:
#  188|-> 	pw_properties_free(properties);
#  189|   	if (this && this->resource)
#  190|   		pw_resource_destroy(this->resource);

Error: CPPCHECK_WARNING (CWE-190): [#def1781]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:62: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   60|   		if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#   61|   			pw_log_debug(NAME" %p: %d param %u", this, seq, index);
#   62|-> 			pw_endpoint_link_resource_param(resource, seq, id, index, next, result);
#   63|   			count++;
#   64|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1782]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:98: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   96|   	struct endpoint_link *this = data->link;
#   97|   
#   98|-> 	pw_client_session_resource_set_param(this->client_sess->resource,
#   99|   						id, flags, param);
#  100|   

Error: CPPCHECK_WARNING (CWE-190): [#def1783]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  108|   	struct endpoint_link *this = data->link;
#  109|   
#  110|-> 	pw_client_session_resource_link_request_state(this->client_sess->resource,
#  111|   						      this->id, state);
#  112|   

Error: CPPCHECK_WARNING (CWE-190): [#def1784]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:141: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  139|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  140|   		if (data->subscribe_ids[i] == d->id) {
#  141|-> 			pw_endpoint_link_resource_param(resource, 1,
#  142|   				d->id, d->index, d->next, d->param);
#  143|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1785]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:170: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  168|   {
#  169|   	struct endpoint_link *this = data;
#  170|-> 	pw_endpoint_link_resource_info(resource, &this->info);
#  171|   	return 0;
#  172|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1786]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:204:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:174:5: enter_function: entry to ‘endpoint_link_update’
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:180:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:183:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:188:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:193:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:194:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:200:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:202:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:203:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:204:25: call_function: calling ‘endpoint_link_notify_subscribed’ from ‘endpoint_link_update’
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:204:25: return_function: returning to ‘endpoint_link_update’ from ‘endpoint_link_notify_subscribed’
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:202:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:203:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:203:43: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:203:55: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:203:55: call_function: calling ‘spa_pod_copy’ from ‘endpoint_link_update’
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:203:55: return_function: returning to ‘endpoint_link_update’ from ‘spa_pod_copy’
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:204:25: danger: ‘<unknown>’ leaks here; was allocated at [(24)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/23)
#  202|   		for (i = 0; i < this->n_params; i++) {
#  203|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  204|-> 			endpoint_link_notify_subscribed(this, i, i+1);
#  205|   		}
#  206|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1787]
pipewire-1.5.81/src/modules/module-session-manager/client-session/endpoint-link.c:280: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  278|   
#  279|   	this->info.change_mask = PW_ENDPOINT_LINK_CHANGE_MASK_ALL;
#  280|-> 	pw_endpoint_link_resource_info(resource, &this->info);
#  281|   	this->info.change_mask = 0;
#  282|   

Error: CPPCHECK_WARNING (CWE-190): [#def1788]
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:62: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   60|   		if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#   61|   			pw_log_debug(NAME" %p: %d param %u", this, seq, index);
#   62|-> 			pw_session_resource_param(resource, seq, id, index, next, result);
#   63|   			count++;
#   64|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1789]
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:98: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   96|   	struct session *this = data->session;
#   97|   
#   98|-> 	pw_client_session_resource_set_param(this->client_sess->resource,
#   99|   						id, flags, param);
#  100|   

Error: CPPCHECK_WARNING (CWE-190): [#def1790]
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:128: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  126|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  127|   		if (data->subscribe_ids[i] == d->id) {
#  128|-> 			pw_session_resource_param(resource, 1,
#  129|   				d->id, d->index, d->next, d->param);
#  130|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1791]
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   {
#  156|   	struct session *this = data;
#  157|-> 	pw_session_resource_info(resource, &this->info);
#  158|   	return 0;
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1792]
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:161:5: enter_function: entry to ‘session_update’
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:167:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:170:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:175:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:180:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:181:28: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:187:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:190:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:191:25: call_function: calling ‘session_notify_subscribed’ from ‘session_update’
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:191:25: return_function: returning to ‘session_update’ from ‘session_notify_subscribed’
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:190:49: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:190:43: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:190:55: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:190:55: call_function: calling ‘spa_pod_copy’ from ‘session_update’
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:190:55: return_function: returning to ‘session_update’ from ‘spa_pod_copy’
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:191:25: danger: ‘<unknown>’ leaks here; was allocated at [(24)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/23)
#  189|   		for (i = 0; i < this->n_params; i++) {
#  190|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  191|-> 			session_notify_subscribed(this, i, i+1);
#  192|   		}
#  193|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1793]
pipewire-1.5.81/src/modules/module-session-manager/client-session/session.c:254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  252|   
#  253|   	this->info.change_mask = PW_SESSION_CHANGE_MASK_ALL;
#  254|-> 	pw_session_resource_info(resource, &this->info);
#  255|   	this->info.change_mask = 0;
#  256|   

Error: CPPCHECK_WARNING (CWE-190): [#def1794]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  108|   			if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#  109|   				pw_log_debug(NAME" %p: %d param %u", impl, seq, index);
#  110|-> 				pw_endpoint_link_resource_param(d->resource, seq, id, index, next, result);
#  111|   				count++;
#  112|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def1795]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  146|   	/* store only on the implementation; our cache will be updated
#  147|   	   by the param event, since we are subscribed */
#  148|-> 	pw_endpoint_link_set_param(impl->link, id, flags, param);
#  149|   	return 0;
#  150|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1796]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:156: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  154|   	struct resource_data *d = object;
#  155|   	struct impl *impl = d->impl;
#  156|-> 	pw_endpoint_link_request_state(impl->link, state);
#  157|   	return 0;
#  158|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1797]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:193: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  191|   
#  192|   	impl->cached_info->change_mask = PW_ENDPOINT_LINK_CHANGE_MASK_ALL;
#  193|-> 	pw_endpoint_link_resource_info(resource, impl->cached_info);
#  194|   	impl->cached_info->change_mask = 0;
#  195|   

Error: CPPCHECK_WARNING (CWE-190): [#def1798]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:266: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  264|   {
#  265|   	const struct pw_endpoint_link_info *info = data;
#  266|-> 	pw_endpoint_link_resource_info(resource, info);
#  267|   	return 0;
#  268|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1799]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:297: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pdata
#  295|   		for (i = 0; i < n_changed_ids; i++) {
#  296|   			struct param_data *pdata = calloc(1, sizeof(struct param_data));
#  297|-> 			pdata->id = changed_ids[i];
#  298|   			pw_array_init(&pdata->params, sizeof(void*));
#  299|   			spa_list_append(&impl->cached_params, &pdata->link);

Error: CPPCHECK_WARNING (CWE-190): [#def1800]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:303: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  301|   
#  302|   		/* subscribe to impl */
#  303|-> 		pw_endpoint_link_subscribe_params(impl->link, changed_ids, n_changed_ids);
#  304|   
#  305|   		/* register asynchronously on the pong event */

Error: CPPCHECK_WARNING (CWE-190): [#def1801]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:328: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  326|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  327|   		if (data->subscribe_ids[i] == args->id) {
#  328|-> 			pw_endpoint_link_resource_param(resource, 1,
#  329|   				args->id, args->index, args->next, args->param);
#  330|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1802]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:381:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:375:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:376:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:381:24: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:381:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  379|   	}
#  380|   
#  381|-> 	impl->global = pw_global_new(context,
#  382|   			PW_TYPE_INTERFACE_EndpointLink,
#  383|   			PW_VERSION_ENDPOINT_LINK,

Error: CPPCHECK_WARNING (CWE-190): [#def1803]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:404: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  402|   
#  403|   	/* handle implementation events -> cache + client resources */
#  404|-> 	pw_endpoint_link_add_listener(impl->link,
#  405|   			&impl->link_listener,
#  406|   			&link_events, impl);

Error: CPPCHECK_WARNING (CWE-190): [#def1804]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  108|   			if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#  109|   				pw_log_debug(NAME" %p: %d param %u", impl, seq, index);
#  110|-> 				pw_endpoint_stream_resource_param(d->resource, seq, id, index, next, result);
#  111|   				count++;
#  112|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def1805]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  146|   	/* store only on the implementation; our cache will be updated
#  147|   	   by the param event, since we are subscribed */
#  148|-> 	pw_endpoint_stream_set_param(impl->stream, id, flags, param);
#  149|   	return 0;
#  150|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1806]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:184: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  182|   
#  183|   	impl->cached_info->change_mask = PW_ENDPOINT_STREAM_CHANGE_MASK_ALL;
#  184|-> 	pw_endpoint_stream_resource_info(resource, impl->cached_info);
#  185|   	impl->cached_info->change_mask = 0;
#  186|   

Error: CPPCHECK_WARNING (CWE-190): [#def1807]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:257: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  255|   {
#  256|   	const struct pw_endpoint_stream_info *info = data;
#  257|-> 	pw_endpoint_stream_resource_info(resource, info);
#  258|   	return 0;
#  259|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1808]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:288: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pdata
#  286|   		for (i = 0; i < n_changed_ids; i++) {
#  287|   			struct param_data *pdata = calloc(1, sizeof(struct param_data));
#  288|-> 			pdata->id = changed_ids[i];
#  289|   			pw_array_init(&pdata->params, sizeof(void*));
#  290|   			spa_list_append(&impl->cached_params, &pdata->link);

Error: CPPCHECK_WARNING (CWE-190): [#def1809]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:294: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  292|   
#  293|   		/* subscribe to impl */
#  294|-> 		pw_endpoint_stream_subscribe_params(impl->stream, changed_ids, n_changed_ids);
#  295|   
#  296|   		/* register asynchronously on the pong event */

Error: CPPCHECK_WARNING (CWE-190): [#def1810]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:319: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  317|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  318|   		if (data->subscribe_ids[i] == args->id) {
#  319|-> 			pw_endpoint_stream_resource_param(resource, 1,
#  320|   				args->id, args->index, args->next, args->param);
#  321|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1811]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:372:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:366:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:367:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:372:24: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:372:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  370|   	}
#  371|   
#  372|-> 	impl->global = pw_global_new(context,
#  373|   			PW_TYPE_INTERFACE_EndpointStream,
#  374|   			PW_VERSION_ENDPOINT_STREAM,

Error: CPPCHECK_WARNING (CWE-190): [#def1812]
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:395: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  393|   
#  394|   	/* handle implementation events -> cache + client resources */
#  395|-> 	pw_endpoint_stream_add_listener(impl->stream,
#  396|   			&impl->stream_listener,
#  397|   			&stream_events, impl);

Error: CPPCHECK_WARNING (CWE-190): [#def1813]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  108|   			if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#  109|   				pw_log_debug(NAME" %p: %d param %u", impl, seq, index);
#  110|-> 				pw_endpoint_resource_param(d->resource, seq, id, index, next, result);
#  111|   				count++;
#  112|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def1814]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  146|   	/* store only on the implementation; our cache will be updated
#  147|   	   by the param event, since we are subscribed */
#  148|-> 	pw_endpoint_set_param(impl->endpoint, id, flags, param);
#  149|   	return 0;
#  150|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1815]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:156: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  154|   	struct resource_data *d = object;
#  155|   	struct impl *impl = d->impl;
#  156|-> 	pw_endpoint_create_link(impl->endpoint, props);
#  157|   	return 0;
#  158|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1816]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:193: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  191|   
#  192|   	impl->cached_info->change_mask = PW_ENDPOINT_CHANGE_MASK_ALL;
#  193|-> 	pw_endpoint_resource_info(resource, impl->cached_info);
#  194|   	impl->cached_info->change_mask = 0;
#  195|   

Error: CPPCHECK_WARNING (CWE-190): [#def1817]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:266: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  264|   {
#  265|   	const struct pw_endpoint_info *info = data;
#  266|-> 	pw_endpoint_resource_info(resource, info);
#  267|   	return 0;
#  268|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1818]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:297: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pdata
#  295|   		for (i = 0; i < n_changed_ids; i++) {
#  296|   			struct param_data *pdata = calloc(1, sizeof(struct param_data));
#  297|-> 			pdata->id = changed_ids[i];
#  298|   			pw_array_init(&pdata->params, sizeof(void*));
#  299|   			spa_list_append(&impl->cached_params, &pdata->link);

Error: CPPCHECK_WARNING (CWE-190): [#def1819]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:303: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  301|   
#  302|   		/* subscribe to impl */
#  303|-> 		pw_endpoint_subscribe_params(impl->endpoint, changed_ids, n_changed_ids);
#  304|   
#  305|   		/* register asynchronously on the pong event */

Error: CPPCHECK_WARNING (CWE-190): [#def1820]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:328: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  326|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  327|   		if (data->subscribe_ids[i] == args->id) {
#  328|-> 			pw_endpoint_resource_param(resource, 1,
#  329|   				args->id, args->index, args->next, args->param);
#  330|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1821]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:381:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:375:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:376:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:381:24: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:381:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  379|   	}
#  380|   
#  381|-> 	impl->global = pw_global_new(context,
#  382|   			PW_TYPE_INTERFACE_Endpoint,
#  383|   			PW_VERSION_ENDPOINT,

Error: CPPCHECK_WARNING (CWE-190): [#def1822]
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:404: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  402|   
#  403|   	/* handle implementation events -> cache + client resources */
#  404|-> 	pw_endpoint_add_listener(impl->endpoint,
#  405|   			&impl->endpoint_listener,
#  406|   			&endpoint_events, impl);

Error: CPPCHECK_WARNING (CWE-190): [#def1823]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:465: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  463|   		return -EINVAL;
#  464|   
#  465|-> 	return pw_proxy_notify(proxy, struct pw_client_endpoint_events,
#  466|   				set_session_id, 0, id);
#  467|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1824]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:484: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  482|   		return -EINVAL;
#  483|   
#  484|-> 	return pw_proxy_notify(proxy, struct pw_client_endpoint_events,
#  485|   				set_param, 0, id, flags, param);
#  486|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1825]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:504: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  502|   		return -EINVAL;
#  503|   
#  504|-> 	return pw_proxy_notify(proxy, struct pw_client_endpoint_events,
#  505|   				stream_set_param, 0, stream_id, id, flags, param);
#  506|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1826]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:520: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  518|   	parse_dict(&prs, &f, &props);
#  519|   
#  520|-> 	return pw_proxy_notify(proxy, struct pw_client_endpoint_events,
#  521|   				create_link, 0, &props);
#  522|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1827]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:561: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  559|   	}
#  560|   
#  561|-> 	return pw_resource_notify(resource, struct pw_client_endpoint_methods,
#  562|   			update, 0, change_mask, n_params, params, infop);
#  563|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1828]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:603: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  601|   	}
#  602|   
#  603|-> 	return pw_resource_notify(resource, struct pw_client_endpoint_methods,
#  604|   			stream_update, 0, stream_id, change_mask, n_params, params, infop);
#  605|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1829]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:801: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  799|   		return -EINVAL;
#  800|   
#  801|-> 	return pw_proxy_notify(proxy, struct pw_client_session_events,
#  802|   				set_param, 0, id, flags, param);
#  803|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1830]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:821: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  819|   		return -EINVAL;
#  820|   
#  821|-> 	return pw_proxy_notify(proxy, struct pw_client_session_events,
#  822|   				link_set_param, 0, link_id, id, flags, param);
#  823|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1831]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:838: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  836|   		return -EINVAL;
#  837|   
#  838|-> 	return pw_proxy_notify(proxy, struct pw_client_session_events,
#  839|   				link_request_state, 0, link_id, state);
#  840|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1832]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:879: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  877|   	}
#  878|   
#  879|-> 	return pw_resource_notify(resource, struct pw_client_session_methods,
#  880|   			update, 0, change_mask, n_params, params, infop);
#  881|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1833]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:921: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  919|   	}
#  920|   
#  921|-> 	return pw_resource_notify(resource, struct pw_client_session_methods,
#  922|   			link_update, 0, link_id, change_mask, n_params, params, infop);
#  923|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1834]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1209: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1207|   	demarshal_pw_endpoint_link_info(&prs, &f, &info);
# 1208|   
# 1209|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_link_events,
# 1210|   				info, 0, &info);
# 1211|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1835]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1226: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1224|   	demarshal_pw_endpoint_link_info(&prs, &f, &info);
# 1225|   
# 1226|-> 	return pw_resource_notify(resource, struct pw_endpoint_link_events,
# 1227|   				info, 0, &info);
# 1228|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1836]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1248: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1246|   		return -EINVAL;
# 1247|   
# 1248|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_link_events,
# 1249|   				param, 0, seq, id, index, next, param);
# 1250|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1837]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1270: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1268|   		return -EINVAL;
# 1269|   
# 1270|-> 	return pw_resource_notify(resource, struct pw_endpoint_link_events,
# 1271|   				param, 0, seq, id, index, next, param);
# 1272|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1840]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1288|   		return -EINVAL;
# 1289|   
# 1290|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_link_methods,
# 1291|   				subscribe_params, 0, ids, n_ids);
# 1292|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1843]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1310: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1308|   		return -EINVAL;
# 1309|   
# 1310|-> 	return pw_resource_notify(resource, struct pw_endpoint_link_methods,
# 1311|   				subscribe_params, 0, ids, n_ids);
# 1312|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1844]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1332: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1330|   		return -EINVAL;
# 1331|   
# 1332|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_link_methods,
# 1333|   				enum_params, 0, seq, id, index, num, filter);
# 1334|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1845]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1354: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1352|   		return -EINVAL;
# 1353|   
# 1354|-> 	return pw_resource_notify(resource, struct pw_endpoint_link_methods,
# 1355|   				enum_params, 0, seq, id, index, num, filter);
# 1356|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1846]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1373: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1371|   		return -EINVAL;
# 1372|   
# 1373|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_link_methods,
# 1374|   				set_param, 0, id, flags, param);
# 1375|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1847]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1392: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1390|   		return -EINVAL;
# 1391|   
# 1392|-> 	return pw_resource_notify(resource, struct pw_endpoint_link_methods,
# 1393|   				set_param, 0, id, flags, param);
# 1394|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1848]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1408: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1406|   		return -EINVAL;
# 1407|   
# 1408|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_link_methods,
# 1409|   				request_state, 0, state);
# 1410|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1849]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1424: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1422|   		return -EINVAL;
# 1423|   
# 1424|-> 	return pw_resource_notify(resource, struct pw_endpoint_link_methods,
# 1425|   				request_state, 0, state);
# 1426|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1850]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1731: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1729|   	demarshal_pw_endpoint_stream_info(&prs, &f, &info);
# 1730|   
# 1731|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_stream_events,
# 1732|   				info, 0, &info);
# 1733|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1851]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1748: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1746|   	demarshal_pw_endpoint_stream_info(&prs, &f, &info);
# 1747|   
# 1748|-> 	return pw_resource_notify(resource, struct pw_endpoint_stream_events,
# 1749|   				info, 0, &info);
# 1750|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1852]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1770: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1768|   		return -EINVAL;
# 1769|   
# 1770|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_stream_events,
# 1771|   				param, 0, seq, id, index, next, param);
# 1772|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1853]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1792: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1790|   		return -EINVAL;
# 1791|   
# 1792|-> 	return pw_resource_notify(resource, struct pw_endpoint_stream_events,
# 1793|   				param, 0, seq, id, index, next, param);
# 1794|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1856]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1812: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1810|   		return -EINVAL;
# 1811|   
# 1812|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_stream_methods,
# 1813|   				subscribe_params, 0, ids, n_ids);
# 1814|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1859]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1832: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1830|   		return -EINVAL;
# 1831|   
# 1832|-> 	return pw_resource_notify(resource, struct pw_endpoint_stream_methods,
# 1833|   				subscribe_params, 0, ids, n_ids);
# 1834|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1860]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1854: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1852|   		return -EINVAL;
# 1853|   
# 1854|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_stream_methods,
# 1855|   				enum_params, 0, seq, id, index, num, filter);
# 1856|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1861]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1876: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1874|   		return -EINVAL;
# 1875|   
# 1876|-> 	return pw_resource_notify(resource, struct pw_endpoint_stream_methods,
# 1877|   				enum_params, 0, seq, id, index, num, filter);
# 1878|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1862]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1895: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1893|   		return -EINVAL;
# 1894|   
# 1895|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_stream_methods,
# 1896|   				set_param, 0, id, flags, param);
# 1897|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1863]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:1914: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1912|   		return -EINVAL;
# 1913|   
# 1914|-> 	return pw_resource_notify(resource, struct pw_endpoint_stream_methods,
# 1915|   				set_param, 0, id, flags, param);
# 1916|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1864]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2245: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2243|   	demarshal_pw_endpoint_info(&prs, &f, &info);
# 2244|   
# 2245|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_events,
# 2246|   				info, 0, &info);
# 2247|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1865]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2262: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2260|   	demarshal_pw_endpoint_info(&prs, &f, &info);
# 2261|   
# 2262|-> 	return pw_resource_notify(resource, struct pw_endpoint_events,
# 2263|   				info, 0, &info);
# 2264|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1866]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2284: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2282|   		return -EINVAL;
# 2283|   
# 2284|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_events,
# 2285|   				param, 0, seq, id, index, next, param);
# 2286|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1867]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2306: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2304|   		return -EINVAL;
# 2305|   
# 2306|-> 	return pw_resource_notify(resource, struct pw_endpoint_events,
# 2307|   				param, 0, seq, id, index, next, param);
# 2308|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1870]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2326: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2324|   		return -EINVAL;
# 2325|   
# 2326|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_methods,
# 2327|   				subscribe_params, 0, ids, n_ids);
# 2328|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1873]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2346: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2344|   		return -EINVAL;
# 2345|   
# 2346|-> 	return pw_resource_notify(resource, struct pw_endpoint_methods,
# 2347|   				subscribe_params, 0, ids, n_ids);
# 2348|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1874]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2368: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2366|   		return -EINVAL;
# 2367|   
# 2368|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_methods,
# 2369|   				enum_params, 0, seq, id, index, num, filter);
# 2370|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1875]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2390: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2388|   		return -EINVAL;
# 2389|   
# 2390|-> 	return pw_resource_notify(resource, struct pw_endpoint_methods,
# 2391|   				enum_params, 0, seq, id, index, num, filter);
# 2392|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1876]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2409: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2407|   		return -EINVAL;
# 2408|   
# 2409|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_methods,
# 2410|   				set_param, 0, id, flags, param);
# 2411|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1877]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2428: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2426|   		return -EINVAL;
# 2427|   
# 2428|-> 	return pw_resource_notify(resource, struct pw_endpoint_methods,
# 2429|   				set_param, 0, id, flags, param);
# 2430|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1878]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2444: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2442|   	parse_dict(&prs, &f, &props);
# 2443|   
# 2444|-> 	return pw_proxy_notify(proxy, struct pw_endpoint_methods,
# 2445|   				create_link, 0, &props);
# 2446|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1879]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2460: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2458|   	parse_dict(&prs, &f, &props);
# 2459|   
# 2460|-> 	return pw_resource_notify(resource, struct pw_endpoint_methods,
# 2461|   				create_link, 0, &props);
# 2462|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1880]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2767: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2765|   	demarshal_pw_session_info(&prs, &f, &info);
# 2766|   
# 2767|-> 	return pw_proxy_notify(proxy, struct pw_session_events,
# 2768|   				info, 0, &info);
# 2769|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1881]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2784: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2782|   	demarshal_pw_session_info(&prs, &f, &info);
# 2783|   
# 2784|-> 	return pw_resource_notify(resource, struct pw_session_events,
# 2785|   				info, 0, &info);
# 2786|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1882]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2806: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2804|   		return -EINVAL;
# 2805|   
# 2806|-> 	return pw_proxy_notify(proxy, struct pw_session_events,
# 2807|   				param, 0, seq, id, index, next, param);
# 2808|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1883]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2828: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 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): [#def1884]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2845: error[uninitvar]: Uninitialized variable: csize
# 2843|   		return -EINVAL;
# 2844|   
# 2845|-> 	if (ctype != SPA_TYPE_Id || csize != sizeof(uint32_t))
# 2846|   		return -EINVAL;
# 2847|   

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

Error: CPPCHECK_WARNING (CWE-190): [#def1886]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2848: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2846|   		return -EINVAL;
# 2847|   
# 2848|-> 	return pw_proxy_notify(proxy, struct pw_session_methods,
# 2849|   				subscribe_params, 0, ids, n_ids);
# 2850|   }

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1889]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2868: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2866|   		return -EINVAL;
# 2867|   
# 2868|-> 	return pw_resource_notify(resource, struct pw_session_methods,
# 2869|   				subscribe_params, 0, ids, n_ids);
# 2870|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1890]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2890: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 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: CPPCHECK_WARNING (CWE-190): [#def1891]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2912: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 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: CPPCHECK_WARNING (CWE-190): [#def1892]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2931: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2929|   		return -EINVAL;
# 2930|   
# 2931|-> 	return pw_proxy_notify(proxy, struct pw_session_methods,
# 2932|   				set_param, 0, id, flags, param);
# 2933|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1893]
pipewire-1.5.81/src/modules/module-session-manager/protocol-native.c:2950: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2948|   		return -EINVAL;
# 2949|   
# 2950|-> 	return pw_resource_notify(resource, struct pw_session_methods,
# 2951|   				set_param, 0, id, flags, param);
# 2952|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1894]
pipewire-1.5.81/src/modules/module-session-manager/proxy-session-manager.c:56: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   54|   	pw_proxy_add_object_listener(proxy, &data->object_methods,
#   55|   			local_iface->cb.funcs, local_iface->cb.data);
#   56|-> 	pw_endpoint_add_listener(endpoint, &data->object_listener,
#   57|   			remote_iface->cb.funcs, remote_iface->cb.data);
#   58|   

Error: CPPCHECK_WARNING (CWE-190): [#def1895]
pipewire-1.5.81/src/modules/module-session-manager/proxy-session-manager.c:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   	pw_proxy_add_object_listener(proxy, &data->object_methods,
#   91|   			local_iface->cb.funcs, local_iface->cb.data);
#   92|-> 	pw_endpoint_stream_add_listener(endpoint_stream, &data->object_listener,
#   93|   			remote_iface->cb.funcs, remote_iface->cb.data);
#   94|   

Error: CPPCHECK_WARNING (CWE-190): [#def1896]
pipewire-1.5.81/src/modules/module-session-manager/proxy-session-manager.c:128: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  126|   	pw_proxy_add_object_listener(proxy, &data->object_methods,
#  127|   			local_iface->cb.funcs, local_iface->cb.data);
#  128|-> 	pw_endpoint_link_add_listener(endpoint_link, &data->object_listener,
#  129|   			remote_iface->cb.funcs, remote_iface->cb.data);
#  130|   

Error: CPPCHECK_WARNING (CWE-190): [#def1897]
pipewire-1.5.81/src/modules/module-session-manager/proxy-session-manager.c:164: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  162|   	pw_proxy_add_object_listener(proxy, &data->object_methods,
#  163|   			local_iface->cb.funcs, local_iface->cb.data);
#  164|-> 	pw_session_add_listener(session, &data->object_listener,
#  165|   			remote_iface->cb.funcs, remote_iface->cb.data);
#  166|   

Error: CPPCHECK_WARNING (CWE-190): [#def1898]
pipewire-1.5.81/src/modules/module-session-manager/session.c:110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  108|   			if (spa_pod_filter(&b.b, &result, param, filter) == 0) {
#  109|   				pw_log_debug(NAME" %p: %d param %u", impl, seq, index);
#  110|-> 				pw_session_resource_param(d->resource, seq, id, index, next, result);
#  111|   				count++;
#  112|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def1899]
pipewire-1.5.81/src/modules/module-session-manager/session.c:148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  146|   	/* store only on the implementation; our cache will be updated
#  147|   	   by the param event, since we are subscribed */
#  148|-> 	pw_session_set_param(impl->session, id, flags, param);
#  149|   	return 0;
#  150|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1900]
pipewire-1.5.81/src/modules/module-session-manager/session.c:184: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  182|   
#  183|   	impl->cached_info->change_mask = PW_SESSION_CHANGE_MASK_ALL;
#  184|-> 	pw_session_resource_info(resource, impl->cached_info);
#  185|   	impl->cached_info->change_mask = 0;
#  186|   

Error: CPPCHECK_WARNING (CWE-190): [#def1901]
pipewire-1.5.81/src/modules/module-session-manager/session.c:255: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  253|   {
#  254|   	const struct pw_session_info *info = data;
#  255|-> 	pw_session_resource_info(resource, info);
#  256|   	return 0;
#  257|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1902]
pipewire-1.5.81/src/modules/module-session-manager/session.c:286: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: pdata
#  284|   		for (i = 0; i < n_changed_ids; i++) {
#  285|   			struct param_data *pdata = calloc(1, sizeof(struct param_data));
#  286|-> 			pdata->id = changed_ids[i];
#  287|   			pw_array_init(&pdata->params, sizeof(void*));
#  288|   			spa_list_append(&impl->cached_params, &pdata->link);

Error: CPPCHECK_WARNING (CWE-190): [#def1903]
pipewire-1.5.81/src/modules/module-session-manager/session.c:292: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  290|   
#  291|   		/* subscribe to impl */
#  292|-> 		pw_session_subscribe_params(impl->session, changed_ids, n_changed_ids);
#  293|   
#  294|   		/* register asynchronously on the pong event */

Error: CPPCHECK_WARNING (CWE-190): [#def1904]
pipewire-1.5.81/src/modules/module-session-manager/session.c:317: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  315|   	for (i = 0; i < data->n_subscribe_ids; i++) {
#  316|   		if (data->subscribe_ids[i] == args->id) {
#  317|-> 			pw_session_resource_param(resource, 1,
#  318|   				args->id, args->index, args->next, args->param);
#  319|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1905]
pipewire-1.5.81/src/modules/module-session-manager/session.c:370:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-session-manager/session.c:364:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-session-manager/session.c:365:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-session-manager/session.c:370:24: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/session.c:370:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  368|   	}
#  369|   
#  370|-> 	impl->global = pw_global_new(context,
#  371|   			PW_TYPE_INTERFACE_Session,
#  372|   			PW_VERSION_SESSION,

Error: CPPCHECK_WARNING (CWE-190): [#def1906]
pipewire-1.5.81/src/modules/module-session-manager/session.c:393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  391|   
#  392|   	/* handle implementation events -> cache + client resources */
#  393|-> 	pw_session_add_listener(impl->session,
#  394|   			&impl->session_listener,
#  395|   			&session_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1907]
pipewire-1.5.81/src/modules/module-snapcast-discover.c:543:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*t.stream_name’
pipewire-1.5.81/src/modules/module-snapcast-discover.c:593:12: enter_function: entry to ‘rule_matched’
pipewire-1.5.81/src/modules/module-snapcast-discover.c:602:17: call_function: calling ‘create_stream’ from ‘rule_matched’
#  541|   	t->stream_name = strdup(str);
#  542|   
#  543|-> 	if ((str = pw_properties_get(props, "capture")) == NULL)
#  544|   		pw_properties_set(props, "capture", "true");
#  545|   	if ((str = pw_properties_get(props, "capture.props")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1908]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  105|   		goto error_properties;
#  106|   
#  107|-> 	pw_properties_setf(properties, PW_KEY_FACTORY_ID, "%d",
#  108|   			pw_global_get_id(pw_impl_factory_get_global(data->factory)));
#  109|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1909]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
#  108|   			pw_global_get_id(pw_impl_factory_get_global(data->factory)));
#  109|   
#  110|-> 	client = resource ? pw_resource_get_client(resource) : NULL;
#  111|   
#  112|   	if (client) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1910]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:112:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/4)
#  111|   
#  112|   	if (client) {
#  113|-> 		pw_properties_setf(properties, PW_KEY_CLIENT_ID, "%d",
#  114|   			pw_global_get_id(pw_impl_client_get_global(client)));
#  115|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1911]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:117:18: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:117:18: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/4)
#  115|   	}
#  116|   
#  117|-> 	device = pw_spa_device_load(context,
#  118|   				factory_name,
#  119|   				0,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1912]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/4)
#  125|   	}
#  126|   
#  127|-> 	nd = pw_spa_device_get_user_data(device);
#  128|   	nd->device = device;
#  129|   	spa_list_append(&data->device_list, &nd->link);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1913]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:131:9: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:131:9: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/4)
#  129|   	spa_list_append(&data->device_list, &nd->link);
#  130|   
#  131|-> 	pw_impl_device_add_listener(device, &nd->device_listener, &device_events, nd);
#  132|   
#  133|   	if (client) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1914]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:112:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:133:12: branch_true: following ‘true’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/4)
#  134|   		struct pw_resource *bound_resource;
#  135|   
#  136|-> 		res = pw_global_bind(pw_impl_device_get_global(device),
#  137|   				client,
#  138|   				PW_PERM_ALL, version,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1915]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:143:39: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:112:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:133:12: branch_true: following ‘true’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:140:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:143:39: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:143:39: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/4)
#  141|   			goto error_bind;
#  142|   
#  143|-> 		if ((bound_resource = pw_impl_client_find_resource(client, new_id)) == NULL)
#  144|   			goto error_bind;
#  145|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1916]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:146:17: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:112:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:133:12: branch_true: following ‘true’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:140:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:143:39: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:143:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:146:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:146:17: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/4)
#  144|   			goto error_bind;
#  145|   
#  146|-> 		pw_resource_add_listener(bound_resource, &nd->resource_listener, &resource_events, nd);
#  147|   	}
#  148|   	free(factory_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1917]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:156:9: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:123:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:156:9: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/4)
#  154|   	goto error_exit_cleanup;
#  155|   error_device:
#  156|-> 	pw_resource_errorf_id(resource, new_id, res,
#  157|   				"can't create device %s: %s", factory_name,
#  158|   				spa_strerror(res));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1918]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:161:9: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:112:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:133:12: branch_true: following ‘true’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:161:9: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/4)
#  159|   	goto error_exit;
#  160|   error_bind:
#  161|-> 	pw_resource_errorf_id(resource, new_id, res, "can't bind device");
#  162|   	pw_impl_device_destroy(device);
#  163|   	goto error_exit;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1919]
pipewire-1.5.81/src/modules/module-spa-device-factory.c:162:9: warning[-Wanalyzer-malloc-leak]: leak of ‘factory_name’
pipewire-1.5.81/src/modules/module-spa-device-factory.c:98:12: branch_false: following ‘false’ branch (when ‘properties’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:101:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:29: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:104:12: branch_false: following ‘false’ branch (when ‘factory_name’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:107:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:18: branch_true: following ‘true’ branch (when ‘resource’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:110:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:112:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:113:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:127:14: branch_false: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:133:12: branch_true: following ‘true’ branch (when ‘client’ is non-NULL)...
pipewire-1.5.81/src/modules/module-spa-device-factory.c:136:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-spa-device-factory.c:162:9: danger: ‘factory_name’ leaks here; was allocated at [(5)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/4)
#  160|   error_bind:
#  161|   	pw_resource_errorf_id(resource, new_id, res, "can't bind device");
#  162|-> 	pw_impl_device_destroy(device);
#  163|   	goto error_exit;
#  164|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1920]
pipewire-1.5.81/src/modules/module-vban-recv.c:652:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:696:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  650|   {
#  651|   	const char *str;
#  652|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  653|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  654|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1921]
pipewire-1.5.81/src/modules/module-vban-recv.c:653:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:696:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  651|   	const char *str;
#  652|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  653|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  654|   			pw_properties_set(impl->stream_props, key, str);
#  655|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1922]
pipewire-1.5.81/src/modules/module-vban-recv.c:654:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:696:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  652|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  653|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  654|-> 			pw_properties_set(impl->stream_props, key, str);
#  655|   	}
#  656|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1923]
pipewire-1.5.81/src/modules/module-vban-recv.c:676:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:676:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  674|   		args = "";
#  675|   
#  676|-> 	props = impl->props = pw_properties_new_string(args);
#  677|   	stream_props = impl->stream_props = pw_properties_new(NULL, NULL);
#  678|   	if (props == NULL || stream_props == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1924]
pipewire-1.5.81/src/modules/module-vban-recv.c:677:45: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:677:45: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  675|   
#  676|   	props = impl->props = pw_properties_new_string(args);
#  677|-> 	stream_props = impl->stream_props = pw_properties_new(NULL, NULL);
#  678|   	if (props == NULL || stream_props == NULL) {
#  679|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1925]
pipewire-1.5.81/src/modules/module-vban-recv.c:680:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:679:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:680:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:680:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:680:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  678|   	if (props == NULL || stream_props == NULL) {
#  679|   		res = -errno;
#  680|-> 		pw_log_error( "can't create properties: %m");
#  681|   		goto out;
#  682|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1926]
pipewire-1.5.81/src/modules/module-vban-recv.c:686:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:686:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/0)
#  684|   	impl->module = module;
#  685|   	impl->context = context;
#  686|-> 	impl->main_loop = pw_context_get_main_loop(context);
#  687|   	impl->timer_queue = pw_context_get_timer_queue(context);
#  688|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1927]
pipewire-1.5.81/src/modules/module-vban-recv.c:687:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:687:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/0)
#  685|   	impl->context = context;
#  686|   	impl->main_loop = pw_context_get_main_loop(context);
#  687|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
#  688|   	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  689|   	spa_list_init(&impl->streams);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1928]
pipewire-1.5.81/src/modules/module-vban-recv.c:688:27: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:688:27: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  686|   	impl->main_loop = pw_context_get_main_loop(context);
#  687|   	impl->timer_queue = pw_context_get_timer_queue(context);
#  688|-> 	impl->data_loop = pw_context_acquire_loop(context, &props->dict);
#  689|   	spa_list_init(&impl->streams);
#  690|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1929]
pipewire-1.5.81/src/modules/module-vban-recv.c:691:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:691:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  689|   	spa_list_init(&impl->streams);
#  690|   
#  691|-> 	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  692|   
#  693|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1930]
pipewire-1.5.81/src/modules/module-vban-recv.c:693:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:693:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  691|   	pw_properties_set(props, PW_KEY_NODE_LOOP_NAME, impl->data_loop->name);
#  692|   
#  693|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  694|   		pw_properties_update_string(stream_props, str, strlen(str));
#  695|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1931]
pipewire-1.5.81/src/modules/module-vban-recv.c:694:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:693:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:694:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:694:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  692|   
#  693|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  694|-> 		pw_properties_update_string(stream_props, str, strlen(str));
#  695|   
#  696|   	copy_props(impl, props, PW_KEY_NODE_LOOP_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1932]
pipewire-1.5.81/src/modules/module-vban-recv.c:709:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:709:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  707|   	copy_props(impl, props, "sess.latency.msec");
#  708|   
#  709|-> 	str = pw_properties_get(props, "local.ifname");
#  710|   	impl->ifname = str ? strdup(str) : NULL;
#  711|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1933]
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:710:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/6)
#  712|   	impl->src_port = pw_properties_get_uint32(props, "source.port", DEFAULT_SOURCE_PORT);
#  713|   	if (impl->src_port == 0) {
#  714|-> 		pw_log_error("invalid source.port");
#  715|   		goto out;
#  716|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1934]
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:710:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:714:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  712|   	impl->src_port = pw_properties_get_uint32(props, "source.port", DEFAULT_SOURCE_PORT);
#  713|   	if (impl->src_port == 0) {
#  714|-> 		pw_log_error("invalid source.port");
#  715|   		goto out;
#  716|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1935]
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:710:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: danger: ‘<unknown>’ leaks here; was allocated at [(7)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/6)
#  715|   		goto out;
#  716|   	}
#  717|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  718|   		str = DEFAULT_SOURCE_IP;
#  719|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1936]
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:710:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/21/codeFlows/0/threadFlows/0/locations/0)
#  715|   		goto out;
#  716|   	}
#  717|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  718|   		str = DEFAULT_SOURCE_IP;
#  719|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1937]
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:710:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:719:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: danger: ‘<unknown>’ leaks here; was allocated at [(8)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/7)
#  718|   		str = DEFAULT_SOURCE_IP;
#  719|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {
#  720|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  721|   		goto out;
#  722|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1938]
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:710:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:710:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:719:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-vban-recv.c:720:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/1)
#  718|   		str = DEFAULT_SOURCE_IP;
#  719|   	if ((res = pw_net_parse_address(str, impl->src_port, &impl->src_addr, &impl->src_len)) < 0) {
#  720|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  721|   		goto out;
#  722|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1939]
pipewire-1.5.81/src/modules/module-vban-recv.c:730:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:724:32: call_function: inlined call to ‘pw_properties_get_bool’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:730:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/1)
#  728|   			"cleanup.sec", DEFAULT_CLEANUP_SEC);
#  729|   
#  730|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  731|   	if (impl->core == NULL) {
#  732|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1940]
pipewire-1.5.81/src/modules/module-vban-recv.c:732:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:724:32: call_function: inlined call to ‘pw_properties_get_bool’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:731:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:732:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:732:23: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/1)
#  730|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  731|   	if (impl->core == NULL) {
#  732|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  733|   		impl->core = pw_context_connect(impl->context,
#  734|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1941]
pipewire-1.5.81/src/modules/module-vban-recv.c:733:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:724:32: call_function: inlined call to ‘pw_properties_get_bool’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:731:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:732:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:733:30: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/1)
#  731|   	if (impl->core == NULL) {
#  732|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  733|-> 		impl->core = pw_context_connect(impl->context,
#  734|   				pw_properties_new(
#  735|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1942]
pipewire-1.5.81/src/modules/module-vban-recv.c:746:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-recv.c:659:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:669:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-recv.c:670:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-recv.c:673:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:678:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:684:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:713:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:717:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-vban-recv.c:719:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:724:32: call_function: inlined call to ‘pw_properties_get_bool’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-recv.c:740:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-recv.c:746:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-recv.c:746:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/1)
#  744|   	}
#  745|   
#  746|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
#  747|   			&impl->core_proxy_listener,
#  748|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1943]
pipewire-1.5.81/src/modules/module-vban-send.c:301:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:515:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  299|   {
#  300|   	if (impl->stream)
#  301|-> 		vban_stream_destroy(impl->stream);
#  302|   
#  303|   	if (impl->core && impl->do_disconnect)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1944]
pipewire-1.5.81/src/modules/module-vban-send.c:304:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:515:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  302|   
#  303|   	if (impl->core && impl->do_disconnect)
#  304|-> 		pw_core_disconnect(impl->core);
#  305|   
#  306|   	if (impl->vban_fd != -1)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1945]
pipewire-1.5.81/src/modules/module-vban-send.c:307:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:515:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  305|   
#  306|   	if (impl->vban_fd != -1)
#  307|-> 		close(impl->vban_fd);
#  308|   
#  309|   	pw_properties_free(impl->stream_props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1946]
pipewire-1.5.81/src/modules/module-vban-send.c:309:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:378:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:515:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  307|   		close(impl->vban_fd);
#  308|   
#  309|-> 	pw_properties_free(impl->stream_props);
#  310|   	pw_properties_free(impl->props);
#  311|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1947]
pipewire-1.5.81/src/modules/module-vban-send.c:310:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:378:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:515:9: call_function: calling ‘impl_destroy’ from ‘pipewire__module_init’
#  308|   
#  309|   	pw_properties_free(impl->stream_props);
#  310|-> 	pw_properties_free(impl->props);
#  311|   
#  312|   	free(impl->ifname);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1948]
pipewire-1.5.81/src/modules/module-vban-send.c:348:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:417:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  346|   {
#  347|   	const char *str;
#  348|-> 	if ((str = pw_properties_get(props, key)) != NULL) {
#  349|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  350|   			pw_properties_set(impl->stream_props, key, str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1949]
pipewire-1.5.81/src/modules/module-vban-send.c:349:21: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:417:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  347|   	const char *str;
#  348|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  349|-> 		if (pw_properties_get(impl->stream_props, key) == NULL)
#  350|   			pw_properties_set(impl->stream_props, key, str);
#  351|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1950]
pipewire-1.5.81/src/modules/module-vban-send.c:350:25: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:417:9: call_function: calling ‘copy_props’ from ‘pipewire__module_init’
#  348|   	if ((str = pw_properties_get(props, key)) != NULL) {
#  349|   		if (pw_properties_get(impl->stream_props, key) == NULL)
#  350|-> 			pw_properties_set(impl->stream_props, key, str);
#  351|   	}
#  352|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1951]
pipewire-1.5.81/src/modules/module-vban-send.c:376:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:376:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/14/codeFlows/0/threadFlows/0/locations/0)
#  374|   		args = "";
#  375|   
#  376|-> 	props = pw_properties_new_string(args);
#  377|   	if (props == NULL) {
#  378|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1952]
pipewire-1.5.81/src/modules/module-vban-send.c:379:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:378:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:379:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:379:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:379:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/0)
#  377|   	if (props == NULL) {
#  378|   		res = -errno;
#  379|-> 		pw_log_error( "can't create properties: %m");
#  380|   		goto out;
#  381|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1953]
pipewire-1.5.81/src/modules/module-vban-send.c:384:24: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:384:24: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/16/codeFlows/0/threadFlows/0/locations/0)
#  382|   	impl->props = props;
#  383|   
#  384|-> 	stream_props = pw_properties_new(NULL, NULL);
#  385|   	if (stream_props == NULL) {
#  386|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1954]
pipewire-1.5.81/src/modules/module-vban-send.c:387:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:386:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:387:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:387:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:387:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/0)
#  385|   	if (stream_props == NULL) {
#  386|   		res = -errno;
#  387|-> 		pw_log_error("can't create properties: %m");
#  388|   		goto out;
#  389|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1955]
pipewire-1.5.81/src/modules/module-vban-send.c:394:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:394:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/18/codeFlows/0/threadFlows/0/locations/0)
#  392|   	impl->module = module;
#  393|   	impl->context = context;
#  394|-> 	impl->loop = pw_context_get_main_loop(context);
#  395|   
#  396|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1956]
pipewire-1.5.81/src/modules/module-vban-send.c:396:26: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:396:26: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/19/codeFlows/0/threadFlows/0/locations/0)
#  394|   	impl->loop = pw_context_get_main_loop(context);
#  395|   
#  396|-> 	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  397|   		pw_properties_setf(props, "sess.name", "%s-%d",
#  398|   				pw_get_host_name(), id);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1957]
pipewire-1.5.81/src/modules/module-vban-send.c:397:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:396:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:397:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:397:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/0)
#  395|   
#  396|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  397|-> 		pw_properties_setf(props, "sess.name", "%s-%d",
#  398|   				pw_get_host_name(), id);
#  399|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1958]
pipewire-1.5.81/src/modules/module-vban-send.c:399:26: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:399:26: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/22/codeFlows/0/threadFlows/0/locations/0)
#  397|   		pw_properties_setf(props, "sess.name", "%s-%d",
#  398|   				pw_get_host_name(), id);
#  399|-> 	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  400|   		sess_name = pw_get_host_name();
#  401|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1959]
pipewire-1.5.81/src/modules/module-vban-send.c:400:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:399:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:400:29: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:400:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/0)
#  398|   				pw_get_host_name(), id);
#  399|   	if ((sess_name = pw_properties_get(props, "sess.name")) == NULL)
#  400|-> 		sess_name = pw_get_host_name();
#  401|   
#  402|   	if (strlen(sess_name) > VBAN_STREAM_NAME_SIZE)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1960]
pipewire-1.5.81/src/modules/module-vban-send.c:403:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:402:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:403:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:403:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:403:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:403:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/24/codeFlows/0/threadFlows/0/locations/0)
#  401|   
#  402|   	if (strlen(sess_name) > VBAN_STREAM_NAME_SIZE)
#  403|-> 		pw_log_warn("session name '%s' will be truncated to %d characters",
#  404|   				sess_name, VBAN_STREAM_NAME_SIZE);
#  405|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1961]
pipewire-1.5.81/src/modules/module-vban-send.c:406:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:406:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/25/codeFlows/0/threadFlows/0/locations/0)
#  404|   				sess_name, VBAN_STREAM_NAME_SIZE);
#  405|   
#  406|-> 	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  407|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "vban_session.%s", sess_name);
#  408|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1962]
pipewire-1.5.81/src/modules/module-vban-send.c:407:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:406:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:407:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:407:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/0)
#  405|   
#  406|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  407|-> 		pw_properties_setf(props, PW_KEY_NODE_NAME, "vban_session.%s", sess_name);
#  408|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  409|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1963]
pipewire-1.5.81/src/modules/module-vban-send.c:408:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:408:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/27/codeFlows/0/threadFlows/0/locations/0)
#  406|   	if (pw_properties_get(props, PW_KEY_NODE_NAME) == NULL)
#  407|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "vban_session.%s", sess_name);
#  408|-> 	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  409|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  410|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1964]
pipewire-1.5.81/src/modules/module-vban-send.c:409:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:408:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:409:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:409:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/28/codeFlows/0/threadFlows/0/locations/0)
#  407|   		pw_properties_setf(props, PW_KEY_NODE_NAME, "vban_session.%s", sess_name);
#  408|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  409|-> 		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  410|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  411|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "VBAN Session %s",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1965]
pipewire-1.5.81/src/modules/module-vban-send.c:410:13: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:410:13: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/0)
#  408|   	if (pw_properties_get(props, PW_KEY_NODE_DESCRIPTION) == NULL)
#  409|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  410|-> 	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  411|   		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "VBAN Session %s",
#  412|   				sess_name);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1966]
pipewire-1.5.81/src/modules/module-vban-send.c:411:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:410:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:411:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:411:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/30/codeFlows/0/threadFlows/0/locations/0)
#  409|   		pw_properties_setf(props, PW_KEY_NODE_DESCRIPTION, "%s", sess_name);
#  410|   	if (pw_properties_get(props, PW_KEY_MEDIA_NAME) == NULL)
#  411|-> 		pw_properties_setf(props, PW_KEY_MEDIA_NAME, "VBAN Session %s",
#  412|   				sess_name);
#  413|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1967]
pipewire-1.5.81/src/modules/module-vban-send.c:414:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:414:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/0)
#  412|   				sess_name);
#  413|   
#  414|-> 	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  415|   		pw_properties_update_string(stream_props, str, strlen(str));
#  416|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1968]
pipewire-1.5.81/src/modules/module-vban-send.c:415:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:414:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:415:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:415:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/32/codeFlows/0/threadFlows/0/locations/0)
#  413|   
#  414|   	if ((str = pw_properties_get(props, "stream.props")) != NULL)
#  415|-> 		pw_properties_update_string(stream_props, str, strlen(str));
#  416|   
#  417|   	copy_props(impl, props, PW_KEY_AUDIO_FORMAT);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1969]
pipewire-1.5.81/src/modules/module-vban-send.c:437:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:437:15: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/0)
#  435|   	copy_props(impl, props, "sess.ts-refclk");
#  436|   
#  437|-> 	str = pw_properties_get(props, "local.ifname");
#  438|   	impl->ifname = str ? strdup(str) : NULL;
#  439|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1970]
pipewire-1.5.81/src/modules/module-vban-send.c:440:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:438:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:438:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:438:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:440:20: danger: ‘<unknown>’ leaks here; was allocated at [(9)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/8)
#  438|   	impl->ifname = str ? strdup(str) : NULL;
#  439|   
#  440|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  441|   		str = DEFAULT_SOURCE_IP;
#  442|   	if ((res = pw_net_parse_address(str, 0, &impl->src_addr, &impl->src_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1971]
pipewire-1.5.81/src/modules/module-vban-send.c:440:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:438:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:438:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:440:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/34/codeFlows/0/threadFlows/0/locations/0)
#  438|   	impl->ifname = str ? strdup(str) : NULL;
#  439|   
#  440|-> 	if ((str = pw_properties_get(props, "source.ip")) == NULL)
#  441|   		str = DEFAULT_SOURCE_IP;
#  442|   	if ((res = pw_net_parse_address(str, 0, &impl->src_addr, &impl->src_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1972]
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:438:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:438:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:438:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: danger: ‘<unknown>’ leaks here; was allocated at [(10)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/9)
#  441|   		str = DEFAULT_SOURCE_IP;
#  442|   	if ((res = pw_net_parse_address(str, 0, &impl->src_addr, &impl->src_len)) < 0) {
#  443|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  444|   		goto out;
#  445|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1973]
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:438:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:438:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-vban-send.c:443:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/1)
#  441|   		str = DEFAULT_SOURCE_IP;
#  442|   	if ((res = pw_net_parse_address(str, 0, &impl->src_addr, &impl->src_len)) < 0) {
#  443|-> 		pw_log_error("invalid source.ip %s: %s", str, spa_strerror(res));
#  444|   		goto out;
#  445|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1974]
pipewire-1.5.81/src/modules/module-vban-send.c:448:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:442:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:448:20: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/1)
#  446|   
#  447|   	impl->dst_port = pw_properties_get_uint32(props, "destination.port", DEFAULT_PORT);
#  448|-> 	if ((str = pw_properties_get(props, "destination.ip")) == NULL)
#  449|   		str = DEFAULT_DESTINATION_IP;
#  450|   	if ((res = pw_net_parse_address(str, impl->dst_port, &impl->dst_addr, &impl->dst_len)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1975]
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: call_function: calling ‘spa_strerror’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: return_function: returning to ‘pipewire__module_init’ from ‘spa_strerror’
pipewire-1.5.81/src/modules/module-vban-send.c:451:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/1)
#  449|   		str = DEFAULT_DESTINATION_IP;
#  450|   	if ((res = pw_net_parse_address(str, impl->dst_port, &impl->dst_addr, &impl->dst_len)) < 0) {
#  451|-> 		pw_log_error("invalid destination.ip %s: %s", str, spa_strerror(res));
#  452|   		goto out;
#  453|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1976]
pipewire-1.5.81/src/modules/module-vban-send.c:460:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:460:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/40/codeFlows/0/threadFlows/0/locations/1)
#  458|   
#  459|   	pw_net_get_ip(&impl->src_addr, addr, sizeof(addr), NULL, NULL);
#  460|-> 	pw_properties_set(stream_props, "vban.source.ip", addr);
#  461|   	pw_net_get_ip(&impl->dst_addr, addr, sizeof(addr), NULL, NULL);
#  462|   	pw_properties_set(stream_props, "vban.destination.ip", addr);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1977]
pipewire-1.5.81/src/modules/module-vban-send.c:462:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:462:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/41/codeFlows/0/threadFlows/0/locations/1)
#  460|   	pw_properties_set(stream_props, "vban.source.ip", addr);
#  461|   	pw_net_get_ip(&impl->dst_addr, addr, sizeof(addr), NULL, NULL);
#  462|-> 	pw_properties_set(stream_props, "vban.destination.ip", addr);
#  463|   	pw_properties_setf(stream_props, "vban.destination.port", "%u", impl->dst_port);
#  464|   	pw_properties_setf(stream_props, "vban.ttl", "%u", impl->ttl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1978]
pipewire-1.5.81/src/modules/module-vban-send.c:463:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:463:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/42/codeFlows/0/threadFlows/0/locations/1)
#  461|   	pw_net_get_ip(&impl->dst_addr, addr, sizeof(addr), NULL, NULL);
#  462|   	pw_properties_set(stream_props, "vban.destination.ip", addr);
#  463|-> 	pw_properties_setf(stream_props, "vban.destination.port", "%u", impl->dst_port);
#  464|   	pw_properties_setf(stream_props, "vban.ttl", "%u", impl->ttl);
#  465|   	pw_properties_setf(stream_props, "vban.dscp", "%u", impl->dscp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1979]
pipewire-1.5.81/src/modules/module-vban-send.c:464:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:464:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/43/codeFlows/0/threadFlows/0/locations/1)
#  462|   	pw_properties_set(stream_props, "vban.destination.ip", addr);
#  463|   	pw_properties_setf(stream_props, "vban.destination.port", "%u", impl->dst_port);
#  464|-> 	pw_properties_setf(stream_props, "vban.ttl", "%u", impl->ttl);
#  465|   	pw_properties_setf(stream_props, "vban.dscp", "%u", impl->dscp);
#  466|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1980]
pipewire-1.5.81/src/modules/module-vban-send.c:465:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:465:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/44/codeFlows/0/threadFlows/0/locations/1)
#  463|   	pw_properties_setf(stream_props, "vban.destination.port", "%u", impl->dst_port);
#  464|   	pw_properties_setf(stream_props, "vban.ttl", "%u", impl->ttl);
#  465|-> 	pw_properties_setf(stream_props, "vban.dscp", "%u", impl->dscp);
#  466|   
#  467|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1981]
pipewire-1.5.81/src/modules/module-vban-send.c:467:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:467:22: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/45/codeFlows/0/threadFlows/0/locations/1)
#  465|   	pw_properties_setf(stream_props, "vban.dscp", "%u", impl->dscp);
#  466|   
#  467|-> 	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  468|   	if (impl->core == NULL) {
#  469|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1982]
pipewire-1.5.81/src/modules/module-vban-send.c:469:23: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:468:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:469:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:469:23: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/46/codeFlows/0/threadFlows/0/locations/1)
#  467|   	impl->core = pw_context_get_object(impl->context, PW_TYPE_INTERFACE_Core);
#  468|   	if (impl->core == NULL) {
#  469|-> 		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  470|   		impl->core = pw_context_connect(impl->context,
#  471|   				pw_properties_new(

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1983]
pipewire-1.5.81/src/modules/module-vban-send.c:470:30: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:468:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:469:23: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:470:30: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/47/codeFlows/0/threadFlows/0/locations/1)
#  468|   	if (impl->core == NULL) {
#  469|   		str = pw_properties_get(props, PW_KEY_REMOTE_NAME);
#  470|-> 		impl->core = pw_context_connect(impl->context,
#  471|   				pw_properties_new(
#  472|   					PW_KEY_REMOTE_NAME, str,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1984]
pipewire-1.5.81/src/modules/module-vban-send.c:479:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:477:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:478:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:479:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:479:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:479:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/49/codeFlows/0/threadFlows/0/locations/1)
#  477|   	if (impl->core == NULL) {
#  478|   		res = -errno;
#  479|-> 		pw_log_error("can't connect: %m");
#  480|   		goto out;
#  481|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1985]
pipewire-1.5.81/src/modules/module-vban-send.c:483:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban-send.c:355:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:367:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban-send.c:368:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban-send.c:371:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:377:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:382:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:385:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:390:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:442:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:447:26: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:450:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:455:21: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:459:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-vban-send.c:461:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-vban-send.c:477:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban-send.c:483:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban-send.c:483:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/50/codeFlows/0/threadFlows/0/locations/1)
#  481|   	}
#  482|   
#  483|-> 	pw_proxy_add_listener((struct pw_proxy*)impl->core,
#  484|   			&impl->core_proxy_listener,
#  485|   			&core_proxy_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1986]
pipewire-1.5.81/src/modules/module-vban/stream.c:257:20: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban/stream.c:247:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban/stream.c:248:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban/stream.c:253:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:257:20: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  255|   	impl->stream_events = stream_events;
#  256|   
#  257|-> 	if ((str = pw_properties_get(props, "sess.media")) == NULL)
#  258|   		str = "audio";
#  259|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1987]
pipewire-1.5.81/src/modules/module-vban/stream.c:269:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban/stream.c:247:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban/stream.c:248:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban/stream.c:253:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:260:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:264:18: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:264:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:269:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:269:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:269:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:269:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  267|   	}
#  268|   	else {
#  269|-> 		pw_log_error("unsupported media type:%s", str);
#  270|   		res = -EINVAL;
#  271|   		goto out;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1988]
pipewire-1.5.81/src/modules/module-vban/stream.c:310:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban/stream.c:231:21: enter_function: entry to ‘vban_stream_new’
pipewire-1.5.81/src/modules/module-vban/stream.c:247:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban/stream.c:248:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban/stream.c:253:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:264:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:265:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:305:37: call_function: calling ‘find_audio_format_info’ from ‘vban_stream_new’
pipewire-1.5.81/src/modules/module-vban/stream.c:305:37: return_function: returning to ‘vban_stream_new’ from ‘find_audio_format_info’
pipewire-1.5.81/src/modules/module-vban/stream.c:306:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:310:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:310:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#  308|   			goto out;
#  309|   		}
#  310|-> 		pw_properties_set(props, PW_KEY_FORMAT_DSP, "8 bit raw midi");
#  311|   		impl->stride = impl->format_info->size;
#  312|   		impl->rate = pw_properties_get_uint32(props, "midi.rate", 10000);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1989]
pipewire-1.5.81/src/modules/module-vban/stream.c:320:28: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-vban/stream.c:231:21: enter_function: entry to ‘vban_stream_new’
pipewire-1.5.81/src/modules/module-vban/stream.c:247:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-vban/stream.c:248:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-vban/stream.c:253:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:264:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:265:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:305:37: call_function: calling ‘find_audio_format_info’ from ‘vban_stream_new’
pipewire-1.5.81/src/modules/module-vban/stream.c:305:37: return_function: returning to ‘vban_stream_new’ from ‘find_audio_format_info’
pipewire-1.5.81/src/modules/module-vban/stream.c:306:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-vban/stream.c:310:17: branch_false: ...to here
pipewire-1.5.81/src/modules/module-vban/stream.c:320:28: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  318|   		impl->header.format_nbc = 0;
#  319|   		impl->header.format_bit = impl->format_info->format_bit;
#  320|-> 		if ((str = pw_properties_get(props, "sess.name")) == NULL)
#  321|   			str = "Midi1";
#  322|   		snprintf(impl->header.stream_name, sizeof(impl->header.stream_name), "%s", str);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1990]
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  266|   		return -ENOMEM;
#  267|   
#  268|-> 	pw_log_debug("module %p: new", impl);
#  269|   
#  270|   	impl->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1991]
pipewire-1.5.81/src/modules/module-x11-bell.c:271:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:270:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:271:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  269|   
#  270|   	impl->context = context;
#  271|-> 	impl->loop = pw_context_get_main_loop(context);
#  272|   
#  273|   	impl->thread_loop = pw_thread_loop_new("X11 Bell", NULL);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1992]
pipewire-1.5.81/src/modules/module-x11-bell.c:273:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:270:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:273:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  271|   	impl->loop = pw_context_get_main_loop(context);
#  272|   
#  273|-> 	impl->thread_loop = pw_thread_loop_new("X11 Bell", NULL);
#  274|   	if (impl->thread_loop == NULL) {
#  275|   		res = -errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1993]
pipewire-1.5.81/src/modules/module-x11-bell.c:276:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:270:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:274:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:275:24: branch_true: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:276:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:276:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:276:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  274|   	if (impl->thread_loop == NULL) {
#  275|   		res = -errno;
#  276|-> 		pw_log_error("can't create thread loop: %m");
#  277|   		goto error;
#  278|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1994]
pipewire-1.5.81/src/modules/module-x11-bell.c:279:34: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:270:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:274:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:279:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:279:34: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  277|   		goto error;
#  278|   	}
#  279|-> 	impl->thread_loop_loop = pw_thread_loop_get_loop(impl->thread_loop);
#  280|   	impl->properties = args ? pw_properties_new_string(args) : NULL;
#  281|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1995]
pipewire-1.5.81/src/modules/module-x11-bell.c:280:35: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:270:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:274:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:279:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:280:28: branch_true: following ‘true’ branch (when ‘args’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:280:35: branch_true: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:280:35: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  278|   	}
#  279|   	impl->thread_loop_loop = pw_thread_loop_get_loop(impl->thread_loop);
#  280|-> 	impl->properties = args ? pw_properties_new_string(args) : NULL;
#  281|   
#  282|   	impl->module = module;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1996]
pipewire-1.5.81/src/modules/module-x11-bell.c:283:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-x11-bell.c:264:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-x11-bell.c:265:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:268:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:270:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:274:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-x11-bell.c:279:34: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:280:28: branch_false: following ‘false’ branch (when ‘args’ is NULL)...
pipewire-1.5.81/src/modules/module-x11-bell.c:280:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-x11-bell.c:283:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  281|   
#  282|   	impl->module = module;
#  283|-> 	pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
#  284|   	pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_x11_bell_info));
#  285|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def1997]
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:140:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘((struct tunnel)*((struct spa_list *)t)).info.name’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:496:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:515:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:516:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:537:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:538:17: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:538:17: call_function: calling ‘impl_free’ from ‘pipewire__module_init’
#  138|   	if (t->module)
#  139|   		pw_impl_module_destroy(t->module);
#  140|-> 	free((char *) t->info.name);
#  141|   
#  142|   	free(t);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1998]
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:505:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_true: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  507|   		goto error_errno;
#  508|   
#  509|-> 	pw_log_debug("module %p: new %s", impl, args);
#  510|   
#  511|   	if (args == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1999]
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:514:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:505:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:511:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:514:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  512|   		args = "";
#  513|   
#  514|-> 	props = pw_properties_new_string(args);
#  515|   	if (props == NULL)
#  516|   		goto error_errno;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2000]
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:527:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:505:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:511:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:515:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:518:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:527:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  525|   			"pulse.discover-local", false);
#  526|   
#  527|-> 	pw_impl_module_add_listener(module, &impl->module_listener, &module_events, impl);
#  528|   
#  529|   	pw_impl_module_update_properties(module, &SPA_DICT_INIT_ARRAY(module_props));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2001]
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:130:16: warning[-Wanalyzer-malloc-leak]: leak of ‘w’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:134:22: enter_function: entry to ‘timeout_new’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:140:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:141:12: branch_false: following ‘false’ branch (when ‘w’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:144:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:148:13: call_function: inlined call to ‘schedule_timeout’ from ‘timeout_new’
 branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:148:13: call_function: inlined call to ‘schedule_timeout’ from ‘timeout_new’
#  128|   		timeout_ns = 1;
#  129|   
#  130|-> 	return pw_timer_queue_add(t->impl->timer_queue, &t->timer, NULL,
#  131|   				  timeout_ns, timeout_callback, t);
#  132|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2002]
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:190:22: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:185:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:186:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:190:22: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  188|   
#  189|   	impl->context = context;
#  190|-> 	impl->loop = pw_context_get_main_loop(context);
#  191|   	impl->timer_queue = pw_context_get_timer_queue(context);
#  192|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2003]
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:191:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:185:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:186:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:189:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover/avahi-poll.c:191:29: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  189|   	impl->context = context;
#  190|   	impl->loop = pw_context_get_main_loop(context);
#  191|-> 	impl->timer_queue = pw_context_get_timer_queue(context);
#  192|   
#  193|   	impl->api = avahi_poll_api;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2004]
pipewire-1.5.81/src/modules/network-utils.h:30:15: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
#   28|   	hints.ai_flags = AI_NUMERICSERV;
#   29|   
#   30|-> 	res = getaddrinfo(address, port_str, &hints, &result);
#   31|   
#   32|   	if (res != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2005]
pipewire-1.5.81/src/modules/network-utils.h:30:15: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:762:24: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:762:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
#   28|   	hints.ai_flags = AI_NUMERICSERV;
#   29|   
#   30|-> 	res = getaddrinfo(address, port_str, &hints, &result);
#   31|   
#   32|   	if (res != 0)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2006]
pipewire-1.5.81/src/pipewire/array.h:81:9: warning[-Wanalyzer-malloc-leak]: leak of ‘map.items.data’
pipewire-1.5.81/test/test-map.c:165:1: enter_function: entry to ‘map_insert_at_free’
pipewire-1.5.81/test/test-map.c:189:12: branch_false: following ‘false’ branch (when ‘item_idx != 3’)...
pipewire-1.5.81/test/test-map.c:192:18: branch_false: ...to here
pipewire-1.5.81/test/test-map.c:192:18: call_function: calling ‘pw_map_insert_new’ from ‘map_insert_at_free’
pipewire-1.5.81/test/test-map.c:192:18: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_new’
pipewire-1.5.81/test/test-map.c:193:18: call_function: calling ‘pw_map_insert_new’ from ‘map_insert_at_free’
pipewire-1.5.81/test/test-map.c:193:18: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_new’
pipewire-1.5.81/test/test-map.c:194:18: call_function: calling ‘pw_map_insert_new’ from ‘map_insert_at_free’
pipewire-1.5.81/test/test-map.c:194:18: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_new’
pipewire-1.5.81/test/test-map.c:206:14: call_function: calling ‘pw_map_insert_at’ from ‘map_insert_at_free’
pipewire-1.5.81/test/test-map.c:206:14: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_at’
pipewire-1.5.81/test/test-map.c:207:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-map.c:208:9: call_function: inlined call to ‘pw_map_clear’ from ‘map_insert_at_free’
#   79|   PW_API_ARRAY void pw_array_init(struct pw_array *arr, size_t extend)
#   80|   {
#   81|-> 	arr->data = NULL;
#   82|   	arr->size = arr->alloc = 0;
#   83|   	arr->extend = extend;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2007]
pipewire-1.5.81/src/pipewire/array.h:140:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/pipewire/impl-client.c:311:12: enter_function: entry to ‘client_update_permissions’
pipewire-1.5.81/src/pipewire/impl-client.c:316:16: call_function: calling ‘pw_impl_client_update_permissions’ from ‘client_update_permissions’
#  138|   
#  139|   	p = SPA_PTROFF(arr->data, arr->size, void);
#  140|-> 	arr->size += size;
#  141|   
#  142|   	return p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2008]
pipewire-1.5.81/src/pipewire/array.h:151:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:335:13: enter_function: entry to ‘event_param’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:345:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:346:21: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:346:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:349:21: branch_false: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:349:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:350:32: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:351:33: branch_true: ...to here
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:351:33: call_function: calling ‘pw_array_add_ptr’ from ‘event_param’
#  149|   	void **p = (void **)pw_array_add(arr, sizeof(void*));
#  150|   	if (p == NULL)
#  151|-> 		return -errno;
#  152|   	*p = ptr;
#  153|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2009]
pipewire-1.5.81/src/pipewire/buffers.c:83:21: warning[-Wanalyzer-malloc-leak]: leak of ‘buffers’
pipewire-1.5.81/src/pipewire/buffers.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/buffers.c:71:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:74:19: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/buffers.c:75:12: branch_false: following ‘false’ branch (when ‘buffers’ is non-NULL)...
pipewire-1.5.81/src/pipewire/buffers.c:78:16: branch_false: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:81:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/buffers.c:88:45: branch_true: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:83:21: danger: ‘buffers’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
#   81|   	if (SPA_FLAG_IS_SET(flags, PW_BUFFERS_FLAG_SHARED)) {
#   82|   		/* For shared data we use MemFd for meta/chunk/data */
#   83|-> 		m = pw_mempool_alloc(pool,
#   84|   				PW_MEMBLOCK_FLAG_READWRITE |
#   85|   				PW_MEMBLOCK_FLAG_SEAL |

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2010]
pipewire-1.5.81/src/pipewire/buffers.c:99:9: warning[-Wanalyzer-malloc-leak]: leak of ‘buffers’
pipewire-1.5.81/src/pipewire/buffers.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/buffers.c:71:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:74:19: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/buffers.c:75:12: branch_false: following ‘false’ branch (when ‘buffers’ is non-NULL)...
pipewire-1.5.81/src/pipewire/buffers.c:78:16: branch_false: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:81:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/buffers.c:99:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:99:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/buffers.c:99:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/buffers.c:99:9: danger: ‘buffers’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   97|   	}
#   98|   
#   99|-> 	pw_log_debug("%p: layout buffers skel:%p data:%p n_buffers:%d buffers:%p",
#  100|   			allocation, skel, data, n_buffers, buffers);
#  101|   

Error: CPPCHECK_WARNING (CWE-457): [#def2011]
pipewire-1.5.81/src/pipewire/buffers.c:262: error[uninitvar]: Uninitialized variable: type
#  260|   		}
#  261|   
#  262|-> 		pw_log_debug("%p: enable meta %s size:%d", result,
#  263|   				spa_debug_type_find_name(spa_type_meta_type, type), size);
#  264|   

Error: CPPCHECK_WARNING (CWE-190): [#def2012]
pipewire-1.5.81/src/pipewire/client.h:165: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  163|   			void *data)
#  164|   {
#  165|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client, (struct spa_interface*)object, add_listener, 0,
#  166|   			listener, events, data);
#  167|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2013]
pipewire-1.5.81/src/pipewire/client.h:172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  170|   PW_API_CLIENT_IMPL int pw_client_error(struct pw_client *object, uint32_t id, int res, const char *message)
#  171|   {
#  172|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client, (struct spa_interface*)object, error, 0,
#  173|   			id, res, message);
#  174|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2014]
pipewire-1.5.81/src/pipewire/client.h:179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  177|   PW_API_CLIENT_IMPL int pw_client_update_properties(struct pw_client *object, const struct spa_dict *props)
#  178|   {
#  179|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client, (struct spa_interface*)object, update_properties, 0,
#  180|   			props);
#  181|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2015]
pipewire-1.5.81/src/pipewire/client.h:186: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  184|   PW_API_CLIENT_IMPL int pw_client_get_permissions(struct pw_client *object, uint32_t index, uint32_t num)
#  185|   {
#  186|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client, (struct spa_interface*)object, get_permissions, 0,
#  187|   			index, num);
#  188|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2016]
pipewire-1.5.81/src/pipewire/client.h:194: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  192|   			const struct pw_permission *permissions)
#  193|   {
#  194|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client, (struct spa_interface*)object, update_permissions, 0,
#  195|   			n_permissions, permissions);
#  196|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2017]
pipewire-1.5.81/src/pipewire/context.c:623: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  621|   
#  622|   	pw_log_debug("%p: destroy", context);
#  623|-> 	pw_context_emit_destroy(context);
#  624|   
#  625|   	spa_list_consume(core, &context->core_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def2018]
pipewire-1.5.81/src/pipewire/context.c:656: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  654|   
#  655|   	pw_log_debug("%p: free", context);
#  656|-> 	pw_context_emit_free(context);
#  657|   
#  658|   	for (i = 0; i < impl->n_data_loops; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def2019]
pipewire-1.5.81/src/pipewire/control.c:66: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   64|   	if (port) {
#   65|   		spa_list_append(&port->control_list[direction], &this->port_link);
#   66|-> 		pw_impl_port_emit_control_added(port, this);
#   67|   	}
#   68|   	return this;

Error: CPPCHECK_WARNING (CWE-190): [#def2020]
pipewire-1.5.81/src/pipewire/control.c:81: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   79|   	pw_log_debug(NAME" %p: destroy", control);
#   80|   
#   81|-> 	pw_control_emit_destroy(control);
#   82|   
#   83|   	if (control->direction == SPA_DIRECTION_OUTPUT) {

Error: CPPCHECK_WARNING (CWE-190): [#def2021]
pipewire-1.5.81/src/pipewire/control.c:96: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   94|   	if (control->port) {
#   95|   		spa_list_remove(&control->port_link);
#   96|-> 		pw_impl_port_emit_control_removed(control->port, control);
#   97|   	}
#   98|   

Error: CPPCHECK_WARNING (CWE-190): [#def2022]
pipewire-1.5.81/src/pipewire/control.c:100: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   98|   
#   99|   	pw_log_debug(NAME" %p: free", control);
#  100|-> 	pw_control_emit_free(control);
#  101|   
#  102|   	spa_hook_list_clean(&control->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def2023]
pipewire-1.5.81/src/pipewire/control.c:210: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  208|   	spa_list_append(&other->links, &link->in_link);
#  209|   
#  210|-> 	pw_control_emit_linked(control, other);
#  211|   	pw_control_emit_linked(other, control);
#  212|   exit:

Error: CPPCHECK_WARNING (CWE-190): [#def2024]
pipewire-1.5.81/src/pipewire/control.c:211: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  209|   
#  210|   	pw_control_emit_linked(control, other);
#  211|-> 	pw_control_emit_linked(other, control);
#  212|   exit:
#  213|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def2025]
pipewire-1.5.81/src/pipewire/control.c:243: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  241|   	}
#  242|   
#  243|-> 	pw_control_emit_unlinked(output, input);
#  244|   	pw_control_emit_unlinked(input, output);
#  245|   

Error: CPPCHECK_WARNING (CWE-190): [#def2026]
pipewire-1.5.81/src/pipewire/control.c:244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  242|   
#  243|   	pw_control_emit_unlinked(output, input);
#  244|-> 	pw_control_emit_unlinked(input, output);
#  245|   
#  246|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def2027]
pipewire-1.5.81/src/pipewire/core.c:54: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   52|   	proxy = pw_map_lookup(&this->objects, id);
#   53|   	if (proxy)
#   54|-> 		pw_proxy_emit_done(proxy, seq);
#   55|   }
#   56|   

Error: CPPCHECK_WARNING (CWE-190): [#def2028]
pipewire-1.5.81/src/pipewire/core.c:68: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   66|   			seq, res, spa_strerror(res), message);
#   67|   	if (proxy)
#   68|-> 		pw_proxy_emit_error(proxy, seq, res, message);
#   69|   }
#   70|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2029]
pipewire-1.5.81/src/pipewire/core.c:330:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  328|   		goto exit_cleanup;
#  329|   	}
#  330|-> 	pw_log_debug("%p: new", p);
#  331|   
#  332|   	if (properties == NULL)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2030]
pipewire-1.5.81/src/pipewire/core.c:333:30: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_true: following ‘true’ branch (when ‘properties’ is NULL)...
pipewire-1.5.81/src/pipewire/core.c:333:30: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:333:30: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  331|   
#  332|   	if (properties == NULL)
#  333|-> 		properties = pw_properties_new(NULL, NULL);
#  334|   	if (properties == NULL)
#  335|   		goto error_properties;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2031]
pipewire-1.5.81/src/pipewire/core.c:337:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:337:9: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  335|   		goto error_properties;
#  336|   
#  337|-> 	pw_properties_add(properties, &context->properties->dict);
#  338|   
#  339|   	p->context = context;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2032]
pipewire-1.5.81/src/pipewire/core.c:341:19: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:341:19: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  339|   	p->context = context;
#  340|   	p->properties = properties;
#  341|-> 	p->pool = pw_mempool_new(NULL);
#  342|   	if (user_data_size > 0)
#  343|   		p->user_data = SPA_PTROFF(p, sizeof(struct pw_core), void);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2033]
pipewire-1.5.81/src/pipewire/core.c:350:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/pipewire/core.c:317:24: enter_function: entry to ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:350:30: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/12)
#  348|   	spa_list_init(&p->filter_list);
#  349|   
#  350|-> 	if ((protocol_name = pw_properties_get(properties, PW_KEY_PROTOCOL)) == NULL &&
#  351|   	    (protocol_name = pw_properties_get(context->properties, PW_KEY_PROTOCOL)) == NULL)
#  352|   		protocol_name = PW_TYPE_INFO_PROTOCOL_Native;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2034]
pipewire-1.5.81/src/pipewire/core.c:350:30: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:317:24: enter_function: entry to ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:350:30: danger: ‘p’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#  348|   	spa_list_init(&p->filter_list);
#  349|   
#  350|-> 	if ((protocol_name = pw_properties_get(properties, PW_KEY_PROTOCOL)) == NULL &&
#  351|   	    (protocol_name = pw_properties_get(context->properties, PW_KEY_PROTOCOL)) == NULL)
#  352|   		protocol_name = PW_TYPE_INFO_PROTOCOL_Native;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2035]
pipewire-1.5.81/src/pipewire/core.c:351:30: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/pipewire/core.c:317:24: enter_function: entry to ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:350:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/core.c:351:48: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:351:30: danger: ‘<unknown>’ leaks here; was allocated at [(13)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/12)
#  349|   
#  350|   	if ((protocol_name = pw_properties_get(properties, PW_KEY_PROTOCOL)) == NULL &&
#  351|-> 	    (protocol_name = pw_properties_get(context->properties, PW_KEY_PROTOCOL)) == NULL)
#  352|   		protocol_name = PW_TYPE_INFO_PROTOCOL_Native;
#  353|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2036]
pipewire-1.5.81/src/pipewire/core.c:351:30: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:317:24: enter_function: entry to ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:346:9: call_function: inlined call to ‘pw_map_init’ from ‘core_new’
pipewire-1.5.81/src/pipewire/core.c:350:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/core.c:351:48: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:351:30: danger: ‘p’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#  349|   
#  350|   	if ((protocol_name = pw_properties_get(properties, PW_KEY_PROTOCOL)) == NULL &&
#  351|-> 	    (protocol_name = pw_properties_get(context->properties, PW_KEY_PROTOCOL)) == NULL)
#  352|   		protocol_name = PW_TYPE_INFO_PROTOCOL_Native;
#  353|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2037]
pipewire-1.5.81/src/pipewire/core.c:386:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.5.81/src/pipewire/core.c:325:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/core.c:326:12: branch_false: following ‘false’ branch (when ‘p’ is non-NULL)...
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:330:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/core.c:332:12: branch_true: following ‘true’ branch (when ‘properties’ is NULL)...
pipewire-1.5.81/src/pipewire/core.c:333:30: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:334:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/core.c:335:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:386:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/core.c:386:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/core.c:386:9: danger: ‘p’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  384|   error_properties:
#  385|   	res = -errno;
#  386|-> 	pw_log_error("%p: can't create properties: %m", p);
#  387|   	goto exit_free;
#  388|   error_protocol:

Error: CPPCHECK_WARNING (CWE-190): [#def2038]
pipewire-1.5.81/src/pipewire/core.h:354: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2039]
pipewire-1.5.81/src/pipewire/core.h:354:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘close_fd[0]’
pipewire-1.5.81/src/tests/test-security-context.c:92:13: enter_function: entry to ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:105:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:106:16: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:111:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:112:25: call_function: calling ‘pw_core_get_registry’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:112:25: return_function: returning to ‘test_create’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/tests/test-security-context.c:113:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:117:9: call_function: calling ‘roundtrip’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:117:9: return_function: returning to ‘test_create’ from ‘roundtrip’
pipewire-1.5.81/src/tests/test-security-context.c:119:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:122:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:123:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:124:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:129:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:131:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:133:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:136:13: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:136:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:139:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:140:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:150:26: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:152:9: call_function: calling ‘roundtrip’ from ‘test_create’
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2040]
pipewire-1.5.81/src/pipewire/core.h:354:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘close_fd[1]’
pipewire-1.5.81/src/tests/test-security-context.c:92:13: enter_function: entry to ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:105:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:106:16: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:111:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:112:25: call_function: calling ‘pw_core_get_registry’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:112:25: return_function: returning to ‘test_create’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/tests/test-security-context.c:113:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:117:9: call_function: calling ‘roundtrip’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:117:9: return_function: returning to ‘test_create’ from ‘roundtrip’
pipewire-1.5.81/src/tests/test-security-context.c:119:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:122:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:123:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:124:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:129:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:131:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:133:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:136:13: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:136:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:139:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:140:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:150:26: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:152:9: call_function: calling ‘roundtrip’ from ‘test_create’
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2041]
pipewire-1.5.81/src/pipewire/core.h:354:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listen_fd’
pipewire-1.5.81/src/tests/test-security-context.c:92:13: enter_function: entry to ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:105:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:106:16: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:111:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:112:25: call_function: calling ‘pw_core_get_registry’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:112:25: return_function: returning to ‘test_create’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/tests/test-security-context.c:113:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:117:9: call_function: calling ‘roundtrip’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:117:9: return_function: returning to ‘test_create’ from ‘roundtrip’
pipewire-1.5.81/src/tests/test-security-context.c:119:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:122:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:123:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:124:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:128:21: acquire_resource: stream socket created here
pipewire-1.5.81/src/tests/test-security-context.c:129:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:131:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:133:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:136:13: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:136:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:139:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:140:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:150:26: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:152:9: call_function: calling ‘roundtrip’ from ‘test_create’
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2042]
pipewire-1.5.81/src/pipewire/core.h:354:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘data.output’
pipewire-1.5.81/src/tools/pw-profiler.c:677:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:729:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:734:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:739:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:744:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:751:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:756:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:758:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: acquire_resource: opened here
pipewire-1.5.81/src/tools/pw-profiler.c:760:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:764:17: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:769:9: call_function: calling ‘pw_core_add_listener’ from ‘main’
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2043]
pipewire-1.5.81/src/pipewire/core.h:354:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.output’
pipewire-1.5.81/src/tools/pw-profiler.c:677:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:729:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:734:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:739:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:744:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:751:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:756:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:758:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: acquire_memory: allocated here
pipewire-1.5.81/src/tools/pw-profiler.c:760:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:764:17: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:769:9: call_function: calling ‘pw_core_add_listener’ from ‘main’
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2044]
pipewire-1.5.81/src/pipewire/core.h:354:16: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:759:9: call_function: calling ‘pw_core_add_listener’ from ‘pw_manager_new’
#  352|   			void *data)
#  353|   {
#  354|-> 	return spa_api_method_r(int, -ENOTSUP,
#  355|   			pw_core, (struct spa_interface*)object, add_listener, 0,
#  356|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2045]
pipewire-1.5.81/src/pipewire/core.h:362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  360|   PW_API_CORE_IMPL int pw_core_hello(struct pw_core *object, uint32_t version)
#  361|   {
#  362|-> 	return spa_api_method_r(int, -ENOTSUP,
#  363|   			pw_core, (struct spa_interface*)object, hello, 0,
#  364|   			version);

Error: CPPCHECK_WARNING (CWE-190): [#def2046]
pipewire-1.5.81/src/pipewire/core.h:370: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  368|   PW_API_CORE_IMPL int pw_core_sync(struct pw_core *object, uint32_t id, int seq)
#  369|   {
#  370|-> 	return spa_api_method_r(int, -ENOTSUP,
#  371|   			pw_core, (struct spa_interface*)object, sync, 0,
#  372|   			id, seq);

Error: CPPCHECK_WARNING (CWE-190): [#def2047]
pipewire-1.5.81/src/pipewire/core.h:378: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  376|   PW_API_CORE_IMPL int pw_core_pong(struct pw_core *object, uint32_t id, int seq)
#  377|   {
#  378|-> 	return spa_api_method_r(int, -ENOTSUP,
#  379|   			pw_core, (struct spa_interface*)object, pong, 0,
#  380|   			id, seq);

Error: CPPCHECK_WARNING (CWE-190): [#def2048]
pipewire-1.5.81/src/pipewire/core.h:386: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  384|   PW_API_CORE_IMPL int pw_core_error(struct pw_core *object, uint32_t id, int seq, int res, const char *message)
#  385|   {
#  386|-> 	return spa_api_method_r(int, -ENOTSUP,
#  387|   			pw_core, (struct spa_interface*)object, error, 0,
#  388|   			id, seq, res, message);

Error: CPPCHECK_WARNING (CWE-190): [#def2049]
pipewire-1.5.81/src/pipewire/core.h:419: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  417|   pw_core_get_registry(struct pw_core *core, uint32_t version, size_t user_data_size)
#  418|   {
#  419|-> 	return spa_api_method_r(struct pw_registry*, NULL,
#  420|   			pw_core, (struct spa_interface*)core, get_registry, 0,
#  421|   			version, user_data_size);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2050]
pipewire-1.5.81/src/pipewire/core.h:419:16: warning[-Wanalyzer-file-leak]: leak of FILE ‘data.output’
pipewire-1.5.81/src/tools/pw-profiler.c:677:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:729:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:734:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:739:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:744:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:751:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:756:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:758:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: acquire_resource: opened here
pipewire-1.5.81/src/tools/pw-profiler.c:760:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:764:17: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:769:9: call_function: calling ‘pw_core_add_listener’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:769:9: return_function: returning to ‘main’ from ‘pw_core_add_listener’
pipewire-1.5.81/src/tools/pw-profiler.c:772:25: call_function: calling ‘pw_core_get_registry’ from ‘main’
#  417|   pw_core_get_registry(struct pw_core *core, uint32_t version, size_t user_data_size)
#  418|   {
#  419|-> 	return spa_api_method_r(struct pw_registry*, NULL,
#  420|   			pw_core, (struct spa_interface*)core, get_registry, 0,
#  421|   			version, user_data_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2051]
pipewire-1.5.81/src/pipewire/core.h:419:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.output’
pipewire-1.5.81/src/tools/pw-profiler.c:677:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:729:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:734:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:735:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:736:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:739:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:744:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:751:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:756:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:758:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:759:31: acquire_memory: allocated here
pipewire-1.5.81/src/tools/pw-profiler.c:760:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-profiler.c:764:17: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-profiler.c:769:9: call_function: calling ‘pw_core_add_listener’ from ‘main’
pipewire-1.5.81/src/tools/pw-profiler.c:769:9: return_function: returning to ‘main’ from ‘pw_core_add_listener’
pipewire-1.5.81/src/tools/pw-profiler.c:772:25: call_function: calling ‘pw_core_get_registry’ from ‘main’
#  417|   pw_core_get_registry(struct pw_core *core, uint32_t version, size_t user_data_size)
#  418|   {
#  419|-> 	return spa_api_method_r(struct pw_registry*, NULL,
#  420|   			pw_core, (struct spa_interface*)core, get_registry, 0,
#  421|   			version, user_data_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2052]
pipewire-1.5.81/src/pipewire/core.h:419:16: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
#  417|   pw_core_get_registry(struct pw_core *core, uint32_t version, size_t user_data_size)
#  418|   {
#  419|-> 	return spa_api_method_r(struct pw_registry*, NULL,
#  420|   			pw_core, (struct spa_interface*)core, get_registry, 0,
#  421|   			version, user_data_size);

Error: CPPCHECK_WARNING (CWE-190): [#def2053]
pipewire-1.5.81/src/pipewire/core.h:433: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  431|   			    size_t user_data_size)
#  432|   {
#  433|-> 	return spa_api_method_r(void*, NULL,
#  434|   			pw_core, (struct spa_interface*)core, create_object, 0,
#  435|   			factory_name, type, version, props, user_data_size);

Error: CPPCHECK_WARNING (CWE-190): [#def2054]
pipewire-1.5.81/src/pipewire/core.h:442: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  440|   pw_core_destroy(struct pw_core *core, void *proxy)
#  441|   {
#  442|-> 	spa_api_method_v(pw_core, (struct spa_interface*)core, destroy, 0,
#  443|   			proxy);
#  444|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2055]
pipewire-1.5.81/src/pipewire/core.h:569: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  567|   			void *data)
#  568|   {
#  569|-> 	return spa_api_method_r(int, -ENOTSUP,
#  570|   			pw_registry, (struct spa_interface*)registry, add_listener, 0,
#  571|   			listener, events, data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2056]
pipewire-1.5.81/src/pipewire/core.h:569:16: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:734:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:739:13: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:740:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:743:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:744:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:746:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:751:19: branch_false: ...to here
pipewire-1.5.81/src/modules/module-protocol-pulse/manager.c:762:9: call_function: calling ‘pw_registry_add_listener’ from ‘pw_manager_new’
#  567|   			void *data)
#  568|   {
#  569|-> 	return spa_api_method_r(int, -ENOTSUP,
#  570|   			pw_registry, (struct spa_interface*)registry, add_listener, 0,
#  571|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2057]
pipewire-1.5.81/src/pipewire/core.h:580: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  578|   		       size_t user_data_size)
#  579|   {
#  580|-> 	return spa_api_method_r(void*, NULL,
#  581|   			pw_registry, (struct spa_interface*)registry, bind, 0,
#  582|   			id, type, version, user_data_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2058]
pipewire-1.5.81/src/pipewire/core.h:580:16: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
pipewire-1.5.81/src/tools/pw-top.c:676:13: enter_function: entry to ‘registry_event_global’
pipewire-1.5.81/src/tools/pw-top.c:683:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-top.c:684:21: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-top.c:684:21: call_function: calling ‘add_node’ from ‘registry_event_global’
#  578|   		       size_t user_data_size)
#  579|   {
#  580|-> 	return spa_api_method_r(void*, NULL,
#  581|   			pw_registry, (struct spa_interface*)registry, bind, 0,
#  582|   			id, type, version, user_data_size);

Error: CPPCHECK_WARNING (CWE-190): [#def2059]
pipewire-1.5.81/src/pipewire/core.h:589: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  587|   pw_registry_destroy(struct pw_registry *registry, uint32_t id)
#  588|   {
#  589|-> 	return spa_api_method_r(int, -ENOTSUP,
#  590|   			pw_registry, (struct spa_interface*)registry, destroy, 0, id);
#  591|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2060]
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/data-loop.c:94:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/data-loop.c:95:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   98|   	}
#   99|   
#  100|-> 	pw_log_debug("%p: new", this);
#  101|   
#  102|   	if (loop == NULL) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2061]
pipewire-1.5.81/src/pipewire/data-loop.c:103:24: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/data-loop.c:94:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/data-loop.c:95:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/data-loop.c:102:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:102:12: branch_true: following ‘true’ branch (when ‘loop’ is NULL)...
pipewire-1.5.81/src/pipewire/data-loop.c:103:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:103:24: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  101|   
#  102|   	if (loop == NULL) {
#  103|-> 		loop = pw_loop_new(props);
#  104|   		this->created = true;
#  105|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2062]
pipewire-1.5.81/src/pipewire/data-loop.c:108:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/data-loop.c:94:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/data-loop.c:95:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:100:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/data-loop.c:102:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:102:12: branch_true: following ‘true’ branch (when ‘loop’ is NULL)...
pipewire-1.5.81/src/pipewire/data-loop.c:103:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:106:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/data-loop.c:107:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:108:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/data-loop.c:108:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/data-loop.c:108:17: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  106|   	if (loop == NULL) {
#  107|   		res = -errno;
#  108|-> 		pw_log_error("%p: can't create loop: %m", this);
#  109|   		goto error_free;
#  110|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2063]
pipewire-1.5.81/src/pipewire/data-loop.c:165: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  163|   	pw_log_debug("%p: destroy", loop);
#  164|   
#  165|-> 	pw_data_loop_emit_destroy(loop);
#  166|   
#  167|   	pw_data_loop_stop(loop);

Error: CPPCHECK_WARNING (CWE-190): [#def2064]
pipewire-1.5.81/src/pipewire/device.h:155: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  153|   			void *data)
#  154|   {
#  155|-> 	return spa_api_method_r(int, -ENOTSUP,
#  156|   			pw_device, (struct spa_interface*)object, add_listener, 0,
#  157|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2065]
pipewire-1.5.81/src/pipewire/device.h:163: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  161|   PW_API_DEVICE_IMPL int pw_device_subscribe_params(struct pw_device *object, uint32_t *ids, uint32_t n_ids)
#  162|   {
#  163|-> 	return spa_api_method_r(int, -ENOTSUP,
#  164|   			pw_device, (struct spa_interface*)object, subscribe_params, 0,
#  165|   			ids, n_ids);

Error: CPPCHECK_WARNING (CWE-190): [#def2066]
pipewire-1.5.81/src/pipewire/device.h:173: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  171|   			    const struct spa_pod *filter)
#  172|   {
#  173|-> 	return spa_api_method_r(int, -ENOTSUP,
#  174|   			pw_device, (struct spa_interface*)object, enum_params, 0,
#  175|   			seq, id, start, num, filter);

Error: CPPCHECK_WARNING (CWE-190): [#def2067]
pipewire-1.5.81/src/pipewire/device.h:182: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  180|   			  const struct spa_pod *param)
#  181|   {
#  182|-> 	return spa_api_method_r(int, -ENOTSUP,
#  183|   			pw_device, (struct spa_interface*)object, set_param, 0,
#  184|   			id, flags, param);

Error: CPPCHECK_WARNING (CWE-190): [#def2068]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:315: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  313|   			void *data)
#  314|   {
#  315|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client_node, (struct spa_interface*)object,
#  316|   			add_listener, 0, listener, events, data);
#  317|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2069]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:321: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  319|   pw_client_node_get_node(struct pw_client_node *p, uint32_t version, size_t user_data_size)
#  320|   {
#  321|-> 	return spa_api_method_r(struct pw_node*, NULL, pw_client_node, (struct spa_interface*)p,
#  322|   			get_node, 0, version, user_data_size);
#  323|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2070]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:329: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  327|   			const struct spa_node_info *info)
#  328|   {
#  329|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client_node, (struct spa_interface*)object,
#  330|   			update, 0, change_mask, n_params, params, info);
#  331|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2071]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:338: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  336|   			     const struct spa_port_info *info)
#  337|   {
#  338|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client_node, (struct spa_interface*)object,
#  339|   			port_update, 0, direction, port_id, change_mask, n_params, params, info);
#  340|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2072]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:343: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  341|   PW_API_CLIENT_NODE_IMPL int pw_client_node_set_active(struct pw_client_node *object, bool active)
#  342|   {
#  343|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client_node, (struct spa_interface*)object,
#  344|   			set_active, 0, active);
#  345|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2073]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:348: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  346|   PW_API_CLIENT_NODE_IMPL int pw_client_node_event(struct pw_client_node *object, const struct spa_event *event)
#  347|   {
#  348|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client_node, (struct spa_interface*)object,
#  349|   			event, 0, event);
#  350|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2074]
pipewire-1.5.81/src/pipewire/extensions/client-node.h:355: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  353|   			  uint32_t mix_id, uint32_t n_buffers, struct spa_buffer **buffers)
#  354|   {
#  355|-> 	return spa_api_method_r(int, -ENOTSUP, pw_client_node, (struct spa_interface*)object,
#  356|   			port_buffers, 0, direction, port_id, mix_id, n_buffers, buffers);
#  357|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2075]
pipewire-1.5.81/src/pipewire/extensions/metadata.h:106: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  104|   			void *data)
#  105|   {
#  106|-> 	return spa_api_method_r(int, -ENOTSUP,
#  107|   			pw_metadata, (struct spa_interface*)object, add_listener, 0,
#  108|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2076]
pipewire-1.5.81/src/pipewire/extensions/metadata.h:118: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  116|   			const char *value)
#  117|   {
#  118|-> 	return spa_api_method_r(int, -ENOTSUP,
#  119|   			pw_metadata, (struct spa_interface*)object, set_property, 0,
#  120|   			subject, key, type, value);

Error: CPPCHECK_WARNING (CWE-190): [#def2077]
pipewire-1.5.81/src/pipewire/extensions/metadata.h:126: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  124|   PW_API_METADATA_IMPL int pw_metadata_clear(struct pw_metadata *object)
#  125|   {
#  126|-> 	return spa_api_method_r(int, -ENOTSUP,
#  127|   			pw_metadata, (struct spa_interface*)object, clear, 0);
#  128|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2078]
pipewire-1.5.81/src/pipewire/extensions/security-context.h:108: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  106|   			void *data)
#  107|   {
#  108|-> 	return spa_api_method_r(int, -ENOTSUP,
#  109|   			pw_security_context, (struct spa_interface*)object, add_listener, 0,
#  110|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2079]
pipewire-1.5.81/src/pipewire/extensions/security-context.h:118: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  116|   			int listen_fd, int close_fd, const struct spa_dict *props)
#  117|   {
#  118|-> 	return spa_api_method_r(int, -ENOTSUP,
#  119|   			pw_security_context, (struct spa_interface*)object, create, 0,
#  120|   			listen_fd, close_fd, props);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2080]
pipewire-1.5.81/src/pipewire/extensions/security-context.h:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘close_fd[0]’
pipewire-1.5.81/src/tests/test-security-context.c:92:13: enter_function: entry to ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:105:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:106:16: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:111:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:112:25: call_function: calling ‘pw_core_get_registry’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:112:25: return_function: returning to ‘test_create’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/tests/test-security-context.c:113:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:117:9: call_function: calling ‘roundtrip’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:117:9: return_function: returning to ‘test_create’ from ‘roundtrip’
pipewire-1.5.81/src/tests/test-security-context.c:119:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:122:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:123:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:124:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:129:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:131:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:133:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:136:13: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:136:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:139:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:140:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:150:26: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:148:9: call_function: calling ‘pw_security_context_create’ from ‘test_create’
#  116|   			int listen_fd, int close_fd, const struct spa_dict *props)
#  117|   {
#  118|-> 	return spa_api_method_r(int, -ENOTSUP,
#  119|   			pw_security_context, (struct spa_interface*)object, create, 0,
#  120|   			listen_fd, close_fd, props);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2081]
pipewire-1.5.81/src/pipewire/extensions/security-context.h:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘close_fd[1]’
pipewire-1.5.81/src/tests/test-security-context.c:92:13: enter_function: entry to ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:105:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:106:16: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:111:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:112:25: call_function: calling ‘pw_core_get_registry’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:112:25: return_function: returning to ‘test_create’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/tests/test-security-context.c:113:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:117:9: call_function: calling ‘roundtrip’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:117:9: return_function: returning to ‘test_create’ from ‘roundtrip’
pipewire-1.5.81/src/tests/test-security-context.c:119:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:122:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:123:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:124:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:129:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:131:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:133:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:136:13: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:136:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:139:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:140:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:150:26: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:148:9: call_function: calling ‘pw_security_context_create’ from ‘test_create’
#  116|   			int listen_fd, int close_fd, const struct spa_dict *props)
#  117|   {
#  118|-> 	return spa_api_method_r(int, -ENOTSUP,
#  119|   			pw_security_context, (struct spa_interface*)object, create, 0,
#  120|   			listen_fd, close_fd, props);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2082]
pipewire-1.5.81/src/pipewire/extensions/security-context.h:118:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘listen_fd’
pipewire-1.5.81/src/tests/test-security-context.c:92:13: enter_function: entry to ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:105:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:106:16: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:111:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:112:25: call_function: calling ‘pw_core_get_registry’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:112:25: return_function: returning to ‘test_create’ from ‘pw_core_get_registry’
pipewire-1.5.81/src/tests/test-security-context.c:113:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:115:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:117:9: call_function: calling ‘roundtrip’ from ‘test_create’
pipewire-1.5.81/src/tests/test-security-context.c:117:9: return_function: returning to ‘test_create’ from ‘roundtrip’
pipewire-1.5.81/src/tests/test-security-context.c:119:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:122:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:123:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:124:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:128:21: acquire_resource: stream socket created here
pipewire-1.5.81/src/tests/test-security-context.c:129:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:131:9: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:133:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:136:13: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:136:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:139:15: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:140:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tests/test-security-context.c:150:26: branch_false: ...to here
pipewire-1.5.81/src/tests/test-security-context.c:148:9: call_function: calling ‘pw_security_context_create’ from ‘test_create’
#  116|   			int listen_fd, int close_fd, const struct spa_dict *props)
#  117|   {
#  118|-> 	return spa_api_method_r(int, -ENOTSUP,
#  119|   			pw_security_context, (struct spa_interface*)object, create, 0,
#  120|   			listen_fd, close_fd, props);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2083]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:49:46: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
#   47|   	if (update->change_mask & PW_SESSION_CHANGE_MASK_PROPS) {
#   48|   		if (!ext->props_storage) {
#   49|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#   50|   			info->props = &ext->props_storage->dict;
#   51|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2084]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:52:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
#   50|   			info->props = &ext->props_storage->dict;
#   51|   		}
#   52|-> 		pw_properties_clear(ext->props_storage);
#   53|   		pw_properties_update(ext->props_storage, update->props);
#   54|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2085]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:53:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
#   51|   		}
#   52|   		pw_properties_clear(ext->props_storage);
#   53|-> 		pw_properties_update(ext->props_storage, update->props);
#   54|   	}
#   55|   	if (update->change_mask & PW_SESSION_CHANGE_MASK_PARAMS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2086]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:55:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
#   53|   		pw_properties_update(ext->props_storage, update->props);
#   54|   	}
#   55|-> 	if (update->change_mask & PW_SESSION_CHANGE_MASK_PARAMS) {
#   56|   		info->n_params = update->n_params;
#   57|   		free((void *) info->params);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2087]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.5.81/src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
#   59|   			size_t size = info->n_params * sizeof(struct spa_param_info);
#   60|   			info->params = (struct spa_param_info *) malloc(size);
#   61|-> 			memcpy(info->params, update->params, size);
#   62|   		}
#   63|   		else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2088]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
#   59|   			size_t size = info->n_params * sizeof(struct spa_param_info);
#   60|   			info->params = (struct spa_param_info *) malloc(size);
#   61|-> 			memcpy(info->params, update->params, size);
#   62|   		}
#   63|   		else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2089]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:119:46: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  117|   	if (update->change_mask & PW_ENDPOINT_CHANGE_MASK_PROPS) {
#  118|   		if (!ext->props_storage) {
#  119|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#  120|   			info->props = &ext->props_storage->dict;
#  121|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2090]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:119:46: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  117|   	if (update->change_mask & PW_ENDPOINT_CHANGE_MASK_PROPS) {
#  118|   		if (!ext->props_storage) {
#  119|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#  120|   			info->props = &ext->props_storage->dict;
#  121|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2091]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:122:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  120|   			info->props = &ext->props_storage->dict;
#  121|   		}
#  122|-> 		pw_properties_clear(ext->props_storage);
#  123|   		pw_properties_update(ext->props_storage, update->props);
#  124|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2092]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:122:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  120|   			info->props = &ext->props_storage->dict;
#  121|   		}
#  122|-> 		pw_properties_clear(ext->props_storage);
#  123|   		pw_properties_update(ext->props_storage, update->props);
#  124|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2093]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:123:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  121|   		}
#  122|   		pw_properties_clear(ext->props_storage);
#  123|-> 		pw_properties_update(ext->props_storage, update->props);
#  124|   	}
#  125|   	if (update->change_mask & PW_ENDPOINT_CHANGE_MASK_PARAMS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2094]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:123:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  121|   		}
#  122|   		pw_properties_clear(ext->props_storage);
#  123|-> 		pw_properties_update(ext->props_storage, update->props);
#  124|   	}
#  125|   	if (update->change_mask & PW_ENDPOINT_CHANGE_MASK_PARAMS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2095]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:125:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  123|   		pw_properties_update(ext->props_storage, update->props);
#  124|   	}
#  125|-> 	if (update->change_mask & PW_ENDPOINT_CHANGE_MASK_PARAMS) {
#  126|   		info->n_params = update->n_params;
#  127|   		free((void *) info->params);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2096]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:131:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
#  129|   			size_t size = info->n_params * sizeof(struct spa_param_info);
#  130|   			info->params = (struct spa_param_info *) malloc(size);
#  131|-> 			memcpy(info->params, update->params, size);
#  132|   		}
#  133|   		else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2097]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:183:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.link_params’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  181|   	if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_LINK_PARAMS) {
#  182|   		free(info->link_params);
#  183|-> 		info->link_params = update->link_params ?
#  184|   			spa_pod_copy(update->link_params) : NULL;
#  185|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2098]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:188:46: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  186|   	if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PROPS) {
#  187|   		if (!ext->props_storage) {
#  188|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#  189|   			info->props = &ext->props_storage->dict;
#  190|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2099]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:188:46: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  186|   	if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PROPS) {
#  187|   		if (!ext->props_storage) {
#  188|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#  189|   			info->props = &ext->props_storage->dict;
#  190|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2100]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:191:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  189|   			info->props = &ext->props_storage->dict;
#  190|   		}
#  191|-> 		pw_properties_clear(ext->props_storage);
#  192|   		pw_properties_update(ext->props_storage, update->props);
#  193|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2101]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:191:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  189|   			info->props = &ext->props_storage->dict;
#  190|   		}
#  191|-> 		pw_properties_clear(ext->props_storage);
#  192|   		pw_properties_update(ext->props_storage, update->props);
#  193|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2102]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:192:17: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  190|   		}
#  191|   		pw_properties_clear(ext->props_storage);
#  192|-> 		pw_properties_update(ext->props_storage, update->props);
#  193|   	}
#  194|   	if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PARAMS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2103]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:192:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  190|   		}
#  191|   		pw_properties_clear(ext->props_storage);
#  192|-> 		pw_properties_update(ext->props_storage, update->props);
#  193|   	}
#  194|   	if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PARAMS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2104]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:194:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  192|   		pw_properties_update(ext->props_storage, update->props);
#  193|   	}
#  194|-> 	if (update->change_mask & PW_ENDPOINT_STREAM_CHANGE_MASK_PARAMS) {
#  195|   		info->n_params = update->n_params;
#  196|   		free((void *) info->params);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2105]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:200:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
#  198|   			size_t size = info->n_params * sizeof(struct spa_param_info);
#  199|   			info->params = (struct spa_param_info *) malloc(size);
#  200|-> 			memcpy(info->params, update->params, size);
#  201|   		}
#  202|   		else

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2106]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:257:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.error’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  255|   		info->state = update->state;
#  256|   		free(info->error);
#  257|-> 		info->error = update->error ? strdup(update->error) : NULL;
#  258|   	}
#  259|   	if (update->change_mask & PW_ENDPOINT_LINK_CHANGE_MASK_PROPS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2107]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:261:46: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  259|   	if (update->change_mask & PW_ENDPOINT_LINK_CHANGE_MASK_PROPS) {
#  260|   		if (!ext->props_storage) {
#  261|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#  262|   			info->props = &ext->props_storage->dict;
#  263|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2108]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:261:46: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  259|   	if (update->change_mask & PW_ENDPOINT_LINK_CHANGE_MASK_PROPS) {
#  260|   		if (!ext->props_storage) {
#  261|-> 			ext->props_storage = pw_properties_new(NULL, NULL);
#  262|   			info->props = &ext->props_storage->dict;
#  263|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2109]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:264:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  262|   			info->props = &ext->props_storage->dict;
#  263|   		}
#  264|-> 		pw_properties_clear(ext->props_storage);
#  265|   		pw_properties_update(ext->props_storage, update->props);
#  266|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2110]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:265:17: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  263|   		}
#  264|   		pw_properties_clear(ext->props_storage);
#  265|-> 		pw_properties_update(ext->props_storage, update->props);
#  266|   	}
#  267|   	if (update->change_mask & PW_ENDPOINT_LINK_CHANGE_MASK_PARAMS) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2111]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:267:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  265|   		pw_properties_update(ext->props_storage, update->props);
#  266|   	}
#  267|-> 	if (update->change_mask & PW_ENDPOINT_LINK_CHANGE_MASK_PARAMS) {
#  268|   		info->n_params = update->n_params;
#  269|   		free((void *) info->params);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2112]
pipewire-1.5.81/src/pipewire/extensions/session-manager/introspect-funcs.h:273:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.5.81/src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
#  271|   			size_t size = info->n_params * sizeof(struct spa_param_info);
#  272|   			info->params = (struct spa_param_info *) malloc(size);
#  273|-> 			memcpy(info->params, update->params, size);
#  274|   		}
#  275|   		else

Error: CPPCHECK_WARNING (CWE-190): [#def2113]
pipewire-1.5.81/src/pipewire/factory.h:97: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   95|   			void *data)
#   96|   {
#   97|-> 	return spa_api_method_r(int, -ENOTSUP,
#   98|   			pw_factory, (struct spa_interface*)object, add_listener, 0,
#   99|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-476): [#def2114]
pipewire-1.5.81/src/pipewire/filter.c:334: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  332|   
#  333|   	p = calloc(1, sizeof(struct port) + user_data_size);
#  334|-> 	p->filter = filter;
#  335|   	p->direction = direction;
#  336|   	p->latency[SPA_DIRECTION_INPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);

Error: CPPCHECK_WARNING (CWE-476): [#def2115]
pipewire-1.5.81/src/pipewire/filter.c:335: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  333|   	p = calloc(1, sizeof(struct port) + user_data_size);
#  334|   	p->filter = filter;
#  335|-> 	p->direction = direction;
#  336|   	p->latency[SPA_DIRECTION_INPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);
#  337|   	p->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);

Error: CPPCHECK_WARNING (CWE-476): [#def2116]
pipewire-1.5.81/src/pipewire/filter.c:336: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  334|   	p->filter = filter;
#  335|   	p->direction = direction;
#  336|-> 	p->latency[SPA_DIRECTION_INPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);
#  337|   	p->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
#  338|   

Error: CPPCHECK_WARNING (CWE-476): [#def2117]
pipewire-1.5.81/src/pipewire/filter.c:337: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  335|   	p->direction = direction;
#  336|   	p->latency[SPA_DIRECTION_INPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_INPUT);
#  337|-> 	p->latency[SPA_DIRECTION_OUTPUT] = SPA_LATENCY_INFO(SPA_DIRECTION_OUTPUT);
#  338|   
#  339|   	spa_list_init(&p->param_list);

Error: CPPCHECK_WARNING (CWE-476): [#def2118]
pipewire-1.5.81/src/pipewire/filter.c:342: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: p
#  340|   	spa_ringbuffer_init(&p->dequeued.ring);
#  341|   	spa_ringbuffer_init(&p->queued.ring);
#  342|-> 	p->id = pw_map_insert_new(&filter->ports[direction], p);
#  343|   	spa_list_append(&filter->port_list, &p->link);
#  344|   

Error: CPPCHECK_WARNING (CWE-190): [#def2119]
pipewire-1.5.81/src/pipewire/filter.c:413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  411|   
#  412|   		filter->state = state;
#  413|-> 		pw_filter_emit_state_changed(filter, old, state, error);
#  414|   	}
#  415|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def2120]
pipewire-1.5.81/src/pipewire/filter.c:452: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  450|   		spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
#  451|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  452|-> 			spa_node_emit_result(&d->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  453|   			count++;
#  454|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def2121]
pipewire-1.5.81/src/pipewire/filter.c:475: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  473|   	struct pw_filter *filter = &impl->this;
#  474|   	if (impl->in_emit_param_changed++ == 0)
#  475|-> 		pw_filter_emit_param_changed(filter, port, id, param);
#  476|   	impl->in_emit_param_changed--;
#  477|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2122]
pipewire-1.5.81/src/pipewire/filter.c:492: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  490|   	pw_log_debug("%p: io %d %p/%zd", impl, id, data, size);
#  491|   
#  492|-> 	pw_filter_emit_io_changed(&impl->this, NULL, id, data, size);
#  493|   
#  494|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2123]
pipewire-1.5.81/src/pipewire/filter.c:545: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  543|   			}
#  544|   		}
#  545|-> 		spa_node_emit_info(&d->hooks, &d->info);
#  546|   	}
#  547|   	d->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def2124]
pipewire-1.5.81/src/pipewire/filter.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   			}
#  564|   		}
#  565|-> 		spa_node_emit_port_info(&d->hooks, p->direction, p->id, &p->info);
#  566|   	}
#  567|   	p->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def2125]
pipewire-1.5.81/src/pipewire/filter.c:622: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  620|   	}
#  621|   
#  622|-> 	pw_filter_emit_io_changed(&impl->this, port->user_data, id, data, size);
#  623|   
#  624|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2126]
pipewire-1.5.81/src/pipewire/filter.c:746: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  744|   
#  745|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_ADDED))
#  746|-> 			pw_filter_emit_remove_buffer(&impl->this, port->user_data, &b->this);
#  747|   
#  748|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_MAPPED)) {

Error: CPPCHECK_WARNING (CWE-190): [#def2127]
pipewire-1.5.81/src/pipewire/filter.c:958: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  956|   		SPA_FLAG_SET(b->flags, BUFFER_FLAG_ADDED);
#  957|   
#  958|-> 		pw_filter_emit_add_buffer(filter, port->user_data, &b->this);
#  959|   	}
#  960|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2128]
pipewire-1.5.81/src/pipewire/filter.c:991: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  989|   	struct pw_filter *filter = &impl->this;
#  990|   	pw_log_trace("%p: drained", filter);
#  991|-> 	pw_filter_emit_drained(filter);
#  992|   	SPA_ATOMIC_DEC(impl->pending_drain);
#  993|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2129]
pipewire-1.5.81/src/pipewire/filter.c:1133: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1131|   	 * do a pw_filter_set_error() */
# 1132|   	errno = -res;
# 1133|-> 	pw_filter_emit_state_changed(filter, filter->state,
# 1134|   			PW_FILTER_STATE_ERROR, message);
# 1135|   	errno = old_errno;

Error: CPPCHECK_WARNING (CWE-190): [#def2130]
pipewire-1.5.81/src/pipewire/filter.c:1384: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1382|   {
# 1383|   	spa_list_remove(&port->link);
# 1384|-> 	spa_node_emit_port_info(&impl->hooks, port->direction, port->id, NULL);
# 1385|   	pw_map_remove(&impl->ports[port->direction], port->id);
# 1386|   	clear_buffers(port);

Error: CPPCHECK_WARNING (CWE-190): [#def2131]
pipewire-1.5.81/src/pipewire/filter.c:1402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1400|   	pw_log_debug("%p: destroy", filter);
# 1401|   
# 1402|-> 	pw_filter_emit_destroy(filter);
# 1403|   
# 1404|   	if (!impl->disconnecting)

Error: CPPCHECK_WARNING (CWE-190): [#def2132]
pipewire-1.5.81/src/pipewire/filter.c:2121: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2119|   	struct filter *impl = user_data;
# 2120|   	const struct spa_event *event = data;
# 2121|-> 	spa_node_emit_event(&impl->hooks, event);
# 2122|   	return 0;
# 2123|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2133]
pipewire-1.5.81/src/pipewire/global.c:83:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/global.c:47:1: enter_function: entry to ‘pw_global_new’
pipewire-1.5.81/src/pipewire/global.c:65:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/global.c:66:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/global.c:71:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/global.c:80:20: call_function: calling ‘pw_map_insert_new’ from ‘pw_global_new’
pipewire-1.5.81/src/pipewire/global.c:80:20: return_function: returning to ‘pw_global_new’ from ‘pw_map_insert_new’
pipewire-1.5.81/src/pipewire/global.c:81:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/global.c:82:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/global.c:83:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/global.c:83:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/global.c:83:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#   81|   	if (this->id == SPA_ID_INVALID) {
#   82|   		res = -errno;
#   83|-> 		pw_log_error("%p: can't allocate new id: %m", this);
#   84|   		goto error_free;
#   85|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2134]
pipewire-1.5.81/src/pipewire/global.c:148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  146|   				registry, global->id, permissions, global->serial, global->generation);
#  147|   		if (PW_PERM_IS_R(permissions))
#  148|-> 			pw_registry_resource_global(registry,
#  149|   						    global->id,
#  150|   						    permissions,

Error: CPPCHECK_WARNING (CWE-190): [#def2135]
pipewire-1.5.81/src/pipewire/global.c:171: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  169|   					" generation:%"PRIu64, client, global->id, permissions, global->serial,
#  170|   					global->generation);
#  171|-> 			pw_core_resource_done(client->core_resource, SPA_ID_INVALID, 0);
#  172|   		}
#  173|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2136]
pipewire-1.5.81/src/pipewire/global.c:176: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  174|   
#  175|   	pw_log_debug("%p: registered %u", global, global->id);
#  176|-> 	pw_context_emit_global_added(context, global);
#  177|   
#  178|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2137]
pipewire-1.5.81/src/pipewire/global.c:193: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  191|   		pw_log_debug("registry %p: global %d %08x", resource, global->id, permissions);
#  192|   		if (PW_PERM_IS_R(permissions))
#  193|-> 			pw_registry_resource_global_remove(resource, global->id);
#  194|   	}
#  195|   

Error: CPPCHECK_WARNING (CWE-190): [#def2138]
pipewire-1.5.81/src/pipewire/global.c:201: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  199|   
#  200|   	pw_log_debug("%p: unregistered %u", global, global->id);
#  201|-> 	pw_context_emit_global_removed(context, global);
#  202|   
#  203|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2139]
pipewire-1.5.81/src/pipewire/global.c:335: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  333|   	pw_map_insert_at(&client->objects, id, NULL);
#  334|   	if (client->core_resource)
#  335|-> 		pw_core_resource_remove_id(client->core_resource, id);
#  336|   	return res;
#  337|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2140]
pipewire-1.5.81/src/pipewire/global.c:353: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  351|   			global, client, global->id, old_permissions, new_permissions);
#  352|   
#  353|-> 	pw_global_emit_permissions_changed(global, client, old_permissions, new_permissions);
#  354|   
#  355|   	spa_list_for_each(resource, &context->registry_resource_list, link) {

Error: CPPCHECK_WARNING (CWE-190): [#def2141]
pipewire-1.5.81/src/pipewire/global.c:362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  360|   			pw_log_debug("client %p: resource %p hide global %d",
#  361|   					client, resource, global->id);
#  362|-> 			pw_registry_resource_global_remove(resource, global->id);
#  363|   		}
#  364|   		else if (do_show) {

Error: CPPCHECK_WARNING (CWE-190): [#def2142]
pipewire-1.5.81/src/pipewire/global.c:367: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  365|   			pw_log_debug("client %p: resource %p show global %d serial:%"PRIu64,
#  366|   					client, resource, global->id, global->serial);
#  367|-> 			pw_registry_resource_global(resource,
#  368|   						    global->id,
#  369|   						    new_permissions,

Error: CPPCHECK_WARNING (CWE-190): [#def2143]
pipewire-1.5.81/src/pipewire/global.c:406: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  404|   
#  405|   	pw_log_debug("%p: destroy %u", global, global->id);
#  406|-> 	pw_global_emit_destroy(global);
#  407|   
#  408|   	spa_list_consume(resource, &global->resource_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def2144]
pipewire-1.5.81/src/pipewire/global.c:414: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  412|   
#  413|   	pw_log_debug("%p: free", global);
#  414|-> 	pw_global_emit_free(global);
#  415|   
#  416|   	pw_map_remove(&context->globals, global->id);

Error: CPPCHECK_WARNING (CWE-190): [#def2145]
pipewire-1.5.81/src/pipewire/impl-client.c:228: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  226|   	client->info.change_mask |= PW_CLIENT_CHANGE_MASK_PROPS;
#  227|   
#  228|-> 	pw_impl_client_emit_info_changed(client, &client->info);
#  229|   
#  230|   	if (client->global) {

Error: CPPCHECK_WARNING (CWE-190): [#def2146]
pipewire-1.5.81/src/pipewire/impl-client.c:233: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  231|   		pw_global_update_keys(client->global, client->info.props, global_keys);
#  232|   		spa_list_for_each(resource, &client->global->resource_list, link)
#  233|-> 			pw_client_resource_info(resource, &client->info);
#  234|   	}
#  235|   

Error: CPPCHECK_WARNING (CWE-190): [#def2147]
pipewire-1.5.81/src/pipewire/impl-client.c:260: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  258|   	current = client->context->current_client;
#  259|   	client->context->current_client = NULL;
#  260|-> 	pw_context_emit_check_access(client->context, client);
#  261|   	client->context->current_client = current;
#  262|   

Error: CPPCHECK_WARNING (CWE-190): [#def2148]
pipewire-1.5.81/src/pipewire/impl-client.c:306: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  304|   		num = len - index;
#  305|   
#  306|-> 	pw_client_resource_permissions(resource, index,
#  307|   			num, pw_array_get_unchecked(&impl->permissions, index, struct pw_permission));
#  308|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2149]
pipewire-1.5.81/src/pipewire/impl-client.c:372: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  370|   
#  371|   	this->info.change_mask = PW_CLIENT_CHANGE_MASK_ALL;
#  372|-> 	pw_client_resource_info(resource, &this->info);
#  373|   	this->info.change_mask = 0;
#  374|   

Error: CPPCHECK_WARNING (CWE-190): [#def2150]
pipewire-1.5.81/src/pipewire/impl-client.c:389: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  387|   	pw_log_debug("%p: added block %d", client, block->id);
#  388|   	if (client->core_resource) {
#  389|-> 		pw_core_resource_add_mem(client->core_resource,
#  390|   				block->id, block->type, block->fd,
#  391|   				block->flags & (PW_MEMBLOCK_FLAG_READWRITE | PW_MEMBLOCK_FLAG_UNMAPPABLE));

Error: CPPCHECK_WARNING (CWE-190): [#def2151]
pipewire-1.5.81/src/pipewire/impl-client.c:401: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  399|   	pw_log_debug("%p: removed block %d", client, block->id);
#  400|   	if (client->core_resource)
#  401|-> 		pw_core_resource_remove_mem(client->core_resource, block->id);
#  402|   }
#  403|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2152]
pipewire-1.5.81/src/pipewire/impl-client.c:453:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/impl-client.c:446:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-client.c:447:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-client.c:452:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-client.c:453:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-client.c:453:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-client.c:453:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  451|   
#  452|   	this = &impl->this;
#  453|-> 	pw_log_debug("%p: new", this);
#  454|   
#  455|   	this->refcount = 1;

Error: CPPCHECK_WARNING (CWE-190): [#def2153]
pipewire-1.5.81/src/pipewire/impl-client.c:567: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  565|   	pw_global_update_keys(client->global, client->info.props, keys);
#  566|   
#  567|-> 	pw_impl_client_emit_initialized(client);
#  568|   
#  569|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2154]
pipewire-1.5.81/src/pipewire/impl-client.c:644: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  642|   	assert(client->destroyed);
#  643|   
#  644|-> 	pw_impl_client_emit_free(client);
#  645|   
#  646|   	spa_hook_list_clean(&client->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def2155]
pipewire-1.5.81/src/pipewire/impl-client.c:674: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  672|   	client->destroyed = true;
#  673|   
#  674|-> 	pw_impl_client_emit_destroy(client);
#  675|   
#  676|   	spa_hook_remove(&impl->context_listener);

Error: CPPCHECK_WARNING (CWE-190): [#def2156]
pipewire-1.5.81/src/pipewire/impl-client.c:800: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  798|   		pw_log_debug("%p: busy %d", client, busy);
#  799|   		client->busy = busy;
#  800|-> 		pw_impl_client_emit_busy_changed(client, busy);
#  801|   	}
#  802|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2157]
pipewire-1.5.81/src/pipewire/impl-core.c:78: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   76|   	 * new_id as 'used and freed' */
#   77|   	pw_map_insert_at(&client->objects, new_id, NULL);
#   78|-> 	pw_core_resource_remove_id(client->core_resource, new_id);
#   79|   	return NULL;
#   80|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2158]
pipewire-1.5.81/src/pipewire/impl-core.c:182: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  180|   
#  181|   	this->info.change_mask = PW_CORE_CHANGE_MASK_ALL;
#  182|-> 	pw_core_resource_info(resource, &this->info);
#  183|   
#  184|   	if (version >= 3) {

Error: CPPCHECK_WARNING (CWE-190): [#def2159]
pipewire-1.5.81/src/pipewire/impl-core.c:196: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  194|   	struct pw_resource *resource = object;
#  195|   	pw_log_trace("%p: sync %d for resource %d", resource->context, seq, id);
#  196|-> 	pw_core_resource_done(resource, id, seq);
#  197|   	return 0;
#  198|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2160]
pipewire-1.5.81/src/pipewire/impl-core.c:211: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  209|   		return -EINVAL;
#  210|   
#  211|-> 	pw_resource_emit_pong(r, seq);
#  212|   	return 0;
#  213|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2161]
pipewire-1.5.81/src/pipewire/impl-core.c:226: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  224|   		return -EINVAL;
#  225|   
#  226|-> 	pw_resource_emit_error(r, seq, res, message);
#  227|   	return 0;
#  228|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2162]
pipewire-1.5.81/src/pipewire/impl-core.c:268: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  266|   		uint32_t permissions = pw_global_get_permissions(global, client);
#  267|   		if (PW_PERM_IS_R(permissions)) {
#  268|-> 			pw_registry_resource_global(registry_resource,
#  269|   						    global->id,
#  270|   						    permissions,

Error: CPPCHECK_WARNING (CWE-190): [#def2163]
pipewire-1.5.81/src/pipewire/impl-core.c:285: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  283|   			res, spa_strerror(res));
#  284|   	pw_map_insert_at(&client->objects, new_id, NULL);
#  285|-> 	pw_core_resource_remove_id(client->core_resource, new_id);
#  286|   	errno = -res;
#  287|   	return NULL;

Error: CPPCHECK_WARNING (CWE-190): [#def2164]
pipewire-1.5.81/src/pipewire/impl-core.c:357: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  355|   error_exit:
#  356|   	pw_map_insert_at(&client->objects, new_id, NULL);
#  357|-> 	pw_core_resource_remove_id(client->core_resource, new_id);
#  358|   	errno = -res;
#  359|   	return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2165]
pipewire-1.5.81/src/pipewire/impl-core.c:407:21: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:407:21: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  405|   	this->properties = properties;
#  406|   
#  407|-> 	if ((name = pw_properties_get(properties, PW_KEY_CORE_NAME)) == NULL) {
#  408|   		pw_properties_setf(properties,
#  409|   				   PW_KEY_CORE_NAME, "pipewire-%s-%d",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2166]
pipewire-1.5.81/src/pipewire/impl-core.c:408:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:407:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-core.c:408:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:408:17: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  406|   
#  407|   	if ((name = pw_properties_get(properties, PW_KEY_CORE_NAME)) == NULL) {
#  408|-> 		pw_properties_setf(properties,
#  409|   				   PW_KEY_CORE_NAME, "pipewire-%s-%d",
#  410|   				   pw_get_user_name(), getpid());

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2167]
pipewire-1.5.81/src/pipewire/impl-core.c:411:24: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:407:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-core.c:408:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:411:24: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  409|   				   PW_KEY_CORE_NAME, "pipewire-%s-%d",
#  410|   				   pw_get_user_name(), getpid());
#  411|-> 		name = pw_properties_get(properties, PW_KEY_CORE_NAME);
#  412|   	}
#  413|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2168]
pipewire-1.5.81/src/pipewire/impl-core.c:414:32: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:414:32: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  412|   	}
#  413|   
#  414|-> 	this->info.user_name = pw_get_user_name();
#  415|   	this->info.host_name = pw_get_host_name();
#  416|   	this->info.version = pw_get_library_version();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2169]
pipewire-1.5.81/src/pipewire/impl-core.c:415:32: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:415:32: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  413|   
#  414|   	this->info.user_name = pw_get_user_name();
#  415|-> 	this->info.host_name = pw_get_host_name();
#  416|   	this->info.version = pw_get_library_version();
#  417|   	this->info.cookie = pw_rand32();

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2170]
pipewire-1.5.81/src/pipewire/impl-core.c:416:30: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:416:30: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  414|   	this->info.user_name = pw_get_user_name();
#  415|   	this->info.host_name = pw_get_host_name();
#  416|-> 	this->info.version = pw_get_library_version();
#  417|   	this->info.cookie = pw_rand32();
#  418|   	this->info.name = name;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2171]
pipewire-1.5.81/src/pipewire/impl-core.c:417:29: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:417:29: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  415|   	this->info.host_name = pw_get_host_name();
#  416|   	this->info.version = pw_get_library_version();
#  417|-> 	this->info.cookie = pw_rand32();
#  418|   	this->info.name = name;
#  419|   	this->info.props = &this->properties->dict;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2172]
pipewire-1.5.81/src/pipewire/impl-core.c:425:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-core.c:398:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-core.c:399:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-core.c:404:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:425:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-core.c:425:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-core.c:425:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  423|   		this->user_data = SPA_PTROFF(this, sizeof(*this), void);
#  424|   
#  425|-> 	pw_log_debug("%p: new %s", this, name);
#  426|   
#  427|   	return this;

Error: CPPCHECK_WARNING (CWE-190): [#def2173]
pipewire-1.5.81/src/pipewire/impl-core.c:446: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  444|   {
#  445|   	pw_log_debug("%p: destroy", core);
#  446|-> 	pw_impl_core_emit_destroy(core);
#  447|   
#  448|   	if (core->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def2174]
pipewire-1.5.81/src/pipewire/impl-core.c:456: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  454|   	}
#  455|   
#  456|-> 	pw_impl_core_emit_free(core);
#  457|   	pw_log_debug("%p: free", core);
#  458|   

Error: CPPCHECK_WARNING (CWE-190): [#def2175]
pipewire-1.5.81/src/pipewire/impl-core.c:517: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  515|   	else {
#  516|   		this->info.change_mask = PW_CORE_CHANGE_MASK_ALL;
#  517|-> 		pw_core_resource_info(resource, &this->info);
#  518|   		this->info.change_mask = 0;
#  519|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2176]
pipewire-1.5.81/src/pipewire/impl-core.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   	if (core->global)
#  564|   		spa_list_for_each(resource, &core->global->resource_list, link)
#  565|-> 			pw_core_resource_info(resource, &core->info);
#  566|   	core->info.change_mask = 0;
#  567|   

Error: CPPCHECK_WARNING (CWE-190): [#def2177]
pipewire-1.5.81/src/pipewire/impl-core.c:609: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  607|   	pw_global_update_keys(core->global, core->info.props, keys);
#  608|   
#  609|-> 	pw_impl_core_emit_initialized(core);
#  610|   
#  611|   	pw_global_add_listener(core->global, &core->global_listener, &global_events, core);

Error: CPPCHECK_WARNING (CWE-190): [#def2178]
pipewire-1.5.81/src/pipewire/impl-device.c:227: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  225|   
#  226|   	pw_log_debug("%p: destroy", device);
#  227|-> 	pw_impl_device_emit_destroy(device);
#  228|   
#  229|   	spa_list_consume(od, &device->object_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def2179]
pipewire-1.5.81/src/pipewire/impl-device.c:243: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  241|   	}
#  242|   	pw_log_debug("%p: free", device);
#  243|-> 	pw_impl_device_emit_free(device);
#  244|   
#  245|   	pw_param_clear(&impl->param_list, SPA_ID_INVALID);

Error: CPPCHECK_WARNING (CWE-190): [#def2180]
pipewire-1.5.81/src/pipewire/impl-device.c:414: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  412|   {
#  413|   	struct resource_data *d = data;
#  414|-> 	pw_device_resource_param(d->resource, seq, id, index, next, param);
#  415|   	return 0;
#  416|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2181]
pipewire-1.5.81/src/pipewire/impl-device.c:568: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  566|   
#  567|   	this->info.change_mask = PW_DEVICE_CHANGE_MASK_ALL;
#  568|-> 	pw_device_resource_info(resource, &this->info);
#  569|   	this->info.change_mask = 0;
#  570|   

Error: CPPCHECK_WARNING (CWE-190): [#def2182]
pipewire-1.5.81/src/pipewire/impl-device.c:621: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  619|   	pw_global_update_keys(device->global, device->info.props, global_keys);
#  620|   
#  621|-> 	pw_impl_device_emit_initialized(device);
#  622|   
#  623|   	pw_global_add_listener(device->global, &device->global_listener, &global_events, device);

Error: CPPCHECK_WARNING (CWE-190): [#def2183]
pipewire-1.5.81/src/pipewire/impl-device.c:666: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  664|   	struct pw_resource *resource;
#  665|   
#  666|-> 	pw_impl_device_emit_info_changed(device, &device->info);
#  667|   
#  668|   	if (device->global) {

Error: CPPCHECK_WARNING (CWE-190): [#def2184]
pipewire-1.5.81/src/pipewire/impl-device.c:672: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  670|   			pw_global_update_keys(device->global, device->info.props, global_keys);
#  671|   		spa_list_for_each(resource, &device->global->resource_list, link)
#  672|-> 			pw_device_resource_info(resource, &device->info);
#  673|   	}
#  674|   	device->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2185]
pipewire-1.5.81/src/pipewire/impl-device.c:723: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  721|   
#  722|   		pw_log_debug("%p: resource %p notify param %d", device, resource, id);
#  723|-> 		pw_device_resource_param(resource, seq, id, index, next, param);
#  724|   	}
#  725|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2186]
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/pipewire/impl-factory.c:37:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-factory.c:42:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-factory.c:45:27: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: danger: ‘<unknown>’ leaks here; was allocated at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   52|   		this->user_data = SPA_PTROFF(this, sizeof(*this), void);
#   53|   
#   54|-> 	pw_log_debug("%p: new %s", this, name);
#   55|   
#   56|   	return this;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2187]
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/impl-factory.c:36:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-factory.c:37:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-factory.c:42:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-factory.c:54:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   52|   		this->user_data = SPA_PTROFF(this, sizeof(*this), void);
#   53|   
#   54|-> 	pw_log_debug("%p: new %s", this, name);
#   55|   
#   56|   	return this;

Error: CPPCHECK_WARNING (CWE-190): [#def2188]
pipewire-1.5.81/src/pipewire/impl-factory.c:68: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   66|   {
#   67|   	pw_log_debug("%p: destroy", factory);
#   68|-> 	pw_impl_factory_emit_destroy(factory);
#   69|   
#   70|   	if (factory->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def2189]
pipewire-1.5.81/src/pipewire/impl-factory.c:78: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   76|   	}
#   77|   
#   78|-> 	pw_impl_factory_emit_free(factory);
#   79|   	pw_log_debug("%p: free", factory);
#   80|   

Error: CPPCHECK_WARNING (CWE-190): [#def2190]
pipewire-1.5.81/src/pipewire/impl-factory.c:106: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  104|   
#  105|   	this->info.change_mask = PW_FACTORY_CHANGE_MASK_ALL;
#  106|-> 	pw_factory_resource_info(resource, &this->info);
#  107|   	this->info.change_mask = 0;
#  108|   

Error: CPPCHECK_WARNING (CWE-190): [#def2191]
pipewire-1.5.81/src/pipewire/impl-factory.c:151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  149|   	if (factory->global)
#  150|   		spa_list_for_each(resource, &factory->global->resource_list, link)
#  151|-> 			pw_factory_resource_info(resource, &factory->info);
#  152|   	factory->info.change_mask = 0;
#  153|   

Error: CPPCHECK_WARNING (CWE-190): [#def2192]
pipewire-1.5.81/src/pipewire/impl-factory.c:197: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  195|   	pw_global_update_keys(factory->global, factory->info.props, keys);
#  196|   
#  197|-> 	pw_impl_factory_emit_initialized(factory);
#  198|   
#  199|   	pw_global_add_listener(factory->global, &factory->global_listener, &global_events, factory);

Error: CPPCHECK_WARNING (CWE-190): [#def2193]
pipewire-1.5.81/src/pipewire/impl-factory.c:253: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  251|   {
#  252|   	void *res = NULL;
#  253|-> 	spa_callbacks_call_res(&factory->impl,
#  254|   			struct pw_impl_factory_implementation,
#  255|   			res, create_object, 0,

Error: CPPCHECK_WARNING (CWE-190): [#def2194]
pipewire-1.5.81/src/pipewire/impl-link.c:66: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   64|   		return;
#   65|   
#   66|-> 	pw_impl_link_emit_info_changed(link, &link->info);
#   67|   
#   68|   	if (link->global)

Error: CPPCHECK_WARNING (CWE-190): [#def2195]
pipewire-1.5.81/src/pipewire/impl-link.c:70: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   68|   	if (link->global)
#   69|   		spa_list_for_each(resource, &link->global->resource_list, link)
#   70|-> 			pw_link_resource_info(resource, &link->info);
#   71|   
#   72|   	link->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2196]
pipewire-1.5.81/src/pipewire/impl-link.c:119: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  117|   	}
#  118|   
#  119|-> 	pw_impl_link_emit_state_changed(link, old, state, error);
#  120|   
#  121|   	link->info.change_mask |= PW_LINK_CHANGE_MASK_STATE;

Error: CPPCHECK_WARNING (CWE-190): [#def2197]
pipewire-1.5.81/src/pipewire/impl-link.c:925: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  923|   
#  924|   	spa_list_remove(&this->input_link);
#  925|-> 	pw_impl_port_emit_link_removed(port, this);
#  926|   
#  927|   	pw_impl_port_recalc_latency(port);

Error: CPPCHECK_WARNING (CWE-190): [#def2198]
pipewire-1.5.81/src/pipewire/impl-link.c:957: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  955|   
#  956|   	spa_list_remove(&this->output_link);
#  957|-> 	pw_impl_port_emit_link_removed(port, this);
#  958|   
#  959|   	pw_impl_port_recalc_latency(port);

Error: CPPCHECK_WARNING (CWE-190): [#def2199]
pipewire-1.5.81/src/pipewire/impl-link.c:1030: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1028|   
# 1029|   	this->info.change_mask = PW_LINK_CHANGE_MASK_ALL;
# 1030|-> 	pw_link_resource_info(resource, &this->info);
# 1031|   	this->info.change_mask = 0;
# 1032|   

Error: CPPCHECK_WARNING (CWE-190): [#def2200]
pipewire-1.5.81/src/pipewire/impl-link.c:1574: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1572|   			output->flags, input->flags, this->async);
# 1573|   
# 1574|-> 	pw_impl_port_emit_link_added(output, this);
# 1575|   	pw_impl_port_emit_link_added(input, this);
# 1576|   

Error: CPPCHECK_WARNING (CWE-190): [#def2201]
pipewire-1.5.81/src/pipewire/impl-link.c:1575: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1573|   
# 1574|   	pw_impl_port_emit_link_added(output, this);
# 1575|-> 	pw_impl_port_emit_link_added(input, this);
# 1576|   
# 1577|   	try_link_controls(impl, output, input);

Error: CPPCHECK_WARNING (CWE-190): [#def2202]
pipewire-1.5.81/src/pipewire/impl-link.c:1695: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1693|   	pw_global_update_keys(link->global, link->info.props, keys);
# 1694|   
# 1695|-> 	pw_impl_link_emit_initialized(link);
# 1696|   
# 1697|   	pw_global_add_listener(link->global, &link->global_listener, &global_events, link);

Error: CPPCHECK_WARNING (CWE-190): [#def2203]
pipewire-1.5.81/src/pipewire/impl-link.c:1719: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1717|   
# 1718|   	link->destroyed = true;
# 1719|-> 	pw_impl_link_emit_destroy(link);
# 1720|   
# 1721|   	pw_impl_link_deactivate(link);

Error: CPPCHECK_WARNING (CWE-190): [#def2204]
pipewire-1.5.81/src/pipewire/impl-link.c:1743: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1741|   
# 1742|   	pw_log_debug("%p: free", impl);
# 1743|-> 	pw_impl_link_emit_free(link);
# 1744|   
# 1745|   	pw_work_queue_cancel(impl->work, link, SPA_ID_INVALID);

Error: CPPCHECK_WARNING (CWE-190): [#def2205]
pipewire-1.5.81/src/pipewire/impl-metadata.c:76: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   74|   		pw_log_debug("metadata %p: %d %s %s %s",
#   75|   				this, item->subject, item->key, item->type, item->value);
#   76|-> 		pw_metadata_emit_property(&this->hooks,
#   77|   				item->subject,
#   78|   				item->key,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2206]
pipewire-1.5.81/src/pipewire/impl-metadata.c:95:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/impl-metadata.c:266:26: enter_function: entry to ‘pw_context_create_metadata’
pipewire-1.5.81/src/pipewire/impl-metadata.c:279:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-metadata.c:280:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-metadata.c:284:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-metadata.c:294:9: call_function: calling ‘pw_impl_metadata_set_implementation’ from ‘pw_context_create_metadata’
#   93|   	spa_return_val_if_fail(events != NULL, -EINVAL);
#   94|   
#   95|-> 	pw_log_debug("metadata %p:", this);
#   96|   
#   97|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2207]
pipewire-1.5.81/src/pipewire/impl-metadata.c:134: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  132|   	}
#  133|   	if (removed > 0)
#  134|-> 		pw_metadata_emit_property(&this->hooks, subject, NULL, NULL, NULL);
#  135|   
#  136|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2208]
pipewire-1.5.81/src/pipewire/impl-metadata.c:198: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  196|   
#  197|   	if (changed) {
#  198|-> 		pw_metadata_emit_property(&this->hooks,
#  199|   					subject, key, type, value);
#  200|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2209]
pipewire-1.5.81/src/pipewire/impl-metadata.c:256: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  254|   {
#  255|   	struct pw_impl_metadata *this = data;
#  256|-> 	pw_impl_metadata_emit_property(this, subject, key, type, value);
#  257|   	return 0;
#  258|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2210]
pipewire-1.5.81/src/pipewire/impl-metadata.c:290:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/impl-metadata.c:279:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/impl-metadata.c:280:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-metadata.c:284:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/impl-metadata.c:289:12: branch_true: following ‘true’ branch (when ‘name’ is non-NULL)...
pipewire-1.5.81/src/pipewire/impl-metadata.c:290:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/impl-metadata.c:290:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  288|   
#  289|   	if (name != NULL)
#  290|-> 		pw_properties_set(properties, PW_KEY_METADATA_NAME, name);
#  291|   
#  292|   	spa_hook_list_init(&this->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def2211]
pipewire-1.5.81/src/pipewire/impl-metadata.c:347: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  345|   
#  346|   	pw_log_debug("%p: destroy", metadata);
#  347|-> 	pw_impl_metadata_emit_destroy(metadata);
#  348|   
#  349|   	if (metadata->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def2212]
pipewire-1.5.81/src/pipewire/impl-metadata.c:358: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  356|   	spa_hook_remove(&metadata->context_listener);
#  357|   
#  358|-> 	pw_impl_metadata_emit_free(metadata);
#  359|   	pw_log_debug("%p: free", metadata);
#  360|   

Error: CPPCHECK_WARNING (CWE-190): [#def2213]
pipewire-1.5.81/src/pipewire/impl-metadata.c:389: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  387|   	if (res >= 0 ||
#  388|   		    (res == -ENOENT && key == NULL && type == NULL && value == NULL))
#  389|-> 		pw_metadata_resource_property(d->resource, subject, key, type, value);
#  390|   	return 0;
#  391|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2214]
pipewire-1.5.81/src/pipewire/impl-module.c:104: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  102|   
#  103|   	this->info.change_mask = PW_MODULE_CHANGE_MASK_ALL;
#  104|-> 	pw_module_resource_info(resource, &this->info);
#  105|   	this->info.change_mask = 0;
#  106|   

Error: CPPCHECK_WARNING (CWE-190): [#def2215]
pipewire-1.5.81/src/pipewire/impl-module.c:241: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  239|   	pw_global_update_keys(this->global, &this->properties->dict, keys);
#  240|   
#  241|-> 	pw_impl_module_emit_initialized(this);
#  242|   
#  243|   	pw_global_add_listener(this->global, &this->global_listener, &global_events, this);

Error: CPPCHECK_WARNING (CWE-190): [#def2216]
pipewire-1.5.81/src/pipewire/impl-module.c:250: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  248|   	pw_global_register(this->global);
#  249|   
#  250|-> 	pw_impl_module_emit_registered(this);
#  251|   
#  252|   	pw_log_debug("%p: loaded module: %s", this, this->info.name);

Error: CPPCHECK_WARNING (CWE-190): [#def2217]
pipewire-1.5.81/src/pipewire/impl-module.c:303: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  301|   
#  302|   	pw_log_debug("%p: destroy %s", module, module->info.name);
#  303|-> 	pw_impl_module_emit_destroy(module);
#  304|   
#  305|   	spa_list_remove(&module->link);

Error: CPPCHECK_WARNING (CWE-190): [#def2218]
pipewire-1.5.81/src/pipewire/impl-module.c:313: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  311|   
#  312|   	pw_log_debug("%p: free", module);
#  313|-> 	pw_impl_module_emit_free(module);
#  314|   	free((char *) module->info.name);
#  315|   	free((char *) module->info.filename);

Error: CPPCHECK_WARNING (CWE-190): [#def2219]
pipewire-1.5.81/src/pipewire/impl-module.c:366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  364|   	if (module->global)
#  365|   		spa_list_for_each(resource, &module->global->resource_list, link)
#  366|-> 			pw_module_resource_info(resource, &module->info);
#  367|   	module->info.change_mask = 0;
#  368|   

Error: CPPCHECK_WARNING (CWE-190): [#def2220]
pipewire-1.5.81/src/pipewire/impl-node.c:381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  379|   		return;
#  380|   
#  381|-> 	pw_impl_node_emit_info_changed(node, &node->info);
#  382|   
#  383|   	if (node->global && node->info.change_mask != 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def2221]
pipewire-1.5.81/src/pipewire/impl-node.c:388: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  386|   			pw_global_update_keys(node->global, node->info.props, global_keys);
#  387|   		spa_list_for_each(resource, &node->global->resource_list, link)
#  388|-> 			pw_node_resource_info(resource, &node->info);
#  389|   	}
#  390|   

Error: CPPCHECK_WARNING (CWE-190): [#def2222]
pipewire-1.5.81/src/pipewire/impl-node.c:417: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  415|   
#  416|   		pw_log_debug("%p: resource %p notify param %d", node, resource, id);
#  417|-> 		pw_node_resource_param(resource, seq, id, index, next, param);
#  418|   	}
#  419|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2223]
pipewire-1.5.81/src/pipewire/impl-node.c:506: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  504|   		     pw_node_state_as_string(old), pw_node_state_as_string(state));
#  505|   	}
#  506|-> 	pw_impl_node_emit_state_changed(node, old, state, error);
#  507|   
#  508|   	if (emit_pending_request_process) {

Error: CPPCHECK_WARNING (CWE-190): [#def2224]
pipewire-1.5.81/src/pipewire/impl-node.c:589: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  587|   	struct resource_data *d = data;
#  588|   	pw_log_debug("%p: resource %p reply param %d", d->node, d->resource, seq);
#  589|-> 	pw_node_resource_param(d->resource, seq, id, index, next, param);
#  590|   	return 0;
#  591|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2225]
pipewire-1.5.81/src/pipewire/impl-node.c:765: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  763|   
#  764|   	this->info.change_mask = PW_NODE_CHANGE_MASK_ALL;
#  765|-> 	pw_node_resource_info(resource, &this->info);
#  766|   	this->info.change_mask = 0;
#  767|   

Error: CPPCHECK_WARNING (CWE-190): [#def2226]
pipewire-1.5.81/src/pipewire/impl-node.c:902: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  900|   			do_add_target, SPA_ID_INVALID, &node, sizeof(void *), t);
#  901|   	if (t->node)
#  902|-> 		pw_impl_node_emit_peer_added(node, t->node);
#  903|   
#  904|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2227]
pipewire-1.5.81/src/pipewire/impl-node.c:938: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  936|   			do_remove_target, SPA_ID_INVALID, &node, sizeof(void *), t);
#  937|   	if (t->node)
#  938|-> 		pw_impl_node_emit_peer_removed(node, t->node);
#  939|   
#  940|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2228]
pipewire-1.5.81/src/pipewire/impl-node.c:1022: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1020|   {
# 1021|   	pw_log_debug("%p initialized", this);
# 1022|-> 	pw_impl_node_emit_initialized(this);
# 1023|   	node_update_state(this, PW_NODE_STATE_SUSPENDED, 0, NULL);
# 1024|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2229]
pipewire-1.5.81/src/pipewire/impl-node.c:1086: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1084|   	node->from_driver_peer = pw_node_peer_ref(driver, node);
# 1085|   
# 1086|-> 	pw_impl_node_emit_driver_changed(node, old, driver);
# 1087|   
# 1088|   	if (no_driver) {

Error: CPPCHECK_WARNING (CWE-190): [#def2230]
pipewire-1.5.81/src/pipewire/impl-node.c:1098: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1096|   
# 1097|   	node->info.change_mask |= PW_NODE_CHANGE_MASK_PROPS;
# 1098|-> 	pw_impl_node_emit_info_changed(driver, &node->info);
# 1099|   
# 1100|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2231]
pipewire-1.5.81/src/pipewire/impl-node.c:1542: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1540|   		a->signal_time = this->driver_start;
# 1541|   		calculate_stats(this, a);
# 1542|-> 		pw_impl_node_rt_emit_complete(this);
# 1543|   	}
# 1544|   

Error: CPPCHECK_WARNING (CWE-190): [#def2232]
pipewire-1.5.81/src/pipewire/impl-node.c:1546: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1544|   
# 1545|   	if (SPA_UNLIKELY(status & SPA_STATUS_DRAINED))
# 1546|-> 		pw_impl_node_rt_emit_drained(this);
# 1547|   
# 1548|   	return status;

Error: CPPCHECK_WARNING (CWE-190): [#def2233]
pipewire-1.5.81/src/pipewire/impl-node.c:1914: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1912|   	        pw_work_queue_complete(impl->work, &impl->this, SPA_RESULT_ASYNC_SEQ(seq), res);
# 1913|   
# 1914|-> 	pw_impl_node_emit_result(node, seq, res, type, result);
# 1915|   }
# 1916|   

Error: CPPCHECK_WARNING (CWE-190): [#def2234]
pipewire-1.5.81/src/pipewire/impl-node.c:1966: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1964|   		break;
# 1965|   	}
# 1966|-> 	pw_impl_node_emit_event(node, event);
# 1967|   }
# 1968|   

Error: CPPCHECK_WARNING (CWE-190): [#def2235]
pipewire-1.5.81/src/pipewire/impl-node.c:2052: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2050|   	if (SPA_UNLIKELY(a->position.state == SPA_IO_POSITION_STATE_STARTING)) {
# 2051|   		if (!all_ready && --a->sync_left == 0) {
# 2052|-> 			pw_impl_node_rt_emit_timeout(node);
# 2053|   			debug_sync_timeout(node, nsec);
# 2054|   			all_ready = true;

Error: CPPCHECK_WARNING (CWE-190): [#def2236]
pipewire-1.5.81/src/pipewire/impl-node.c:2113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2111|   				/* otherwise, something was wrong and we debug */
# 2112|   				debug_xrun_graph(node, nsec, old_status);
# 2113|-> 				pw_impl_node_rt_emit_incomplete(driver);
# 2114|   			}
# 2115|   			SPA_FLAG_SET(cl->flags, SPA_IO_CLOCK_FLAG_XRUN_RECOVER);

Error: CPPCHECK_WARNING (CWE-190): [#def2237]
pipewire-1.5.81/src/pipewire/impl-node.c:2214: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2212|   
# 2213|   	a->position.clock.cycle++;
# 2214|-> 	pw_impl_node_rt_emit_start(node);
# 2215|   
# 2216|   	/* now signal all the nodes we drive */

Error: CPPCHECK_WARNING (CWE-190): [#def2238]
pipewire-1.5.81/src/pipewire/impl-node.c:2262: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2260|   	}
# 2261|   
# 2262|-> 	pw_impl_node_rt_emit_xrun(this);
# 2263|   
# 2264|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2239]
pipewire-1.5.81/src/pipewire/impl-node.c:2417: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2415|   	suspend_node(node);
# 2416|   
# 2417|-> 	pw_impl_node_emit_destroy(node);
# 2418|   
# 2419|   	pw_log_debug("%p: driver node %p", impl, node->driver_node);

Error: CPPCHECK_WARNING (CWE-190): [#def2240]
pipewire-1.5.81/src/pipewire/impl-node.c:2460: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2458|   
# 2459|   	pw_log_debug("%p: free", node);
# 2460|-> 	pw_impl_node_emit_free(node);
# 2461|   
# 2462|   	spa_hook_list_clean(&node->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def2241]
pipewire-1.5.81/src/pipewire/impl-node.c:2785: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2783|   
# 2784|   	if (old != state)
# 2785|-> 		pw_impl_node_emit_state_request(node, state);
# 2786|   
# 2787|   	switch (state) {

Error: CPPCHECK_WARNING (CWE-190): [#def2242]
pipewire-1.5.81/src/pipewire/impl-node.c:2860: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2858|   
# 2859|   		node->active = active;
# 2860|-> 		pw_impl_node_emit_active_changed(node, active);
# 2861|   
# 2862|   		if (node->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def2243]
pipewire-1.5.81/src/pipewire/impl-port.c:90: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   88|   		return;
#   89|   
#   90|-> 	pw_impl_port_emit_info_changed(port, &port->info);
#   91|   	if (port->node)
#   92|   		pw_impl_node_emit_port_info_changed(port->node, port, &port->info);

Error: CPPCHECK_WARNING (CWE-190): [#def2244]
pipewire-1.5.81/src/pipewire/impl-port.c:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   	pw_impl_port_emit_info_changed(port, &port->info);
#   91|   	if (port->node)
#   92|-> 		pw_impl_node_emit_port_info_changed(port->node, port, &port->info);
#   93|   
#   94|   	if (port->global) {

Error: CPPCHECK_WARNING (CWE-190): [#def2245]
pipewire-1.5.81/src/pipewire/impl-port.c:98: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   96|   			pw_global_update_keys(port->global, port->info.props, global_keys);
#   97|   		spa_list_for_each(resource, &port->global->resource_list, link)
#   98|-> 			pw_port_resource_info(resource, &port->info);
#   99|   	}
#  100|   

Error: CPPCHECK_WARNING (CWE-190): [#def2246]
pipewire-1.5.81/src/pipewire/impl-port.c:138: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  136|   		pw_impl_port_state_as_string(state), error);
#  137|   
#  138|-> 	pw_impl_port_emit_state_changed(port, old, state, error);
#  139|   
#  140|   	if (state == PW_IMPL_PORT_STATE_ERROR && port->global) {

Error: CPPCHECK_WARNING (CWE-190): [#def2247]
pipewire-1.5.81/src/pipewire/impl-port.c:204: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  202|   		goto next;
#  203|   
#  204|-> 	spa_node_emit_result(&impl->mix_hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  205|   
#  206|   	if (++count != max)

Error: CPPCHECK_WARNING (CWE-190): [#def2248]
pipewire-1.5.81/src/pipewire/impl-port.c:430: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  428|   	mix->p = port;
#  429|   
#  430|-> 	if ((res = pw_impl_port_call_init_mix(port, mix)) < 0)
#  431|   		goto error_remove_port;
#  432|   

Error: CPPCHECK_WARNING (CWE-190): [#def2249]
pipewire-1.5.81/src/pipewire/impl-port.c:481: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  479|   			port->n_mix, port->port_id, mix->port.port_id);
#  480|   
#  481|-> 	res = pw_impl_port_call_release_mix(port, mix);
#  482|   
#  483|   	if (port->destroying)

Error: CPPCHECK_WARNING (CWE-190): [#def2250]
pipewire-1.5.81/src/pipewire/impl-port.c:692: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  690|   
#  691|   		pw_log_debug("%p: resource %p notify param %d", port, resource, id);
#  692|-> 		pw_port_resource_param(resource, seq, id, index, next, param);
#  693|   	}
#  694|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2251]
pipewire-1.5.81/src/pipewire/impl-port.c:1217: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1215|   	pw_log_debug("%p: resource %p reply param %u %u %u", d->port,
# 1216|   			resource, id, index, next);
# 1217|-> 	pw_port_resource_param(resource, seq, id, index, next, param);
# 1218|   	return 0;
# 1219|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2252]
pipewire-1.5.81/src/pipewire/impl-port.c:1309: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1307|   
# 1308|   	this->info.change_mask = PW_PORT_CHANGE_MASK_ALL;
# 1309|-> 	pw_port_resource_info(resource, &this->info);
# 1310|   	this->info.change_mask = 0;
# 1311|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2253]
pipewire-1.5.81/src/pipewire/impl-port.c:1359: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1357|   	pw_global_update_keys(port->global, &port->properties->dict, global_keys);
# 1358|   
# 1359|-> 	pw_impl_port_emit_initialized(port);
# 1360|   
# 1361|   	return pw_global_register(port->global);

Error: CPPCHECK_WARNING (CWE-190): [#def2254]
pipewire-1.5.81/src/pipewire/impl-port.c:1413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1411|   	pw_impl_node_add_listener(node, &impl->node_listener, &node_events, port);
# 1412|   
# 1413|-> 	pw_impl_node_emit_port_init(node, port);
# 1414|   
# 1415|   	check_params(port);

Error: CPPCHECK_WARNING (CWE-190): [#def2255]
pipewire-1.5.81/src/pipewire/impl-port.c:1452: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1450|   		pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_CONFIGURE, 0, NULL);
# 1451|   
# 1452|-> 	pw_impl_node_emit_port_added(node, port);
# 1453|   	emit_info_changed(port);
# 1454|   

Error: CPPCHECK_WARNING (CWE-190): [#def2256]
pipewire-1.5.81/src/pipewire/impl-port.c:1514: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1512|   
# 1513|   	spa_list_remove(&port->link);
# 1514|-> 	pw_impl_node_emit_port_removed(node, port);
# 1515|   	spa_hook_remove(&impl->node_listener);
# 1516|   	port->node = NULL;

Error: CPPCHECK_WARNING (CWE-190): [#def2257]
pipewire-1.5.81/src/pipewire/impl-port.c:1527: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1525|   
# 1526|   	port->destroying = true;
# 1527|-> 	pw_impl_port_emit_destroy(port);
# 1528|   
# 1529|   	pw_impl_port_unlink(port);

Error: CPPCHECK_WARNING (CWE-190): [#def2258]
pipewire-1.5.81/src/pipewire/impl-port.c:1545: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1543|   
# 1544|   	pw_log_debug("%p: free", port);
# 1545|-> 	pw_impl_port_emit_free(port);
# 1546|   
# 1547|   	spa_hook_list_clean(&port->listener_list);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2259]
pipewire-1.5.81/src/pipewire/introspect.c:434:22: warning[-Wanalyzer-malloc-leak]: leak of ‘info’
pipewire-1.5.81/src/pipewire/introspect.c:411:12: branch_false: following ‘false’ branch (when ‘update’ is non-NULL)...
pipewire-1.5.81/src/pipewire/introspect.c:414:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/introspect.c:414:12: branch_true: following ‘true’ branch (when ‘info’ is NULL)...
pipewire-1.5.81/src/pipewire/introspect.c:415:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/introspect.c:415:24: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/introspect.c:416:20: branch_false: following ‘false’ branch (when ‘info’ is non-NULL)...
pipewire-1.5.81/src/pipewire/introspect.c:419:28: branch_false: ...to here
pipewire-1.5.81/src/pipewire/introspect.c:425:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/introspect.c:430:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/introspect.c:430:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/introspect.c:431:29: branch_true: ...to here
pipewire-1.5.81/src/pipewire/introspect.c:434:22: danger: ‘info’ leaks here; was allocated at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  432|   		void *np;
#  433|   
#  434|-> 		np = pw_reallocarray(info->params, n_params, sizeof(struct spa_param_info));
#  435|   		if (np == NULL) {
#  436|   			free(info->params);

Error: CPPCHECK_WARNING (CWE-190): [#def2260]
pipewire-1.5.81/src/pipewire/link.h:123: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  121|   			void *data)
#  122|   {
#  123|-> 	return spa_api_method_r(int, -ENOTSUP,
#  124|   			pw_link, (struct spa_interface*)object, add_listener, 0,
#  125|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-401): [#def2261]
pipewire-1.5.81/src/pipewire/log.c:245: error[memleak]: Memory leak: pattern
#  243|   	memcpy(pattern->pattern, str, len);
#  244|   	spa_list_append(list, &pattern->link);
#  245|-> 	return 0;
#  246|   }
#  247|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2262]
pipewire-1.5.81/src/pipewire/loop.c:65:31: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:60:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:65:31: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   63|   		lib = NULL;
#   64|   
#   65|-> 	impl->system_handle = pw_load_spa_handle(lib,
#   66|   			SPA_NAME_SUPPORT_SYSTEM,
#   67|   			props, n_support, support);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2263]
pipewire-1.5.81/src/pipewire/loop.c:70:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:60:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:69:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:70:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:70:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:70:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   68|   	if (impl->system_handle == NULL) {
#   69|   		res = -errno;
#   70|-> 		pw_log_error("%p: can't make "SPA_NAME_SUPPORT_SYSTEM" handle: %m", this);
#   71|   		goto error_free;
#   72|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2264]
pipewire-1.5.81/src/pipewire/loop.c:77:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:60:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:77:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:77:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:77:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:77:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/1)
#   75|   					    SPA_TYPE_INTERFACE_System,
#   76|   					    &iface)) < 0) {
#   77|->                 pw_log_error("%p: can't get System interface: %s", this, spa_strerror(res));
#   78|                   goto error_unload_system;
#   79|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2265]
pipewire-1.5.81/src/pipewire/loop.c:89:29: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:89:29: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/1)
#   87|   		lib = NULL;
#   88|   
#   89|-> 	impl->loop_handle = pw_load_spa_handle(lib,
#   90|   			SPA_NAME_SUPPORT_LOOP, props,
#   91|   			n_support, support);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2266]
pipewire-1.5.81/src/pipewire/loop.c:94:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:93:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:94:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:94:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:94:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/1)
#   92|   	if (impl->loop_handle == NULL) {
#   93|   		res = -errno;
#   94|-> 		pw_log_error("%p: can't make "SPA_NAME_SUPPORT_LOOP" handle: %m", this);
#   95|   		goto error_unload_system;
#   96|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2267]
pipewire-1.5.81/src/pipewire/loop.c:101:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:98:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:101:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:101:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:101:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:101:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/1)
#   99|   					    SPA_TYPE_INTERFACE_Loop,
#  100|   					    &iface)) < 0) {
#  101|-> 		pw_log_error("%p: can't get Loop interface: %s",
#  102|   				this, spa_strerror(res));
#  103|                   goto error_unload_loop;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2268]
pipewire-1.5.81/src/pipewire/loop.c:110:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:105:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:107:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:107:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:107:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:110:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:110:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:110:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:110:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/1)
#  108|   					    SPA_TYPE_INTERFACE_LoopControl,
#  109|   					    &iface)) < 0) {
#  110|-> 		pw_log_error("%p: can't get LoopControl interface: %s",
#  111|   				this, spa_strerror(res));
#  112|                   goto error_unload_loop;

Error: CPPCHECK_WARNING (CWE-190): [#def2269]
pipewire-1.5.81/src/pipewire/loop.c:115: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  113|           }
#  114|   	this->control = iface;
#  115|-> 	if (!spa_interface_callback_check(&this->control->iface,
#  116|   			struct spa_loop_control_methods, iterate, 0)) {
#  117|   		res = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2270]
pipewire-1.5.81/src/pipewire/loop.c:118:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:105:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:107:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:107:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:114:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:118:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:118:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:118:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/1)
#  116|   			struct spa_loop_control_methods, iterate, 0)) {
#  117|   		res = -EINVAL;
#  118|-> 		pw_log_error("%p: loop does not support iterate", this);
#  119|   		goto error_unload_loop;
#  120|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2271]
pipewire-1.5.81/src/pipewire/loop.c:125:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:105:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:107:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:107:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:114:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:115:14: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:122:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:122:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:122:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:125:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:125:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:125:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:125:17: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/1)
#  123|   					    SPA_TYPE_INTERFACE_LoopUtils,
#  124|   					    &iface)) < 0) {
#  125|-> 		pw_log_error("%p: can't get LoopUtils interface: %s",
#  126|   				this, spa_strerror(res));
#  127|                   goto error_unload_loop;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2272]
pipewire-1.5.81/src/pipewire/loop.c:139:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:105:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:107:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:107:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:114:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:115:14: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:122:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:122:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:129:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:131:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
pipewire-1.5.81/src/pipewire/loop.c:137:22: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:139:16: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/1)
#  137|   	this->name = impl->name;
#  138|   
#  139|-> 	return this;
#  140|   
#  141|   error_unload_loop:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2273]
pipewire-1.5.81/src/pipewire/loop.c:142:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:60:12: branch_true: following ‘true’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:61:23: call_function: inlined call to ‘spa_dict_lookup’ from ‘pw_loop_new’
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:84:12: branch_true: following ‘true’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:85:23: call_function: inlined call to ‘spa_dict_lookup’ from ‘pw_loop_new’
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:98:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:101:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:101:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:103:17: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:142:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/1)
#  140|   
#  141|   error_unload_loop:
#  142|-> 	pw_unload_spa_handle(impl->loop_handle);
#  143|   error_unload_system:
#  144|   	pw_unload_spa_handle(impl->system_handle);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2274]
pipewire-1.5.81/src/pipewire/loop.c:144:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:60:12: branch_true: following ‘true’ branch (when ‘props’ is non-NULL)...
pipewire-1.5.81/src/pipewire/loop.c:61:23: call_function: inlined call to ‘spa_dict_lookup’ from ‘pw_loop_new’
 branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.5.81/src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.5.81/src/pipewire/loop.c:74:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/loop.c:77:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/loop.c:77:17: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/loop.c:78:17: branch_false: ...to here
pipewire-1.5.81/src/pipewire/loop.c:144:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/1)
#  142|   	pw_unload_spa_handle(impl->loop_handle);
#  143|   error_unload_system:
#  144|-> 	pw_unload_spa_handle(impl->system_handle);
#  145|   error_free:
#  146|   	free(impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2275]
pipewire-1.5.81/src/pipewire/main-loop.c:33:24: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/main-loop.c:26:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/main-loop.c:27:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/main-loop.c:32:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:32:12: branch_true: following ‘true’ branch (when ‘loop’ is NULL)...
pipewire-1.5.81/src/pipewire/main-loop.c:33:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:33:24: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   31|   
#   32|   	if (loop == NULL) {
#   33|-> 		loop = pw_loop_new(props);
#   34|   		this->created = true;
#   35|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2276]
pipewire-1.5.81/src/pipewire/main-loop.c:43:17: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/main-loop.c:26:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/main-loop.c:27:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/main-loop.c:32:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:32:12: branch_false: following ‘false’ branch (when ‘loop’ is non-NULL)...
pipewire-1.5.81/src/pipewire/main-loop.c:40:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:42:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/main-loop.c:43:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:43:17: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   41|   
#   42|   	if (!this->loop->name[0])
#   43|-> 		pw_loop_set_name(this->loop, "main-loop");
#   44|   	spa_hook_list_init(&this->listener_list);
#   45|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2277]
pipewire-1.5.81/src/pipewire/main-loop.c:46:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/main-loop.c:26:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/main-loop.c:27:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/main-loop.c:32:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:32:12: branch_false: following ‘false’ branch (when ‘loop’ is non-NULL)...
pipewire-1.5.81/src/pipewire/main-loop.c:40:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:46:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/main-loop.c:46:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/main-loop.c:46:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   44|   	spa_hook_list_init(&this->listener_list);
#   45|   
#   46|-> 	pw_log_debug("%p: new '%s'", this, loop->name);
#   47|   
#   48|   	return this;

Error: CPPCHECK_WARNING (CWE-190): [#def2278]
pipewire-1.5.81/src/pipewire/main-loop.c:75: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   73|   {
#   74|   	pw_log_debug("%p: destroy", loop);
#   75|-> 	pw_main_loop_emit_destroy(loop);
#   76|   
#   77|   	if (loop->created)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2279]
pipewire-1.5.81/src/pipewire/map.h:167:32: warning[-Wanalyzer-malloc-leak]: leak of ‘*client.objects.items.data’
pipewire-1.5.81/src/pipewire/impl-core.c:291:1: enter_function: entry to ‘core_create_object’
pipewire-1.5.81/src/pipewire/impl-core.c:356:9: call_function: calling ‘pw_map_insert_at’ from ‘core_create_object’
#  165|   		item = (union pw_map_item *) pw_array_add(&map->items, sizeof(union pw_map_item));
#  166|   		if (item == NULL)
#  167|-> 			return -errno;
#  168|   	} else {
#  169|   		item = pw_map_get_item(map, id);

Error: CPPCHECK_WARNING (CWE-190): [#def2280]
pipewire-1.5.81/src/pipewire/mem.c:199: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  197|   	pw_log_debug("%p: destroy", pool);
#  198|   
#  199|-> 	pw_mempool_emit_destroy(impl);
#  200|   
#  201|   	pw_mempool_clear(pool);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2281]
pipewire-1.5.81/src/pipewire/mem.c:287:17: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:523:22: enter_function: entry to ‘pw_mempool_alloc’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:590:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:597:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:598:31: call_function: calling ‘pw_memblock_map’ from ‘pw_mempool_alloc’
#  285|   
#  286|   	spa_list_for_each(m, &b->mappings, link) {
#  287|-> 		pw_log_debug("%p: check %p offset:(%u <= %u) end:(%u >= %u)",
#  288|   				pool, m, m->offset, offset, m->offset + m->size,
#  289|   				offset + size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2282]
pipewire-1.5.81/src/pipewire/mem.c:291:25: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:523:22: enter_function: entry to ‘pw_mempool_alloc’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:590:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:597:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:598:31: call_function: calling ‘pw_memblock_map’ from ‘pw_mempool_alloc’
#  289|   				offset + size);
#  290|   		if (m->offset <= offset && (m->offset + m->size) >= (offset + size)) {
#  291|-> 			pw_log_debug("%p: found %p id:%u fd:%d offs:%u size:%u ref:%d",
#  292|   					pool, &b->this, b->this.id, b->this.fd,
#  293|   					offset, size, b->this.ref);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2283]
pipewire-1.5.81/src/pipewire/mem.c:408:9: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:523:22: enter_function: entry to ‘pw_mempool_alloc’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:590:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:597:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:598:31: call_function: calling ‘pw_memblock_map’ from ‘pw_mempool_alloc’
#  406|   
#  407|   	const bool valid = (int64_t) offset + size <= (int64_t) sb.st_size;
#  408|-> 	pw_log(valid ? SPA_LOG_LEVEL_DEBUG : SPA_LOG_LEVEL_ERROR,
#  409|   		"%p: block %p[%u] mapping %" PRIu32 "+%" PRIu32 " of file=%d/%" PRIu64 ":%" PRIu64 " with size=%" PRId64,
#  410|   		block->pool, block, block->id,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2284]
pipewire-1.5.81/src/pipewire/mem.c:445:9: warning[-Wanalyzer-malloc-leak]: leak of ‘mm’
pipewire-1.5.81/src/pipewire/mem.c:523:22: enter_function: entry to ‘pw_mempool_alloc’
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:590:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:597:12: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:598:31: call_function: calling ‘pw_memblock_map’ from ‘pw_mempool_alloc’
#  443|   	mm->this.ptr = SPA_PTROFF(m->ptr, offset - m->offset, void);
#  444|   
#  445|->         pw_log_debug("%p: map:%p block:%p fd:%d flags:%08x ptr:%p (%u %u) mapping:%p ref:%d", p,
#  446|   			&mm->this, b, b->this.fd, b->this.flags, mm->this.ptr, offset, size, m, m->ref);
#  447|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2285]
pipewire-1.5.81/src/pipewire/mem.c:536:17: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_true: following ‘true’ branch (when ‘type != 2’)...
pipewire-1.5.81/src/pipewire/mem.c:536:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:536:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:536:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:536:17: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  534|   	if (type != SPA_DATA_MemFd) {
#  535|   		res = -ENOTSUP;
#  536|-> 		pw_log_error("%p: alloc failure: only MemFd is supported", pool);
#  537|   		goto error_free;
#  538|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2286]
pipewire-1.5.81/src/pipewire/mem.c:558:17: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:557:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:558:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:558:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:558:17: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/0)
#  556|   	if (b->this.fd == -1) {
#  557|   		res = -errno;
#  558|-> 		pw_log_error("%p: Failed to create memfd: %m", pool);
#  559|   		goto error_free;
#  560|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2287]
pipewire-1.5.81/src/pipewire/mem.c:582:9: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:582:9: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/0)
#  580|   	unlink(filename);
#  581|   #endif
#  582|-> 	pw_log_debug("%p: new fd:%d", pool, b->this.fd);
#  583|   
#  584|   	if (ftruncate(b->this.fd, size) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2288]
pipewire-1.5.81/src/pipewire/mem.c:586:17: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:585:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:586:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:586:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:586:17: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/0)
#  584|   	if (ftruncate(b->this.fd, size) < 0) {
#  585|   		res = -errno;
#  586|-> 		pw_log_warn("%p: Failed to truncate temporary file: %m", pool);
#  587|   		goto error_close;
#  588|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2289]
pipewire-1.5.81/src/pipewire/mem.c:592:21: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:590:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:590:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:592:21: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:592:21: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  590|   	if (flags & PW_MEMBLOCK_FLAG_SEAL) {
#  591|   		unsigned int seals = F_SEAL_GROW | F_SEAL_SHRINK | F_SEAL_SEAL;
#  592|-> 		if (fcntl(b->this.fd, F_ADD_SEALS, seals) == -1) {
#  593|   			pw_log_warn("%p: Failed to add seals: %m", pool);
#  594|   		}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2290]
pipewire-1.5.81/src/pipewire/mem.c:593:25: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:590:13: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:590:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:592:21: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:592:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:593:25: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:593:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:593:25: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:593:25: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  591|   		unsigned int seals = F_SEAL_GROW | F_SEAL_SHRINK | F_SEAL_SEAL;
#  592|   		if (fcntl(b->this.fd, F_ADD_SEALS, seals) == -1) {
#  593|-> 			pw_log_warn("%p: Failed to add seals: %m", pool);
#  594|   		}
#  595|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2291]
pipewire-1.5.81/src/pipewire/mem.c:614: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  612|   
#  613|   	if (!SPA_FLAG_IS_SET(flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  614|-> 		pw_mempool_emit_added(impl, &b->this);
#  615|   
#  616|   	return &b->this;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2292]
pipewire-1.5.81/src/pipewire/mem.c:619:9: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:585:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:619:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:619:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:619:9: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/10/codeFlows/0/threadFlows/0/locations/0)
#  617|   
#  618|   error_close:
#  619|-> 	pw_log_debug("%p: close fd:%d", pool, b->this.fd);
#  620|   	close(b->this.fd);
#  621|   error_free:

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2293]
pipewire-1.5.81/src/pipewire/mem.c:620:9: warning[-Wanalyzer-malloc-leak]: leak of ‘b’
pipewire-1.5.81/src/pipewire/mem.c:530:13: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/mem.c:531:12: branch_false: following ‘false’ branch (when ‘b’ is non-NULL)...
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:534:12: branch_false: following ‘false’ branch (when ‘type == 2’)...
pipewire-1.5.81/src/pipewire/mem.c:540:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:556:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/mem.c:582:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/mem.c:584:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/mem.c:585:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/mem.c:620:9: danger: ‘b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/0)
#  618|   error_close:
#  619|   	pw_log_debug("%p: close fd:%d", pool, b->this.fd);
#  620|-> 	close(b->this.fd);
#  621|   error_free:
#  622|   	free(b);

Error: CPPCHECK_WARNING (CWE-190): [#def2294]
pipewire-1.5.81/src/pipewire/mem.c:684: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  682|   
#  683|   	if (!SPA_FLAG_IS_SET(flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  684|-> 		pw_mempool_emit_added(impl, &b->this);
#  685|   
#  686|   	return &b->this;

Error: CPPCHECK_WARNING (CWE-190): [#def2295]
pipewire-1.5.81/src/pipewire/mem.c:841: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  839|   
#  840|   	if (!SPA_FLAG_IS_SET(block->flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  841|-> 		pw_mempool_emit_removed(impl, block);
#  842|   
#  843|   	if (b->owner) {

Error: CPPCHECK_WARNING (CWE-190): [#def2296]
pipewire-1.5.81/src/pipewire/mem.c:848: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  846|   	}
#  847|   
#  848|-> 	memblock_emit_invalidated(b);
#  849|   
#  850|   	spa_list_consume(mm, &b->memmaps, link)

Error: CPPCHECK_WARNING (CWE-190): [#def2297]
pipewire-1.5.81/src/pipewire/module.h:95: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   93|   			void *data)
#   94|   {
#   95|-> 	return spa_api_method_r(int, -ENOTSUP,
#   96|   			pw_module, (struct spa_interface*)object, add_listener, 0,
#   97|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2298]
pipewire-1.5.81/src/pipewire/node.h:194: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  192|   			void *data)
#  193|   {
#  194|-> 	return spa_api_method_r(int, -ENOTSUP,
#  195|   			pw_node, (struct spa_interface*)object, add_listener, 0,
#  196|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2299]
pipewire-1.5.81/src/pipewire/node.h:202: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  200|   PW_API_NODE_IMPL int pw_node_subscribe_params(struct pw_node *object, uint32_t *ids, uint32_t n_ids)
#  201|   {
#  202|-> 	return spa_api_method_r(int, -ENOTSUP,
#  203|   			pw_node, (struct spa_interface*)object, subscribe_params, 0,
#  204|   			ids, n_ids);

Error: CPPCHECK_WARNING (CWE-190): [#def2300]
pipewire-1.5.81/src/pipewire/node.h:212: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  210|   			    const struct spa_pod *filter)
#  211|   {
#  212|-> 	return spa_api_method_r(int, -ENOTSUP,
#  213|   			pw_node, (struct spa_interface*)object, enum_params, 0,
#  214|   			seq, id, start, num, filter);

Error: CPPCHECK_WARNING (CWE-190): [#def2301]
pipewire-1.5.81/src/pipewire/node.h:221: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  219|   			  const struct spa_pod *param)
#  220|   {
#  221|-> 	return spa_api_method_r(int, -ENOTSUP,
#  222|   			pw_node, (struct spa_interface*)object, set_param, 0,
#  223|   			id, flags, param);

Error: CPPCHECK_WARNING (CWE-190): [#def2302]
pipewire-1.5.81/src/pipewire/node.h:229: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  227|   PW_API_NODE_IMPL int pw_node_send_command(struct pw_node *object, const struct spa_command *command)
#  228|   {
#  229|-> 	return spa_api_method_r(int, -ENOTSUP,
#  230|   			pw_node, (struct spa_interface*)object, send_command, 0, command);
#  231|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2303]
pipewire-1.5.81/src/pipewire/pipewire.c:129:9: warning[-Wanalyzer-malloc-leak]: leak of ‘plugin’
pipewire-1.5.81/src/pipewire/pipewire.c:335:14: enter_function: entry to ‘add_interface’
pipewire-1.5.81/src/pipewire/pipewire.c:344:18: call_function: calling ‘load_spa_handle’ from ‘add_interface’
#  127|   	}
#  128|   
#  129|-> 	pw_log_debug("loaded plugin:'%s'", filename);
#  130|   	plugin->ref = 1;
#  131|   	plugin->filename = strdup(filename);

Error: CPPCHECK_WARNING (CWE-190): [#def2304]
pipewire-1.5.81/src/pipewire/port.h:155: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  153|   			void *data)
#  154|   {
#  155|-> 	return spa_api_method_r(int, -ENOTSUP,
#  156|   			pw_port, (struct spa_interface*)object, add_listener, 0,
#  157|   			listener, events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def2305]
pipewire-1.5.81/src/pipewire/port.h:163: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  161|   PW_API_PORT_IMPL int pw_port_subscribe_params(struct pw_port *object, uint32_t *ids, uint32_t n_ids)
#  162|   {
#  163|-> 	return spa_api_method_r(int, -ENOTSUP,
#  164|   			pw_port, (struct spa_interface*)object, subscribe_params, 0,
#  165|   			ids, n_ids);

Error: CPPCHECK_WARNING (CWE-190): [#def2306]
pipewire-1.5.81/src/pipewire/port.h:173: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  171|   			    const struct spa_pod *filter)
#  172|   {
#  173|-> 	return spa_api_method_r(int, -ENOTSUP,
#  174|   			pw_port, (struct spa_interface*)object, enum_params, 0,
#  175|   			seq, id, start, num, filter);

Error: CPPCHECK_WARNING (CWE-190): [#def2307]
pipewire-1.5.81/src/pipewire/private.h:327: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  325|   			resource, id, seq, res, spa_strerror(res), buffer);
#  326|   	if (resource)
#  327|-> 		pw_core_resource_error(resource, id, seq, res, buffer);
#  328|   	else
#  329|   		pw_log_error("id:%d seq:%d res:%d (%s) msg:\"%s\"",

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2308]
pipewire-1.5.81/src/pipewire/properties.h:112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-profiler.c:513:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:525:23: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:548:17: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
#  110|   {
#  111|   	uint32_t val = deflt;
#  112|-> 	pw_properties_fetch_uint32(properties, key, &val);
#  113|   	return val;
#  114|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2309]
pipewire-1.5.81/src/pipewire/properties.h:112:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-profiler.c:513:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-profiler.c:521:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-profiler.c:522:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-profiler.c:524:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:526:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:531:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:534:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-profiler.c:536:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-profiler.c:548:17: call_function: inlined call to ‘pw_properties_get_uint32’ from ‘pipewire__module_init’
#  110|   {
#  111|   	uint32_t val = deflt;
#  112|-> 	pw_properties_fetch_uint32(properties, key, &val);
#  113|   	return val;
#  114|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2310]
pipewire-1.5.81/src/pipewire/properties.h:136:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-rtp-source.c:686:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:699:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-source.c:700:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-source.c:703:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:708:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:714:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:765:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:770:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-source.c:772:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: call_function: calling ‘pw_net_get_ip’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-source.c:776:9: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_get_ip’
pipewire-1.5.81/src/modules/module-rtp-source.c:785:21: call_function: inlined call to ‘pw_properties_get_int64’ from ‘pipewire__module_init’
#  134|   {
#  135|   	int64_t val = deflt;
#  136|-> 	pw_properties_fetch_int64(properties, key, &val);
#  137|   	return val;
#  138|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2311]
pipewire-1.5.81/src/pipewire/properties.h:145:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1857:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1869:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1872:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1880:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1885:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:24: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: branch_true: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1892:30: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:33: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1895:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1898:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1901:20: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: call_function: calling ‘pw_net_parse_address’ from ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:20: return_function: returning to ‘pipewire__module_init’ from ‘pw_net_parse_address’
pipewire-1.5.81/src/modules/module-rtp-sap.c:1904:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-rtp-sap.c:1908:59: branch_false: ...to here
pipewire-1.5.81/src/modules/module-rtp-sap.c:1912:28: call_function: inlined call to ‘pw_properties_get_bool’ from ‘pipewire__module_init’
#  143|   {
#  144|   	bool val = deflt;
#  145|-> 	pw_properties_fetch_bool(properties, key, &val);
#  146|   	return val;
#  147|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2312]
pipewire-1.5.81/src/pipewire/properties.h:145:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:496:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:505:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:506:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:509:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:511:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:515:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:518:9: branch_false: ...to here
pipewire-1.5.81/src/modules/module-zeroconf-discover.c:524:33: call_function: inlined call to ‘pw_properties_get_bool’ from ‘pipewire__module_init’
#  143|   {
#  144|   	bool val = deflt;
#  145|-> 	pw_properties_fetch_bool(properties, key, &val);
#  146|   	return val;
#  147|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2313]
pipewire-1.5.81/src/pipewire/properties.h:192:1: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.5.81/src/modules/module-roc-sink.c:368:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.5.81/src/modules/module-roc-sink.c:378:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-roc-sink.c:379:12: branch_false: following ‘false’ branch (when ‘data’ is non-NULL)...
pipewire-1.5.81/src/modules/module-roc-sink.c:382:12: branch_false: ...to here
pipewire-1.5.81/src/modules/module-roc-sink.c:386:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/modules/module-roc-sink.c:392:25: branch_false: ...to here
pipewire-1.5.81/src/modules/module-roc-sink.c:385:36: call_function: calling ‘_spa_autoptr_cleanup_func_pw_properties’ from ‘pipewire__module_init’
#  190|    */
#  191|   
#  192|-> SPA_DEFINE_AUTOPTR_CLEANUP(pw_properties, struct pw_properties, {
#  193|   	spa_clear_ptr(*thing, pw_properties_free);
#  194|   })

Error: CPPCHECK_WARNING (CWE-190): [#def2314]
pipewire-1.5.81/src/pipewire/protocol.c:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   
#   91|   	pw_log_debug("%p: destroy", protocol);
#   92|-> 	pw_protocol_emit_destroy(protocol);
#   93|   
#   94|   	spa_hook_list_clean(&protocol->listener_list);

Error: CPPCHECK_WARNING (CWE-401): [#def2315]
pipewire-1.5.81/src/pipewire/protocol.c:139: error[memleak]: Memory leak: impl
#  137|   			marshal->type, marshal->version, protocol->name);
#  138|   
#  139|-> 	return 0;
#  140|   }
#  141|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2316]
pipewire-1.5.81/src/pipewire/proxy.c:37:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/proxy.c:72:18: enter_function: entry to ‘pw_proxy_new’
pipewire-1.5.81/src/pipewire/proxy.c:80:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/proxy.c:81:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/proxy.c:84:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/proxy.c:86:20: call_function: calling ‘pw_proxy_init’ from ‘pw_proxy_new’
#   35|   	if (proxy->id == SPA_ID_INVALID) {
#   36|   		res = -errno;
#   37|-> 		pw_log_error("%p: can't allocate new id: %m", proxy);
#   38|   		goto error;
#   39|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def2317]
pipewire-1.5.81/src/pipewire/proxy.c:144: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  142|   	proxy->bound_id = global_id;
#  143|   	pw_log_debug("%p: id:%d bound:%d", proxy, proxy->id, global_id);
#  144|-> 	pw_proxy_emit_bound(proxy, global_id);
#  145|   	return 0;
#  146|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2318]
pipewire-1.5.81/src/pipewire/proxy.c:233: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  231|   		 * events will be emitted on zombie objects */
#  232|   		proxy->zombie = true;
#  233|-> 		pw_proxy_emit_destroy(proxy);
#  234|   	}
#  235|   

Error: CPPCHECK_WARNING (CWE-190): [#def2319]
pipewire-1.5.81/src/pipewire/proxy.c:257: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  255|   		proxy->removed = true;
#  256|   		if (!proxy->destroyed)
#  257|-> 			pw_proxy_emit_removed(proxy);
#  258|   	}
#  259|   	if (proxy->destroyed)

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2320]
pipewire-1.5.81/src/pipewire/resource.c:58:17: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/resource.c:36:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/resource.c:37:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/resource.c:40:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:52:12: branch_false: following ‘false’ branch (when ‘id != 4294967295’)...
pipewire-1.5.81/src/pipewire/resource.c:57:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:57:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/resource.c:58:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/resource.c:58:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/resource.c:58:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/resource.c:58:17: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   56|   
#   57|   	if ((res = pw_map_insert_at(&client->objects, id, this)) < 0) {
#   58|-> 		pw_log_error("%p: can't add id %u for client %p: %s",
#   59|   			this, id, client, spa_strerror(res));
#   60|   		goto error_clean;

Error: CPPCHECK_WARNING (CWE-190): [#def2321]
pipewire-1.5.81/src/pipewire/resource.c:77: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   75|   			this, id, type, version, client, this->marshal);
#   76|   
#   77|-> 	pw_impl_client_emit_resource_added(client, this);
#   78|   
#   79|   	return this;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2322]
pipewire-1.5.81/src/pipewire/resource.c:93:19: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/resource.c:25:21: enter_function: entry to ‘pw_resource_new’
pipewire-1.5.81/src/pipewire/resource.c:36:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/resource.c:37:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/resource.c:40:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:52:12: branch_false: following ‘false’ branch (when ‘id != 4294967295’)...
pipewire-1.5.81/src/pipewire/resource.c:57:20: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:57:20: call_function: calling ‘pw_map_insert_at’ from ‘pw_resource_new’
pipewire-1.5.81/src/pipewire/resource.c:57:20: return_function: returning to ‘pw_resource_new’ from ‘pw_map_insert_at’
pipewire-1.5.81/src/pipewire/resource.c:57:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/resource.c:62:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:64:20: call_function: calling ‘pw_resource_install_marshal’ from ‘pw_resource_new’
#   91|   	const struct pw_protocol_marshal *marshal;
#   92|   
#   93|-> 	marshal = pw_protocol_get_marshal(client->protocol,
#   94|   			this->type, this->version,
#   95|   			implementor ? PW_PROTOCOL_MARSHAL_FLAG_IMPL : 0);

Error: CPPCHECK_WARNING (CWE-190): [#def2323]
pipewire-1.5.81/src/pipewire/resource.c:184: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  182|   
#  183|   	if (client->core_resource != NULL) {
#  184|-> 		pw_core_resource_ping(client->core_resource, resource->id, seq);
#  185|   		res = client->send_seq;
#  186|   		pw_log_debug("%p: %u seq:%d ping %d", resource, resource->id, seq, res);

Error: CPPCHECK_WARNING (CWE-190): [#def2324]
pipewire-1.5.81/src/pipewire/resource.c:209: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  207|   					dict);
#  208|   		else
#  209|-> 			pw_core_resource_bound_id(client->core_resource, resource->id, global_id);
#  210|   	}
#  211|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-404): [#def2325]
pipewire-1.5.81/src/pipewire/resource.c:243:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/src/pipewire/resource.c:239:9: acquire_resource: ‘va_start’ called here
pipewire-1.5.81/src/pipewire/resource.c:240:12: branch_false: following ‘false’ branch (when ‘resource’ is NULL)...
pipewire-1.5.81/src/pipewire/resource.c:243:17: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:243:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/resource.c:243:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/resource.c:243:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  241|   		pw_resource_errorv_id(resource, resource->id, res, error, ap);
#  242|   	else
#  243|-> 		pw_logtv(SPA_LOG_LEVEL_ERROR, PW_LOG_TOPIC_DEFAULT, error, ap);
#  244|   	va_end(ap);
#  245|   }

Error: GCC_ANALYZER_WARNING (CWE-404): [#def2326]
pipewire-1.5.81/src/pipewire/resource.c:255:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/src/pipewire/resource.c:251:9: acquire_resource: ‘va_start’ called here
pipewire-1.5.81/src/pipewire/resource.c:252:12: branch_false: following ‘false’ branch (when ‘resource’ is NULL)...
pipewire-1.5.81/src/pipewire/resource.c:255:17: branch_false: ...to here
pipewire-1.5.81/src/pipewire/resource.c:255:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/resource.c:255:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/resource.c:255:17: danger: missing call to ‘va_end’ to match ‘va_start’ at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  253|   		pw_resource_errorv_id(resource, id, res, error, ap);
#  254|   	else
#  255|-> 		pw_logtv(SPA_LOG_LEVEL_ERROR, PW_LOG_TOPIC_DEFAULT, error, ap);
#  256|   	va_end(ap);
#  257|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2327]
pipewire-1.5.81/src/pipewire/resource.c:266: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  264|   		client = resource->client;
#  265|   		if (client->core_resource != NULL)
#  266|-> 			pw_core_resource_error(client->core_resource,
#  267|   					resource->id, client->recv_seq, res, error);
#  268|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def2328]
pipewire-1.5.81/src/pipewire/resource.c:325: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  323|   	}
#  324|   
#  325|-> 	pw_resource_emit_destroy(resource);
#  326|   
#  327|   	pw_map_insert_at(&client->objects, resource->id, NULL);

Error: CPPCHECK_WARNING (CWE-190): [#def2329]
pipewire-1.5.81/src/pipewire/resource.c:328: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  326|   
#  327|   	pw_map_insert_at(&client->objects, resource->id, NULL);
#  328|-> 	pw_impl_client_emit_resource_removed(client, resource);
#  329|   
#  330|   	if (client->core_resource && !resource->removed)

Error: CPPCHECK_WARNING (CWE-190): [#def2330]
pipewire-1.5.81/src/pipewire/resource.c:331: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  329|   
#  330|   	if (client->core_resource && !resource->removed)
#  331|-> 		pw_core_resource_remove_id(client->core_resource, resource->id);
#  332|   
#  333|   	pw_resource_unref(resource);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2331]
pipewire-1.5.81/src/pipewire/settings.c:251:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  249|   	char rates[MAX_RATES*16] = "";
#  250|   
#  251|-> 	pw_impl_metadata_set_propertyf(metadata,
#  252|   			PW_ID_CORE, "log.level", "", "%d", s->log_level);
#  253|   	pw_impl_metadata_set_propertyf(metadata,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2332]
pipewire-1.5.81/src/pipewire/settings.c:253:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  251|   	pw_impl_metadata_set_propertyf(metadata,
#  252|   			PW_ID_CORE, "log.level", "", "%d", s->log_level);
#  253|-> 	pw_impl_metadata_set_propertyf(metadata,
#  254|   			PW_ID_CORE, "clock.rate", "", "%d", s->clock_rate);
#  255|   	for (i = 0, o = 0; i < s->n_clock_rates; i++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2333]
pipewire-1.5.81/src/pipewire/settings.c:267:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  265|   		snprintf(rates, sizeof(rates), "%d", s->clock_rate);
#  266|   
#  267|-> 	pw_impl_metadata_set_propertyf(metadata,
#  268|   			PW_ID_CORE, "clock.allowed-rates", "", "[ %s ]", rates);
#  269|   	pw_impl_metadata_set_propertyf(metadata,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2334]
pipewire-1.5.81/src/pipewire/settings.c:269:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  267|   	pw_impl_metadata_set_propertyf(metadata,
#  268|   			PW_ID_CORE, "clock.allowed-rates", "", "[ %s ]", rates);
#  269|-> 	pw_impl_metadata_set_propertyf(metadata,
#  270|   			PW_ID_CORE, "clock.quantum", "", "%d", s->clock_quantum);
#  271|   	pw_impl_metadata_set_propertyf(metadata,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2335]
pipewire-1.5.81/src/pipewire/settings.c:271:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  269|   	pw_impl_metadata_set_propertyf(metadata,
#  270|   			PW_ID_CORE, "clock.quantum", "", "%d", s->clock_quantum);
#  271|-> 	pw_impl_metadata_set_propertyf(metadata,
#  272|   			PW_ID_CORE, "clock.min-quantum", "", "%d", s->clock_min_quantum);
#  273|   	pw_impl_metadata_set_propertyf(metadata,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2336]
pipewire-1.5.81/src/pipewire/settings.c:273:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  271|   	pw_impl_metadata_set_propertyf(metadata,
#  272|   			PW_ID_CORE, "clock.min-quantum", "", "%d", s->clock_min_quantum);
#  273|-> 	pw_impl_metadata_set_propertyf(metadata,
#  274|   			PW_ID_CORE, "clock.max-quantum", "", "%d", s->clock_max_quantum);
#  275|   	pw_impl_metadata_set_propertyf(metadata,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2337]
pipewire-1.5.81/src/pipewire/settings.c:275:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  273|   	pw_impl_metadata_set_propertyf(metadata,
#  274|   			PW_ID_CORE, "clock.max-quantum", "", "%d", s->clock_max_quantum);
#  275|-> 	pw_impl_metadata_set_propertyf(metadata,
#  276|   			PW_ID_CORE, "clock.force-quantum", "", "%d", s->clock_force_quantum);
#  277|   	pw_impl_metadata_set_propertyf(metadata,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2338]
pipewire-1.5.81/src/pipewire/settings.c:277:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:281:5: enter_function: entry to ‘pw_settings_expose’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:294:9: call_function: calling ‘expose_settings’ from ‘pw_settings_expose’
#  275|   	pw_impl_metadata_set_propertyf(metadata,
#  276|   			PW_ID_CORE, "clock.force-quantum", "", "%d", s->clock_force_quantum);
#  277|-> 	pw_impl_metadata_set_propertyf(metadata,
#  278|   			PW_ID_CORE, "clock.force-rate", "", "%d", s->clock_force_rate);
#  279|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2339]
pipewire-1.5.81/src/pipewire/settings.c:290:26: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:290:26: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/8/codeFlows/0/threadFlows/0/locations/0)
#  288|   
#  289|   	impl->context = context;
#  290|-> 	impl->metadata = pw_context_create_metadata(context, "settings", NULL, 0);
#  291|   	if (impl->metadata == NULL)
#  292|   		goto error_free;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2340]
pipewire-1.5.81/src/pipewire/settings.c:296:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.5.81/src/pipewire/settings.c:285:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/settings.c:286:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.5.81/src/pipewire/settings.c:289:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:291:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/settings.c:294:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/settings.c:296:9: danger: ‘impl’ leaks here; was allocated at [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0)
#  294|   	expose_settings(context, impl->metadata);
#  295|   
#  296|-> 	pw_impl_metadata_add_listener(impl->metadata,
#  297|   			&impl->metadata_listener,
#  298|   			&metadata_events, impl);

Error: CPPCHECK_WARNING (CWE-190): [#def2341]
pipewire-1.5.81/src/pipewire/stream.c:426: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  424|   
#  425|   		stream->state = state;
#  426|-> 		pw_stream_emit_state_changed(stream, old, state, error);
#  427|   	}
#  428|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def2342]
pipewire-1.5.81/src/pipewire/stream.c:478: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  476|   	struct pw_stream *stream = &impl->this;
#  477|   	pw_log_trace_fp("%p: drained", stream);
#  478|-> 	pw_stream_emit_drained(stream);
#  479|   	SPA_ATOMIC_DEC(impl->pending_drain);
#  480|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2343]
pipewire-1.5.81/src/pipewire/stream.c:525: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  523|   			spa_debug_type_find_name(spa_type_io, id), data, size);
#  524|   
#  525|-> 	pw_stream_emit_io_changed(stream, id, data, size);
#  526|   
#  527|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2344]
pipewire-1.5.81/src/pipewire/stream.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   		spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
#  564|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  565|-> 			spa_node_emit_result(&d->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  566|   			count++;
#  567|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def2345]
pipewire-1.5.81/src/pipewire/stream.c:587: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  585|   	struct pw_stream *stream = &impl->this;
#  586|   	if (impl->in_emit_param_changed++ == 0)
#  587|-> 		pw_stream_emit_param_changed(stream, id, param);
#  588|   	impl->in_emit_param_changed--;
#  589|   }

Error: CPPCHECK_WARNING (CWE-190): [#def2346]
pipewire-1.5.81/src/pipewire/stream.c:606: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  604|   			}
#  605|   		}
#  606|-> 		spa_node_emit_info(&d->hooks, &d->info);
#  607|   	}
#  608|   	d->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def2347]
pipewire-1.5.81/src/pipewire/stream.c:626: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  624|   			}
#  625|   		}
#  626|-> 		spa_node_emit_port_info(&d->hooks, d->direction, 0, &d->port_info);
#  627|   	}
#  628|   	d->port_info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def2348]
pipewire-1.5.81/src/pipewire/stream.c:786: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  784|   		break;
#  785|   	}
#  786|-> 	pw_stream_emit_io_changed(stream, id, data, size);
#  787|   
#  788|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2349]
pipewire-1.5.81/src/pipewire/stream.c:854: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  852|   
#  853|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_ADDED))
#  854|-> 			pw_stream_emit_remove_buffer(stream, &b->this);
#  855|   
#  856|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_MAPPED)) {

Error: CPPCHECK_WARNING (CWE-190): [#def2350]
pipewire-1.5.81/src/pipewire/stream.c:1047: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1045|   		SPA_FLAG_SET(b->flags, BUFFER_FLAG_ADDED);
# 1046|   
# 1047|-> 		pw_stream_emit_add_buffer(stream, &b->this);
# 1048|   	}
# 1049|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def2351]
pipewire-1.5.81/src/pipewire/stream.c:1217: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1215|   	 * do a pw_stream_set_error() */
# 1216|   	errno = -res;
# 1217|-> 	pw_stream_emit_state_changed(stream, stream->state,
# 1218|   			PW_STREAM_STATE_ERROR, message);
# 1219|   	errno = old_errno;

Error: CPPCHECK_WARNING (CWE-457): [#def2352]
pipewire-1.5.81/src/pipewire/stream.c:1268: error[uninitvar]: Uninitialized variable: iid
# 1266|   			return -EINVAL;
# 1267|   
# 1268|-> 		c = find_control(stream, iid);
# 1269|   		if (c != NULL)
# 1270|   			return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def2353]
pipewire-1.5.81/src/pipewire/stream.c:1273: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1271|   
# 1272|   		c = calloc(1, sizeof(*c) + SPA_POD_SIZE(param));
# 1273|-> 		c->info = SPA_PTROFF(c, sizeof(*c), struct spa_pod);
# 1274|   		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1275|   		c->control.n_values = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def2354]
pipewire-1.5.81/src/pipewire/stream.c:1274: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1272|   		c = calloc(1, sizeof(*c) + SPA_POD_SIZE(param));
# 1273|   		c->info = SPA_PTROFF(c, sizeof(*c), struct spa_pod);
# 1274|-> 		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1275|   		c->control.n_values = 0;
# 1276|   		c->control.max_values = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def2355]
pipewire-1.5.81/src/pipewire/stream.c:1275: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1273|   		c->info = SPA_PTROFF(c, sizeof(*c), struct spa_pod);
# 1274|   		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1275|-> 		c->control.n_values = 0;
# 1276|   		c->control.max_values = 0;
# 1277|   		c->control.values = c->values;

Error: CPPCHECK_WARNING (CWE-476): [#def2356]
pipewire-1.5.81/src/pipewire/stream.c:1276: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1274|   		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1275|   		c->control.n_values = 0;
# 1276|-> 		c->control.max_values = 0;
# 1277|   		c->control.values = c->values;
# 1278|   

Error: CPPCHECK_WARNING (CWE-476): [#def2357]
pipewire-1.5.81/src/pipewire/stream.c:1277: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1275|   		c->control.n_values = 0;
# 1276|   		c->control.max_values = 0;
# 1277|-> 		c->control.values = c->values;
# 1278|   
# 1279|   		if (spa_pod_parse_object(c->info,

Error: CPPCHECK_WARNING (CWE-457): [#def2358]
pipewire-1.5.81/src/pipewire/stream.c:1288: error[uninitvar]: Uninitialized variable: type
# 1286|   		}
# 1287|   
# 1288|-> 		pod = spa_pod_get_values(type, &n_vals, &choice);
# 1289|   		if (n_vals == 0) {
# 1290|   			free(c);

Error: CPPCHECK_WARNING (CWE-758): [#def2359]
pipewire-1.5.81/src/pipewire/stream.c:1413: warning[objectIndex]: The address of variable 'value_f' might be accessed at non-zero index.
# 1411|   					prop->key, c->control.name, n_values);
# 1412|   			for (i = 0; i < n_values; i++)
# 1413|-> 				pw_log_debug("%p:  value %d %f", stream, i, values[i]);
# 1414|   
# 1415|   			pw_stream_emit_control_info(stream, prop->key, &c->control);

Error: CPPCHECK_WARNING (CWE-190): [#def2360]
pipewire-1.5.81/src/pipewire/stream.c:1415: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1413|   				pw_log_debug("%p:  value %d %f", stream, i, values[i]);
# 1414|   
# 1415|-> 			pw_stream_emit_control_info(stream, prop->key, &c->control);
# 1416|   		}
# 1417|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def2361]
pipewire-1.5.81/src/pipewire/stream.c:1737: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1735|   	pw_log_debug("%p: destroy", stream);
# 1736|   
# 1737|-> 	pw_stream_emit_destroy(stream);
# 1738|   
# 1739|   	if (!impl->disconnecting)

Error: CPPCHECK_WARNING (CWE-190): [#def2362]
pipewire-1.5.81/src/pipewire/stream.c:2700: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2698|   	struct stream *impl = user_data;
# 2699|   	const struct spa_event *event = data;
# 2700|-> 	spa_node_emit_event(&impl->hooks, event);
# 2701|   	return 0;
# 2702|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2363]
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/thread-loop.c:56:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/thread-loop.c:57:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   58|   		return NULL;
#   59|   
#   60|-> 	pw_log_debug("%p: new name:%s", this, name);
#   61|   	if (props != NULL) {
#   62|   		const char *str = spa_dict_lookup(props, "thread-loop.start-signal");

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2364]
pipewire-1.5.81/src/pipewire/thread-loop.c:68:24: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/thread-loop.c:56:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/thread-loop.c:57:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/thread-loop.c:61:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:67:12: branch_true: following ‘true’ branch (when ‘loop’ is NULL)...
pipewire-1.5.81/src/pipewire/thread-loop.c:68:24: branch_true: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:68:24: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   66|   
#   67|   	if (loop == NULL) {
#   68|-> 		loop = pw_loop_new(props);
#   69|   		this->created = true;
#   70|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2365]
pipewire-1.5.81/src/pipewire/thread-loop.c:76:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/thread-loop.c:56:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/thread-loop.c:57:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:60:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/thread-loop.c:61:12: branch_false: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:67:12: branch_false: following ‘false’ branch (when ‘loop’ is non-NULL)...
pipewire-1.5.81/src/pipewire/thread-loop.c:75:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/thread-loop.c:76:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#   74|   	}
#   75|   	this->loop = loop;
#   76|-> 	pw_loop_set_name(loop, name ? name : "thread-loop");
#   77|   
#   78|   	spa_hook_list_init(&this->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def2366]
pipewire-1.5.81/src/pipewire/thread-loop.c:135: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  133|   void pw_thread_loop_destroy(struct pw_thread_loop *loop)
#  134|   {
#  135|-> 	pw_thread_loop_events_destroy(loop);
#  136|   
#  137|   	pw_thread_loop_stop(loop);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2367]
pipewire-1.5.81/src/pipewire/thread.h:39:16: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/modules/module-rt.c:719:27: enter_function: entry to ‘impl_create’
pipewire-1.5.81/src/modules/module-rt.c:726:16: acquire_memory: allocated here
pipewire-1.5.81/src/modules/module-rt.c:733:18: call_function: calling ‘pw_thread_utils_create’ from ‘impl_create’
#   37|   		const struct spa_dict *props, void *(*start_routine)(void*), void *arg)
#   38|   {
#   39|-> 	return spa_thread_utils_create(pw_thread_utils_get(), props, start_routine, arg);
#   40|   }
#   41|   PW_API_THREAD_IMPL int pw_thread_utils_join(struct spa_thread *thread, void **retval)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2368]
pipewire-1.5.81/src/pipewire/utils.c:293:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/urandom", 524288)’
pipewire-1.5.81/src/pipewire/utils.c:279:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/utils.c:280:26: branch_true: ...to here
pipewire-1.5.81/src/pipewire/utils.c:281:12: branch_false: following ‘false’ branch (when ‘bytes == -38’)...
pipewire-1.5.81/src/pipewire/utils.c:285:18: branch_false: ...to here
pipewire-1.5.81/src/pipewire/utils.c:285:18: acquire_resource: opened here
pipewire-1.5.81/src/pipewire/utils.c:286:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/utils.c:289:17: branch_false: ...to here
pipewire-1.5.81/src/pipewire/utils.c:290:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/utils.c:293:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/utils.c:293:9: danger: ‘open("/dev/urandom", 524288)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#  291|   		bytes = -errno;
#  292|   
#  293|-> 	close(fd);
#  294|   
#  295|   	return bytes;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2369]
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: warning[-Wanalyzer-malloc-leak]: leak of ‘this’
pipewire-1.5.81/src/pipewire/work-queue.c:84:16: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/work-queue.c:85:12: branch_false: following ‘false’ branch (when ‘this’ is non-NULL)...
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: branch_true: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:88:9: danger: ‘this’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   86|   		return NULL;
#   87|   
#   88|-> 	pw_log_debug("%p: new", this);
#   89|   
#   90|   	this->loop = loop;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2370]
pipewire-1.5.81/src/pipewire/work-queue.c:167:17: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
pipewire-1.5.81/src/pipewire/work-queue.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:152:24: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:152:24: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/work-queue.c:153:20: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
pipewire-1.5.81/src/pipewire/work-queue.c:156:22: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:164:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:165:29: branch_true: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:167:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:167:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:167:17: danger: ‘item’ leaks here; was allocated at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  165|   		item->seq = SPA_RESULT_ASYNC_SEQ(res);
#  166|   		item->res = res;
#  167|-> 		pw_log_debug("%p: defer async %d for object %p id:%d",
#  168|   				queue, item->seq, obj, item->id);
#  169|   	} else if (res == -EBUSY) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2371]
pipewire-1.5.81/src/pipewire/work-queue.c:170:17: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
pipewire-1.5.81/src/pipewire/work-queue.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:152:24: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:152:24: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/work-queue.c:153:20: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
pipewire-1.5.81/src/pipewire/work-queue.c:156:22: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:164:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:169:19: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:169:19: branch_true: following ‘true’ branch (when ‘res == -16’)...
pipewire-1.5.81/src/pipewire/work-queue.c:170:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:170:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:170:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:170:17: danger: ‘item’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  168|   				queue, item->seq, obj, item->id);
#  169|   	} else if (res == -EBUSY) {
#  170|-> 		pw_log_debug("%p: wait sync object %p id:%u",
#  171|   				queue, obj, item->id);
#  172|   		item->seq = SPA_ID_INVALID;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2372]
pipewire-1.5.81/src/pipewire/work-queue.c:179:17: warning[-Wanalyzer-malloc-leak]: leak of ‘item’
pipewire-1.5.81/src/pipewire/work-queue.c:148:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:152:24: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:152:24: acquire_memory: allocated here
pipewire-1.5.81/src/pipewire/work-queue.c:153:20: branch_false: following ‘false’ branch (when ‘item’ is non-NULL)...
pipewire-1.5.81/src/pipewire/work-queue.c:156:22: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:164:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:169:19: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:169:19: branch_false: following ‘false’ branch (when ‘res != -16’)...
pipewire-1.5.81/src/pipewire/work-queue.c:176:17: branch_false: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:179:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/pipewire/work-queue.c:179:17: branch_true: ...to here
pipewire-1.5.81/src/pipewire/work-queue.c:179:17: danger: ‘item’ leaks here; was allocated at [(3)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/2)
#  177|   		item->res = res;
#  178|   		have_work = true;
#  179|-> 		pw_log_debug("%p: defer object %p id:%u", queue, obj, item->id);
#  180|   	}
#  181|   	spa_list_append(&queue->work_list, &item->link);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2373]
pipewire-1.5.81/src/tools/dsffile.c:173:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/tools/dsffile.c:154:1: enter_function: entry to ‘dsf_file_open’
pipewire-1.5.81/src/tools/dsffile.c:160:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/tools/dsffile.c:163:13: branch_false: ...to here
pipewire-1.5.81/src/tools/dsffile.c:163:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/dsffile.c:164:28: branch_true: ...to here
pipewire-1.5.81/src/tools/dsffile.c:164:28: call_function: calling ‘open_read’ from ‘dsf_file_open’
pipewire-1.5.81/src/tools/dsffile.c:164:28: return_function: returning to ‘dsf_file_open’ from ‘open_read’
pipewire-1.5.81/src/tools/dsffile.c:164:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/dsffile.c:165:25: branch_true: ...to here
pipewire-1.5.81/src/tools/dsffile.c:173:9: danger: ‘<unknown>’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
#  171|   
#  172|   exit_free:
#  173|->         free(f);
#  174|           errno = -res;
#  175|           return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2374]
pipewire-1.5.81/src/tools/midifile.c:66:20: warning[-Wanalyzer-malloc-leak]: leak of ‘mf’
pipewire-1.5.81/src/tools/midifile.c:278:1: enter_function: entry to ‘midi_file_open’
pipewire-1.5.81/src/tools/midifile.c:283:14: acquire_memory: allocated here
pipewire-1.5.81/src/tools/midifile.c:284:12: branch_false: following ‘false’ branch (when ‘mf’ is non-NULL)...
pipewire-1.5.81/src/tools/midifile.c:287:13: branch_false: ...to here
pipewire-1.5.81/src/tools/midifile.c:287:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/midifile.c:288:28: branch_true: ...to here
pipewire-1.5.81/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: CPPCHECK_WARNING (CWE-476): [#def2375]
pipewire-1.5.81/src/tools/pw-cli.c:2284: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: line
# 2282|   		line = strdup("quit");
# 2283|   
# 2284|-> 	if (line[0] != '\0') {
# 2285|   #ifdef HAVE_READLINE
# 2286|   		add_history(line);

Error: COMPILER_WARNING (CWE-252): [#def2376]
pipewire-1.5.81/src/tools/pw-container.c: scope_hint: In function ‘main’
pipewire-1.5.81/src/tools/pw-container.c:286:17: warning[-Wunused-result]: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’
#  286 |                 system(argv[optind++]);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~
#  284|   
#  285|   	if (optind < argc) {
#  286|-> 		system(argv[optind++]);
#  287|   	} else {
#  288|   		fprintf(stdout, "new socket: %s\n", temp);

Error: CPPCHECK_WARNING (CWE-476): [#def2377]
pipewire-1.5.81/src/tools/pw-dot.c:972: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  970|   	/* set the global data */
#  971|   	g = calloc(1, sizeof(struct global));
#  972|-> 	g->data = d;
#  973|   	g->proxy = proxy;
#  974|   

Error: CPPCHECK_WARNING (CWE-476): [#def2378]
pipewire-1.5.81/src/tools/pw-dot.c:973: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  971|   	g = calloc(1, sizeof(struct global));
#  972|   	g->data = d;
#  973|-> 	g->proxy = proxy;
#  974|   
#  975|   	g->id = id;

Error: CPPCHECK_WARNING (CWE-476): [#def2379]
pipewire-1.5.81/src/tools/pw-dot.c:975: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  973|   	g->proxy = proxy;
#  974|   
#  975|-> 	g->id = id;
#  976|   	g->type = object_type;
#  977|   	g->info = NULL;

Error: CPPCHECK_WARNING (CWE-476): [#def2380]
pipewire-1.5.81/src/tools/pw-dot.c:976: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  974|   
#  975|   	g->id = id;
#  976|-> 	g->type = object_type;
#  977|   	g->info = NULL;
#  978|   

Error: CPPCHECK_WARNING (CWE-476): [#def2381]
pipewire-1.5.81/src/tools/pw-dot.c:977: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  975|   	g->id = id;
#  976|   	g->type = object_type;
#  977|-> 	g->info = NULL;
#  978|   
#  979|   	g->info_destroy = info_destroy;

Error: CPPCHECK_WARNING (CWE-476): [#def2382]
pipewire-1.5.81/src/tools/pw-dot.c:979: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  977|   	g->info = NULL;
#  978|   
#  979|-> 	g->info_destroy = info_destroy;
#  980|   	g->info_update = info_update;
#  981|   	g->draw = draw;

Error: CPPCHECK_WARNING (CWE-476): [#def2383]
pipewire-1.5.81/src/tools/pw-dot.c:980: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  978|   
#  979|   	g->info_destroy = info_destroy;
#  980|-> 	g->info_update = info_update;
#  981|   	g->draw = draw;
#  982|   

Error: CPPCHECK_WARNING (CWE-476): [#def2384]
pipewire-1.5.81/src/tools/pw-dot.c:981: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
#  979|   	g->info_destroy = info_destroy;
#  980|   	g->info_update = info_update;
#  981|-> 	g->draw = draw;
#  982|   
#  983|   	pw_proxy_add_object_listener(proxy, &g->object_listener, events, g);

Error: CPPCHECK_WARNING (CWE-476): [#def2385]
pipewire-1.5.81/src/tools/pw-dot.c:1094: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
# 1092|   
# 1093|   	g = calloc(1, sizeof (struct global));
# 1094|-> 	g->data = data;
# 1095|   	g->draw = false;
# 1096|   

Error: CPPCHECK_WARNING (CWE-587): [#def2386]
pipewire-1.5.81/src/tools/pw-dot.c:1095: error[assignBoolToPointer]: Boolean value assigned to pointer.
# 1093|   	g = calloc(1, sizeof (struct global));
# 1094|   	g->data = data;
# 1095|-> 	g->draw = false;
# 1096|   
# 1097|   	if (spa_streq(str, PW_TYPE_INTERFACE_Port)) {

Error: CPPCHECK_WARNING (CWE-476): [#def2387]
pipewire-1.5.81/src/tools/pw-dot.c:1095: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: g
# 1093|   	g = calloc(1, sizeof (struct global));
# 1094|   	g->data = data;
# 1095|-> 	g->draw = false;
# 1096|   
# 1097|   	if (spa_streq(str, PW_TYPE_INTERFACE_Port)) {

Error: CPPCHECK_WARNING (CWE-476): [#def2388]
pipewire-1.5.81/src/tools/pw-link.c:770: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  768|   
#  769|   	obj = calloc(1, sizeof(*obj));
#  770|-> 	obj->type = t;
#  771|   	obj->id = id;
#  772|   	obj->props = pw_properties_new_dict(props);

Error: CPPCHECK_WARNING (CWE-476): [#def2389]
pipewire-1.5.81/src/tools/pw-link.c:771: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  769|   	obj = calloc(1, sizeof(*obj));
#  770|   	obj->type = t;
#  771|-> 	obj->id = id;
#  772|   	obj->props = pw_properties_new_dict(props);
#  773|   	obj->data = extra;

Error: CPPCHECK_WARNING (CWE-476): [#def2390]
pipewire-1.5.81/src/tools/pw-link.c:772: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  770|   	obj->type = t;
#  771|   	obj->id = id;
#  772|-> 	obj->props = pw_properties_new_dict(props);
#  773|   	obj->data = extra;
#  774|   	obj->state = STATE_NEW;

Error: CPPCHECK_WARNING (CWE-476): [#def2391]
pipewire-1.5.81/src/tools/pw-link.c:773: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  771|   	obj->id = id;
#  772|   	obj->props = pw_properties_new_dict(props);
#  773|-> 	obj->data = extra;
#  774|   	obj->state = STATE_NEW;
#  775|   	obj->d = d;

Error: CPPCHECK_WARNING (CWE-476): [#def2392]
pipewire-1.5.81/src/tools/pw-link.c:774: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  772|   	obj->props = pw_properties_new_dict(props);
#  773|   	obj->data = extra;
#  774|-> 	obj->state = STATE_NEW;
#  775|   	obj->d = d;
#  776|   	spa_list_append(&d->objects, &obj->link);

Error: CPPCHECK_WARNING (CWE-476): [#def2393]
pipewire-1.5.81/src/tools/pw-link.c:775: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  773|   	obj->data = extra;
#  774|   	obj->state = STATE_NEW;
#  775|-> 	obj->d = d;
#  776|   	spa_list_append(&d->objects, &obj->link);
#  777|   

Error: CPPCHECK_WARNING (CWE-476): [#def2394]
pipewire-1.5.81/src/tools/pw-link.c:778: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  776|   	spa_list_append(&d->objects, &obj->link);
#  777|   
#  778|-> 	switch (obj->type) {
#  779|   	case OBJECT_PORT:
#  780|   	{

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2395]
pipewire-1.5.81/src/tools/pw-loopback.c:239:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/tools/pw-loopback.c:90:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:130:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:201:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:206:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:207:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:207:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:208:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:208:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:211:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:217:18: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:217:18: acquire_memory: allocated here
pipewire-1.5.81/src/tools/pw-loopback.c:217:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/tools/pw-loopback.c:222:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:224:12: branch_false: following ‘false’ branch (when ‘opt_remote’ is NULL)...
pipewire-1.5.81/src/tools/pw-loopback.c:226:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:231:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:232:17: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:238:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:239:17: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:239:17: danger: ‘f’ leaks here; was allocated at [(22)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/21)
#  237|   
#  238|   	if (data.opt_group_name != NULL) {
#  239|-> 		pw_properties_set(data.capture_props, PW_KEY_NODE_GROUP, data.opt_group_name);
#  240|   		pw_properties_set(data.playback_props, PW_KEY_NODE_GROUP, data.opt_group_name);
#  241|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2396]
pipewire-1.5.81/src/tools/pw-loopback.c:240:17: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/tools/pw-loopback.c:90:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:130:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:201:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:206:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:207:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:207:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:208:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:208:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:211:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:217:18: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:217:18: acquire_memory: allocated here
pipewire-1.5.81/src/tools/pw-loopback.c:217:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/tools/pw-loopback.c:222:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:224:12: branch_false: following ‘false’ branch (when ‘opt_remote’ is NULL)...
pipewire-1.5.81/src/tools/pw-loopback.c:226:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:231:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:232:17: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:238:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:239:17: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:240:17: danger: ‘f’ leaks here; was allocated at [(22)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/21)
#  238|   	if (data.opt_group_name != NULL) {
#  239|   		pw_properties_set(data.capture_props, PW_KEY_NODE_GROUP, data.opt_group_name);
#  240|-> 		pw_properties_set(data.playback_props, PW_KEY_NODE_GROUP, data.opt_group_name);
#  241|   	}
#  242|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2397]
pipewire-1.5.81/src/tools/pw-loopback.c:244:9: warning[-Wanalyzer-malloc-leak]: leak of ‘f’
pipewire-1.5.81/src/tools/pw-loopback.c:90:5: enter_function: entry to ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:130:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:201:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:206:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:207:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:207:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:208:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:208:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.5.81/src/tools/pw-loopback.c:211:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:217:18: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:217:18: acquire_memory: allocated here
pipewire-1.5.81/src/tools/pw-loopback.c:217:12: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.5.81/src/tools/pw-loopback.c:222:9: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:224:12: branch_false: following ‘false’ branch (when ‘opt_remote’ is NULL)...
pipewire-1.5.81/src/tools/pw-loopback.c:226:13: branch_false: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:231:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-loopback.c:232:17: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-loopback.c:244:9: danger: ‘f’ leaks here; was allocated at [(22)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/21)
#  242|   
#  243|   	fprintf(f, " capture.props = {");
#  244|-> 	pw_properties_serialize_dict(f, &data.capture_props->dict, 0);
#  245|   	fprintf(f, " } playback.props = {");
#  246|   	pw_properties_serialize_dict(f, &data.playback_props->dict, 0);

Error: CPPCHECK_WARNING (CWE-401): [#def2398]
pipewire-1.5.81/src/tools/pw-mon.c:157: error[memleak]: Memory leak: p
#  155|   	memcpy(p->param, param, SPA_POD_SIZE(param));
#  156|   	spa_list_append(&data->param_list, &p->link);
#  157|-> }
#  158|   
#  159|   static void print_parameters(struct proxy_data *data, bool use_prefix)

Error: CPPCHECK_WARNING (CWE-476): [#def2399]
pipewire-1.5.81/src/tools/pw-profiler.c:188: error[nullPointer]: Null pointer dereference
#  186|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  187|   				"\"xrun_count\": %u },\n",
#  188|-> 				driver_id, name, driver.prev_signal, driver.signal,
#  189|   				driver.awake, driver.finish, status_to_string(driver.status),
#  190|   				driver.latency.num, driver.latency.denom,

Error: CPPCHECK_WARNING (CWE-476): [#def2400]
pipewire-1.5.81/src/tools/pw-profiler.c:188: error[nullPointer]: Null pointer dereference: name
#  186|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  187|   				"\"xrun_count\": %u },\n",
#  188|-> 				driver_id, name, driver.prev_signal, driver.signal,
#  189|   				driver.awake, driver.finish, status_to_string(driver.status),
#  190|   				driver.latency.num, driver.latency.denom,

Error: CPPCHECK_WARNING (CWE-476): [#def2401]
pipewire-1.5.81/src/tools/pw-profiler.c:258: error[nullPointer]: Null pointer dereference
#  256|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  257|   				"\"xrun_count\": %u },\n",
#  258|-> 				id, name, m.prev_signal, m.signal,
#  259|   				m.awake, m.finish, status_to_string(m.status),
#  260|   				m.latency.num, m.latency.denom,

Error: CPPCHECK_WARNING (CWE-476): [#def2402]
pipewire-1.5.81/src/tools/pw-profiler.c:258: error[nullPointer]: Null pointer dereference: name
#  256|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  257|   				"\"xrun_count\": %u },\n",
#  258|-> 				id, name, m.prev_signal, m.signal,
#  259|   				m.awake, m.finish, status_to_string(m.status),
#  260|   				m.latency.num, m.latency.denom,

Error: GCC_ANALYZER_WARNING (CWE-404): [#def2403]
pipewire-1.5.81/src/tools/pw-top.c:112:17: warning[-Wanalyzer-va-list-leak]: missing call to ‘va_end’
pipewire-1.5.81/src/tools/pw-top.c:796:13: enter_function: entry to ‘do_handle_io’
pipewire-1.5.81/src/tools/pw-top.c:811:25: call_function: calling ‘do_refresh’ from ‘do_handle_io’
#  110|   		printf("\n");
#  111|   	} else
#  112|-> 		vw_printw(d->win, fmt, argp);
#  113|   	va_end(argp);
#  114|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2404]
pipewire-1.5.81/src/tools/pw-top.c:342:17: warning[-Wanalyzer-malloc-leak]: leak of ‘n’
pipewire-1.5.81/src/tools/pw-top.c:676:13: enter_function: entry to ‘registry_event_global’
pipewire-1.5.81/src/tools/pw-top.c:683:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/pw-top.c:684:21: branch_true: ...to here
pipewire-1.5.81/src/tools/pw-top.c:684:21: call_function: calling ‘add_node’ from ‘registry_event_global’
#  340|   		uint32_t ids[1] = { SPA_PARAM_Format };
#  341|   
#  342|-> 		pw_proxy_add_listener(n->proxy,
#  343|   				&n->proxy_listener, &proxy_events, n);
#  344|   		pw_proxy_add_object_listener(n->proxy,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2405]
pipewire-1.5.81/src/tools/reserve.c:372:14: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.5.81/src/tools/reserve.c:339:1: enter_function: entry to ‘rd_device_new’
pipewire-1.5.81/src/tools/reserve.c:345:14: call_function: calling ‘rd_device_valid_device_name’ from ‘rd_device_new’
pipewire-1.5.81/src/tools/reserve.c:345:14: return_function: returning to ‘rd_device_new’ from ‘rd_device_valid_device_name’
pipewire-1.5.81/src/tools/reserve.c:345:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/reserve.c:350:13: branch_true: ...to here
pipewire-1.5.81/src/tools/reserve.c:351:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
pipewire-1.5.81/src/tools/reserve.c:354:9: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:359:31: acquire_memory: allocated here
pipewire-1.5.81/src/tools/reserve.c:361:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:361:26: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:366:27: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:366:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:366:27: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:367:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:372:14: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:372:14: danger: ‘<unknown>’ leaks here; was allocated at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
#  370|   	}
#  371|   
#  372|-> 	if (!dbus_connection_add_filter(d->connection,
#  373|   				filter_handler,
#  374|   				d,

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2406]
pipewire-1.5.81/src/tools/reserve.c:372:14: warning[-Wanalyzer-malloc-leak]: leak of ‘d’
pipewire-1.5.81/src/tools/reserve.c:339:1: enter_function: entry to ‘rd_device_new’
pipewire-1.5.81/src/tools/reserve.c:345:14: call_function: calling ‘rd_device_valid_device_name’ from ‘rd_device_new’
pipewire-1.5.81/src/tools/reserve.c:345:14: return_function: returning to ‘rd_device_new’ from ‘rd_device_valid_device_name’
pipewire-1.5.81/src/tools/reserve.c:345:12: branch_true: following ‘true’ branch...
pipewire-1.5.81/src/tools/reserve.c:350:13: branch_true: ...to here
pipewire-1.5.81/src/tools/reserve.c:350:13: acquire_memory: allocated here
pipewire-1.5.81/src/tools/reserve.c:351:12: branch_false: following ‘false’ branch (when ‘d’ is non-NULL)...
pipewire-1.5.81/src/tools/reserve.c:354:9: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:361:26: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:361:26: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:362:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:366:27: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:366:27: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:366:27: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:367:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/src/tools/reserve.c:372:14: branch_false: ...to here
pipewire-1.5.81/src/tools/reserve.c:372:14: danger: ‘d’ leaks here; was allocated at [(12)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/11)
#  370|   	}
#  371|   
#  372|-> 	if (!dbus_connection_add_filter(d->connection,
#  373|   				filter_handler,
#  374|   				d,

Error: CPPCHECK_WARNING (CWE-401): [#def2407]
pipewire-1.5.81/test/pwtest.c:177: error[memleak]: Memory leak: cpid
#  175|   	spa_list_append(&ctx->cleanup_pids, &cpid->link);
#  176|   
#  177|-> 	return 0;
#  178|   }
#  179|   

Error: CPPCHECK_WARNING (CWE-476): [#def2408]
pipewire-1.5.81/test/pwtest.c:480: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  478|   
#  479|   	t = calloc(1, sizeof *t);
#  480|-> 	t->result = PWTEST_SYSTEM_ERROR;
#  481|   	t->name = funcname;
#  482|   	t->func = func;

Error: CPPCHECK_WARNING (CWE-476): [#def2409]
pipewire-1.5.81/test/pwtest.c:481: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  479|   	t = calloc(1, sizeof *t);
#  480|   	t->result = PWTEST_SYSTEM_ERROR;
#  481|-> 	t->name = funcname;
#  482|   	t->func = func;
#  483|   	t->args.range.min = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def2410]
pipewire-1.5.81/test/pwtest.c:482: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  480|   	t->result = PWTEST_SYSTEM_ERROR;
#  481|   	t->name = funcname;
#  482|-> 	t->func = func;
#  483|   	t->args.range.min = 0;
#  484|   	t->args.range.max = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def2411]
pipewire-1.5.81/test/pwtest.c:483: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  481|   	t->name = funcname;
#  482|   	t->func = func;
#  483|-> 	t->args.range.min = 0;
#  484|   	t->args.range.max = 1;
#  485|   	t->args.env = pw_properties_new("PWTEST", "1", NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def2412]
pipewire-1.5.81/test/pwtest.c:484: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  482|   	t->func = func;
#  483|   	t->args.range.min = 0;
#  484|-> 	t->args.range.max = 1;
#  485|   	t->args.env = pw_properties_new("PWTEST", "1", NULL);
#  486|   	t->env = pw_properties_new(NULL, NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def2413]
pipewire-1.5.81/test/pwtest.c:485: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  483|   	t->args.range.min = 0;
#  484|   	t->args.range.max = 1;
#  485|-> 	t->args.env = pw_properties_new("PWTEST", "1", NULL);
#  486|   	t->env = pw_properties_new(NULL, NULL);
#  487|   	for (size_t i = 0; i < SPA_N_ELEMENTS(t->logs); i++)

Error: CPPCHECK_WARNING (CWE-476): [#def2414]
pipewire-1.5.81/test/pwtest.c:486: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  484|   	t->args.range.max = 1;
#  485|   	t->args.env = pw_properties_new("PWTEST", "1", NULL);
#  486|-> 	t->env = pw_properties_new(NULL, NULL);
#  487|   	for (size_t i = 0; i < SPA_N_ELEMENTS(t->logs); i++)
#  488|   		pw_array_init(&t->logs[i], 1024);

Error: CPPCHECK_WARNING (CWE-476): [#def2415]
pipewire-1.5.81/test/pwtest.c:543: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  541|   	struct pwtest_suite *c = calloc(1, sizeof *c);
#  542|   
#  543|-> 	c->decl = decl;
#  544|   	spa_list_init(&c->tests);
#  545|   	spa_list_append(&ctx->suites, &c->link);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2416]
pipewire-1.5.81/test/pwtest.c:543:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c’
pipewire-1.5.81/test/pwtest.c:1344:5: enter_function: entry to ‘main’
pipewire-1.5.81/test/pwtest.c:1424:9: call_function: calling ‘find_suites’ from ‘main’
#  541|   	struct pwtest_suite *c = calloc(1, sizeof *c);
#  542|   
#  543|-> 	c->decl = decl;
#  544|   	spa_list_init(&c->tests);
#  545|   	spa_list_append(&ctx->suites, &c->link);

Error: CPPCHECK_WARNING (CWE-401): [#def2417]
pipewire-1.5.81/test/pwtest.c:546: error[memleak]: Memory leak: c
#  544|   	spa_list_init(&c->tests);
#  545|   	spa_list_append(&ctx->suites, &c->link);
#  546|-> }
#  547|   
#  548|   static void free_test(struct pwtest_test *t)

Error: CPPCHECK_WARNING (CWE-570): [#def2418]
pipewire-1.5.81/test/pwtest.c:574: error[comparePointers]: Comparing pointers that point to different objects
#  572|   	const struct pwtest_suite_decl *c;
#  573|   
#  574|-> 	for (c = &__start_pwtest_suite_section; c < &__stop_pwtest_suite_section; c++) {
#  575|   		if (suite_filter == NULL || fnmatch(suite_filter, c->name, 0) == 0)
#  576|   			add_suite(ctx, c);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2419]
pipewire-1.5.81/test/pwtest.c:796:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[0]’
pipewire-1.5.81/test/pwtest.c:1020:13: enter_function: entry to ‘run_test’
pipewire-1.5.81/test/pwtest.c:1028:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1034:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1036:13: call_function: calling ‘init_pipes’ from ‘run_test’
#  794|   	for (int i = 0; i < _FD_LAST; i++) {
#  795|   		if (fds[i] >= 0)
#  796|-> 			close(fds[i]);
#  797|   		fds[i] = -1;
#  798|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2420]
pipewire-1.5.81/test/pwtest.c:796:25: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[r]’
pipewire-1.5.81/test/pwtest.c:1232:12: enter_function: entry to ‘run_tests’
pipewire-1.5.81/test/pwtest.c:1239:9: branch_true: following ‘true’ branch (when ‘c != ctx’)...
pipewire-1.5.81/test/pwtest.c:1240:21: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1240:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1243:54: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1245:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/pwtest.c:1246:29: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1250:51: branch_true: following ‘true’ branch (when ‘iteration < max’)...
pipewire-1.5.81/test/pwtest.c:1251:37: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1260:33: call_function: calling ‘run_test’ from ‘run_tests’
#  794|   	for (int i = 0; i < _FD_LAST; i++) {
#  795|   		if (fds[i] >= 0)
#  796|-> 			close(fds[i]);
#  797|   		fds[i] = -1;
#  798|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2421]
pipewire-1.5.81/test/pwtest.c:797:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[i]’
pipewire-1.5.81/test/pwtest.c:1020:13: enter_function: entry to ‘run_test’
pipewire-1.5.81/test/pwtest.c:1028:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1034:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1036:13: call_function: calling ‘init_pipes’ from ‘run_test’
#  795|   		if (fds[i] >= 0)
#  796|   			close(fds[i]);
#  797|-> 		fds[i] = -1;
#  798|   	}
#  799|   }

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2422]
pipewire-1.5.81/test/pwtest.c:837:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor
pipewire-1.5.81/test/pwtest.c:1020:13: enter_function: entry to ‘run_test’
pipewire-1.5.81/test/pwtest.c:1028:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1034:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1036:13: call_function: calling ‘init_pipes’ from ‘run_test’
#  835|   		 * then affects execution.
#  836|   		 */
#  837|-> 		fcntl(write_fds[i], F_SETPIPE_SZ, pipe_max_size);
#  838|   #endif
#  839|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2423]
pipewire-1.5.81/test/pwtest.c:837:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[0]’
pipewire-1.5.81/test/pwtest.c:1020:13: enter_function: entry to ‘run_test’
pipewire-1.5.81/test/pwtest.c:1028:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1034:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1036:13: call_function: calling ‘init_pipes’ from ‘run_test’
#  835|   		 * then affects execution.
#  836|   		 */
#  837|-> 		fcntl(write_fds[i], F_SETPIPE_SZ, pipe_max_size);
#  838|   #endif
#  839|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2424]
pipewire-1.5.81/test/pwtest.c:837:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[r]’
pipewire-1.5.81/test/pwtest.c:1232:12: enter_function: entry to ‘run_tests’
pipewire-1.5.81/test/pwtest.c:1239:9: branch_true: following ‘true’ branch (when ‘c != ctx’)...
pipewire-1.5.81/test/pwtest.c:1240:21: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1240:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1243:54: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1245:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/pwtest.c:1246:29: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1250:51: branch_true: following ‘true’ branch (when ‘iteration < max’)...
pipewire-1.5.81/test/pwtest.c:1251:37: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1260:33: call_function: calling ‘run_test’ from ‘run_tests’
#  835|   		 * then affects execution.
#  836|   		 */
#  837|-> 		fcntl(write_fds[i], F_SETPIPE_SZ, pipe_max_size);
#  838|   #endif
#  839|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2425]
pipewire-1.5.81/test/pwtest.c:837:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘write_fds[0]’
pipewire-1.5.81/test/pwtest.c:1020:13: enter_function: entry to ‘run_test’
pipewire-1.5.81/test/pwtest.c:1028:12: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1034:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1036:13: call_function: calling ‘init_pipes’ from ‘run_test’
#  835|   		 * then affects execution.
#  836|   		 */
#  837|-> 		fcntl(write_fds[i], F_SETPIPE_SZ, pipe_max_size);
#  838|   #endif
#  839|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2426]
pipewire-1.5.81/test/pwtest.c:837:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘write_fds[r]’
pipewire-1.5.81/test/pwtest.c:1232:12: enter_function: entry to ‘run_tests’
pipewire-1.5.81/test/pwtest.c:1239:9: branch_true: following ‘true’ branch (when ‘c != ctx’)...
pipewire-1.5.81/test/pwtest.c:1240:21: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1240:20: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:1243:54: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:1245:17: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/pwtest.c:1246:29: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1250:51: branch_true: following ‘true’ branch (when ‘iteration < max’)...
pipewire-1.5.81/test/pwtest.c:1251:37: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:1260:33: call_function: calling ‘run_test’ from ‘run_tests’
#  835|   		 * then affects execution.
#  836|   		 */
#  837|-> 		fcntl(write_fds[i], F_SETPIPE_SZ, pipe_max_size);
#  838|   #endif
#  839|   	}

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2427]
pipewire-1.5.81/test/pwtest.c:912:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
pipewire-1.5.81/test/pwtest.c:862:12: enter_function: entry to ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:872:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
pipewire-1.5.81/test/pwtest.c:886:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:886:9: call_function: calling ‘close_pipes’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:886:9: return_function: returning to ‘start_test_forked’ from ‘close_pipes’
pipewire-1.5.81/test/pwtest.c:889:9: call_function: calling ‘free_cleanup_pids’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:889:9: return_function: returning to ‘start_test_forked’ from ‘free_cleanup_pids’
pipewire-1.5.81/test/pwtest.c:903:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:904:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:905:13: acquire_resource: opened here
pipewire-1.5.81/test/pwtest.c:906:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:907:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:912:23: danger: ‘r’ leaks here; was opened at [(20)](sarif:/runs/0/results/11/codeFlows/0/threadFlows/0/locations/19)
#  910|   	testlog_fd = write_fds[FD_LOG];
#  911|   
#  912|-> 	while ((env = pw_properties_iterate(t->args.env, &state)))
#  913|   		setenv(env, pw_properties_get(t->args.env, env), 1);
#  914|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2428]
pipewire-1.5.81/test/pwtest.c:913:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
pipewire-1.5.81/test/pwtest.c:862:12: enter_function: entry to ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:872:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
pipewire-1.5.81/test/pwtest.c:886:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:886:9: call_function: calling ‘close_pipes’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:886:9: return_function: returning to ‘start_test_forked’ from ‘close_pipes’
pipewire-1.5.81/test/pwtest.c:889:9: call_function: calling ‘free_cleanup_pids’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:889:9: return_function: returning to ‘start_test_forked’ from ‘free_cleanup_pids’
pipewire-1.5.81/test/pwtest.c:902:13: acquire_resource: opened here
pipewire-1.5.81/test/pwtest.c:903:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:904:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:906:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:907:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:912:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/pwtest.c:913:47: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:913:17: danger: ‘r’ leaks here; was opened at [(16)](sarif:/runs/0/results/13/codeFlows/0/threadFlows/0/locations/15)
#  911|   
#  912|   	while ((env = pw_properties_iterate(t->args.env, &state)))
#  913|-> 		setenv(env, pw_properties_get(t->args.env, env), 1);
#  914|   
#  915|   	/* The actual test function */

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2429]
pipewire-1.5.81/test/pwtest.c:916:18: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
pipewire-1.5.81/test/pwtest.c:862:12: enter_function: entry to ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:872:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
pipewire-1.5.81/test/pwtest.c:886:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:886:9: call_function: calling ‘close_pipes’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:886:9: return_function: returning to ‘start_test_forked’ from ‘close_pipes’
pipewire-1.5.81/test/pwtest.c:889:9: call_function: calling ‘free_cleanup_pids’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:889:9: return_function: returning to ‘start_test_forked’ from ‘free_cleanup_pids’
pipewire-1.5.81/test/pwtest.c:902:13: acquire_resource: opened here
pipewire-1.5.81/test/pwtest.c:903:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:904:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:906:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:907:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:916:18: danger: ‘r’ leaks here; was opened at [(16)](sarif:/runs/0/results/15/codeFlows/0/threadFlows/0/locations/15)
#  914|   
#  915|   	/* The actual test function */
#  916|-> 	result = t->func(t);
#  917|   
#  918|   	for (int i = 0; i < _FD_LAST; i++)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2430]
pipewire-1.5.81/test/pwtest.c:919:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
pipewire-1.5.81/test/pwtest.c:862:12: enter_function: entry to ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:872:12: branch_false: following ‘false’ branch (when ‘pid >= 0’)...
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:879:12: branch_false: following ‘false’ branch (when ‘pid == 0’)...
pipewire-1.5.81/test/pwtest.c:886:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:886:9: call_function: calling ‘close_pipes’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:886:9: return_function: returning to ‘start_test_forked’ from ‘close_pipes’
pipewire-1.5.81/test/pwtest.c:889:9: call_function: calling ‘free_cleanup_pids’ from ‘start_test_forked’
pipewire-1.5.81/test/pwtest.c:889:9: return_function: returning to ‘start_test_forked’ from ‘free_cleanup_pids’
pipewire-1.5.81/test/pwtest.c:902:13: acquire_resource: opened here
pipewire-1.5.81/test/pwtest.c:903:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:904:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:906:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/pwtest.c:907:9: branch_false: ...to here
pipewire-1.5.81/test/pwtest.c:918:25: branch_true: following ‘true’ branch (when ‘i != 4’)...
pipewire-1.5.81/test/pwtest.c:919:32: branch_true: ...to here
pipewire-1.5.81/test/pwtest.c:919:17: danger: ‘r’ leaks here; was opened at [(16)](sarif:/runs/0/results/17/codeFlows/0/threadFlows/0/locations/15)
#  917|   
#  918|   	for (int i = 0; i < _FD_LAST; i++)
#  919|-> 		fsync(write_fds[i]);
#  920|   
#  921|   	exit(result);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2431]
pipewire-1.5.81/test/test-array.c:40:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.5.81/test/test-array.c:22:1: enter_function: entry to ‘array_test’
pipewire-1.5.81/test/test-array.c:29:9: call_function: inlined call to ‘pw_array_init’ from ‘array_test’
pipewire-1.5.81/test/test-array.c:38:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
pipewire-1.5.81/test/test-array.c:39:34: branch_true: ...to here
pipewire-1.5.81/test/test-array.c:39:34: call_function: calling ‘pw_array_add’ from ‘array_test’
pipewire-1.5.81/test/test-array.c:39:34: return_function: returning to ‘array_test’ from ‘pw_array_add’
pipewire-1.5.81/test/test-array.c:40:17: danger: dereference of NULL ‘pw_array_add(&arr, 4)’
#   38|   	for (i = 0; i < 4; i++) {
#   39|   		ptr = (uint32_t*)pw_array_add(&arr, sizeof(uint32_t));
#   40|-> 		*ptr = vals[i];
#   41|   	}
#   42|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2432]
pipewire-1.5.81/test/test-array.c:101:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.5.81/test/test-array.c:90:1: enter_function: entry to ‘array_clear’
pipewire-1.5.81/test/test-array.c:97:9: call_function: inlined call to ‘pw_array_init’ from ‘array_clear’
pipewire-1.5.81/test/test-array.c:99:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
pipewire-1.5.81/test/test-array.c:100:34: branch_true: ...to here
pipewire-1.5.81/test/test-array.c:100:34: call_function: calling ‘pw_array_add’ from ‘array_clear’
pipewire-1.5.81/test/test-array.c:100:34: return_function: returning to ‘array_clear’ from ‘pw_array_add’
pipewire-1.5.81/test/test-array.c:101:17: danger: dereference of NULL ‘pw_array_add(&arr, 4)’
#   99|   	for (i = 0; i < 4; i++) {
#  100|   		ptr = (uint32_t*)pw_array_add(&arr, sizeof(uint32_t));
#  101|-> 		*ptr = vals[i];
#  102|   	}
#  103|   	pwtest_int_eq(pw_array_get_len(&arr, uint32_t), 4U);

Error: CPPCHECK_WARNING (CWE-476): [#def2433]
pipewire-1.5.81/test/test-config.c:19: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#   17|   	pwtest_mkstemp(path);
#   18|   	fp = fopen(path, "we");
#   19|-> 	fputs("data = x", fp);
#   20|   	fclose(fp);
#   21|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2434]
pipewire-1.5.81/test/test-config.c:19:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&path, "we")’ where non-null expected
pipewire-1.5.81/test/test-config.c:18:14: acquire_memory: this call could return NULL
pipewire-1.5.81/test/test-config.c:19:9: danger: argument 4 (‘fopen(&path, "we")’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#argument 4 of ‘__builtin_fwrite’ must be non-null
#   17|   	pwtest_mkstemp(path);
#   18|   	fp = fopen(path, "we");
#   19|-> 	fputs("data = x", fp);
#   20|   	fclose(fp);
#   21|   

Error: CPPCHECK_WARNING (CWE-476): [#def2435]
pipewire-1.5.81/test/test-config.c:20: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#   18|   	fp = fopen(path, "we");
#   19|   	fputs("data = x", fp);
#   20|-> 	fclose(fp);
#   21|   
#   22|   	/* Load with NULL prefix and abs path */

Error: CPPCHECK_WARNING (CWE-476): [#def2436]
pipewire-1.5.81/test/test-example.c:90: error[nullPointer]: Null pointer dereference: x
#   88|   {
#   89|   	int *x = NULL;
#   90|-> 	*x = 20;
#   91|   	return PWTEST_PASS;
#   92|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2437]
pipewire-1.5.81/test/test-example.c:90:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
#   88|   {
#   89|   	int *x = NULL;
#   90|-> 	*x = 20;
#   91|   	return PWTEST_PASS;
#   92|   }

Error: CPPCHECK_WARNING (CWE-476): [#def2438]
pipewire-1.5.81/test/test-logger.c:47: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#   45|   
#   46|   	fp = fopen(fname, "re");
#   47|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#   48|   		if (strstr(buffer, "MARK:")) {
#   49|   			const char *suffix = ".. (truncated)\n";

Error: CPPCHECK_WARNING (CWE-476): [#def2439]
pipewire-1.5.81/test/test-logger.c:94: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#   92|   
#   93|   	fp = fopen(fname, "re");
#   94|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#   95|   		if (strstr(buffer, "MARK")) {
#   96|   			mark_line_found = true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2440]
pipewire-1.5.81/test/test-logger.c:94:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.5.81/test/test-logger.c:93:14: acquire_memory: this call could return NULL
pipewire-1.5.81/test/test-logger.c:94:16: danger: argument 3 (‘fopen(&fname, "re")’) from [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#   92|   
#   93|   	fp = fopen(fname, "re");
#   94|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#   95|   		if (strstr(buffer, "MARK")) {
#   96|   			mark_line_found = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2441]
pipewire-1.5.81/test/test-logger.c:97:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:93:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:97:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.5.81/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:97:25: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/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-775): [#def2442]
pipewire-1.5.81/test/test-logger.c:98:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:93:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:97:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.5.81/test/test-logger.c:98:25: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:98:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.5.81/test/test-logger.c:98:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:98:25: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/3/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-775): [#def2443]
pipewire-1.5.81/test/test-logger.c:99:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:93:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:97:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.5.81/test/test-logger.c:98:25: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:98:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.5.81/test/test-logger.c:99:25: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:99:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.5.81/test/test-logger.c:99:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:99:25: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/5/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-775): [#def2444]
pipewire-1.5.81/test/test-logger.c:100:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:93:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:94:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:95:21: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:95:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:97:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:97:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.5.81/test/test-logger.c:98:25: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:98:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.5.81/test/test-logger.c:99:25: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:99:25: branch_false: following ‘false’ branch (when ‘_a’ is NULL)...
pipewire-1.5.81/test/test-logger.c:100:25: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:100:25: branch_true: following ‘true’ branch (when ‘_a’ is non-NULL)...
pipewire-1.5.81/test/test-logger.c:100:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:100:25: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/7/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: CPPCHECK_WARNING (CWE-476): [#def2445]
pipewire-1.5.81/test/test-logger.c:141: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#  139|   
#  140|   	fp = fopen(fname, "re");
#  141|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#  142|   		if (strstr(buffer, "CURRENT"))
#  143|   			current_level_found = true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2446]
pipewire-1.5.81/test/test-logger.c:141:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.5.81/test/test-logger.c:140:14: acquire_memory: this call could return NULL
pipewire-1.5.81/test/test-logger.c:141:16: danger: argument 3 (‘fopen(&fname, "re")’) from [(1)](sarif:/runs/0/results/9/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  139|   
#  140|   	fp = fopen(fname, "re");
#  141|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#  142|   		if (strstr(buffer, "CURRENT"))
#  143|   			current_level_found = true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2447]
pipewire-1.5.81/test/test-logger.c:252:9: warning[-Wanalyzer-null-argument]: use of NULL ‘lvl’ where non-null expected
pipewire-1.5.81/test/test-logger.c:238:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:241:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:252:9: danger: argument 2 (‘lvl’) NULL where non-null expected
#  250|   			break;
#  251|   	}
#  252|-> 	setenv("PIPEWIRE_DEBUG", lvl, 1);
#  253|   
#  254|   	/* Disable logging, let PIPEWIRE_DEBUG set the level */

Error: GCC_ANALYZER_WARNING: [#def2448]
pipewire-1.5.81/test/test-logger.c:349:14: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open(&fname, 2)’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:347:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:348:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:348:9: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: danger: ‘open(&fname, 2)’ could be invalid: unchecked value from [(3)](sarif:/runs/0/results/20/codeFlows/0/threadFlows/0/locations/2)
#  347|   	fd = open(fname, O_RDWR);
#  348|   	pwtest_errno_ok(fd);
#  349|-> 	rc = dup2(fd, STDERR_FILENO);
#  350|   	setlinebuf(stderr);
#  351|   	pwtest_errno_ok(rc);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2449]
pipewire-1.5.81/test/test-logger.c:351:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fname, 2)’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:347:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:351:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.5.81/test/test-logger.c:351:9: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:351:9: danger: ‘open(&fname, 2)’ leaks here; was opened at [(3)](sarif:/runs/0/results/21/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-775): [#def2450]
pipewire-1.5.81/test/test-logger.c:354:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fname, 2)’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:347:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:354:9: danger: ‘open(&fname, 2)’ leaks here; was opened at [(3)](sarif:/runs/0/results/24/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-775): [#def2451]
pipewire-1.5.81/test/test-logger.c:354:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:354:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/23/codeFlows/0/threadFlows/0/locations/4)
#  352|   
#  353|   	setenv("PIPEWIRE_DEBUG", envvars[which], 1);
#  354|-> 	pw_init(0, NULL);
#  355|   
#  356|   	fsync(STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2452]
pipewire-1.5.81/test/test-logger.c:356:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&fname, 2)’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:347:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:356:9: danger: ‘open(&fname, 2)’ leaks here; was opened at [(3)](sarif:/runs/0/results/27/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-775): [#def2453]
pipewire-1.5.81/test/test-logger.c:356:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:356:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/26/codeFlows/0/threadFlows/0/locations/4)
#  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-775): [#def2454]
pipewire-1.5.81/test/test-logger.c:364:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:364:9: branch_true: following ‘true’ branch (when ‘rc == -1’)...
pipewire-1.5.81/test/test-logger.c:364:9: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:364:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/29/codeFlows/0/threadFlows/0/locations/4)
#  362|   		}
#  363|   	}
#  364|-> 	pwtest_errno_ok(rc);
#  365|   	close(fd);
#  366|   	pwtest_bool_true(error_message_found);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2455]
pipewire-1.5.81/test/test-logger.c:365:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:365:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/31/codeFlows/0/threadFlows/0/locations/4)
#  363|   	}
#  364|   	pwtest_errno_ok(rc);
#  365|-> 	close(fd);
#  366|   	pwtest_bool_true(error_message_found);
#  367|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2456]
pipewire-1.5.81/test/test-logger.c:366:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:366:9: branch_false: following ‘false’ branch (when ‘error_message_found == 0’)...
pipewire-1.5.81/test/test-logger.c:366:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:366:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/33/codeFlows/0/threadFlows/0/locations/4)
#  364|   	pwtest_errno_ok(rc);
#  365|   	close(fd);
#  366|-> 	pwtest_bool_true(error_message_found);
#  367|   
#  368|   	if (oldenv) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2457]
pipewire-1.5.81/test/test-logger.c:375:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:368:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:372:17: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:375:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/35/codeFlows/0/threadFlows/0/locations/4)
#  373|   	}
#  374|   
#  375|-> 	pw_log_set(default_logger);
#  376|   	pw_log_set_level(default_level);
#  377|   	pw_deinit();

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2458]
pipewire-1.5.81/test/test-logger.c:376:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:368:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:372:17: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:376:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/36/codeFlows/0/threadFlows/0/locations/4)
#  374|   
#  375|   	pw_log_set(default_logger);
#  376|-> 	pw_log_set_level(default_level);
#  377|   	pw_deinit();
#  378|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2459]
pipewire-1.5.81/test/test-logger.c:377:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:368:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:372:17: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:377:9: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/37/codeFlows/0/threadFlows/0/locations/4)
#  375|   	pw_log_set(default_logger);
#  376|   	pw_log_set_level(default_level);
#  377|-> 	pw_deinit();
#  378|   
#  379|   	return PWTEST_PASS;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2460]
pipewire-1.5.81/test/test-logger.c:379:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.5.81/test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.5.81/test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:368:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.5.81/test/test-logger.c:372:17: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:379:16: danger: ‘rc’ leaks here; was opened at [(5)](sarif:/runs/0/results/38/codeFlows/0/threadFlows/0/locations/4)
#  377|   	pw_deinit();
#  378|   
#  379|-> 	return PWTEST_PASS;
#  380|   }
#  381|   

Error: CPPCHECK_WARNING (CWE-476): [#def2461]
pipewire-1.5.81/test/test-logger.c:413: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#  411|   
#  412|   	fp = fopen(fname, "re");
#  413|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#  414|   		if (strstr(buffer, "MARK")) {
#  415|   			mark_line_found = true;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def2462]
pipewire-1.5.81/test/test-logger.c:413:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.5.81/test/test-logger.c:412:14: acquire_memory: this call could return NULL
pipewire-1.5.81/test/test-logger.c:413:16: danger: argument 3 (‘fopen(&fname, "re")’) from [(1)](sarif:/runs/0/results/39/codeFlows/0/threadFlows/0/locations/0) could be NULL where non-null expected
#  411|   
#  412|   	fp = fopen(fname, "re");
#  413|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#  414|   		if (strstr(buffer, "MARK")) {
#  415|   			mark_line_found = true;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2463]
pipewire-1.5.81/test/test-logger.c:416:25: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:412:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:413:16: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:414:21: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:414:20: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:416:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:416:25: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-logger.c:416:25: branch_true: ...to here
pipewire-1.5.81/test/test-logger.c:416:25: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/40/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-775): [#def2464]
pipewire-1.5.81/test/test-logger.c:420:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:412:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:420:9: branch_false: following ‘false’ branch (when ‘mark_line_found == 0’)...
pipewire-1.5.81/test/test-logger.c:420:9: branch_false: ...to here
pipewire-1.5.81/test/test-logger.c:420:9: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/42/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-775): [#def2465]
pipewire-1.5.81/test/test-logger.c:421:9: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&fname, "re")’
pipewire-1.5.81/test/test-logger.c:412:14: acquire_resource: opened here
pipewire-1.5.81/test/test-logger.c:421:9: danger: ‘fopen(&fname, "re")’ leaks here; was opened at [(1)](sarif:/runs/0/results/44/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: CPPCHECK_WARNING (CWE-476): [#def2466]
pipewire-1.5.81/test/test-logger.c:594: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#  592|   	mark_line_found = false;
#  593|   	fp = fopen(fname, "re");
#  594|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#  595|   		if (strstr(buffer, token)) {
#  596|   			mark_line_found = true;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2467]
pipewire-1.5.81/test/test-loop.c:30:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
pipewire-1.5.81/test/test-loop.c:57:1: enter_function: entry to ‘pwtest_loop_destroy2’
pipewire-1.5.81/test/test-loop.c:70:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:85:9: call_function: calling ‘write_eventfd’ from ‘pwtest_loop_destroy2’
#   28|   {
#   29|   	uint64_t value = 1;
#   30|-> 	ssize_t r = write(evfd, &value, sizeof(value));
#   31|   	pwtest_errno_ok(r);
#   32|   	pwtest_int_eq(r, (ssize_t) sizeof(value));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2468]
pipewire-1.5.81/test/test-loop.c:30:21: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
pipewire-1.5.81/test/test-loop.c:116:1: enter_function: entry to ‘pwtest_loop_recurse1’
pipewire-1.5.81/test/test-loop.c:130:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:144:9: call_function: calling ‘write_eventfd’ from ‘pwtest_loop_recurse1’
#   28|   {
#   29|   	uint64_t value = 1;
#   30|-> 	ssize_t r = write(evfd, &value, sizeof(value));
#   31|   	pwtest_errno_ok(r);
#   32|   	pwtest_int_eq(r, (ssize_t) sizeof(value));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2469]
pipewire-1.5.81/test/test-loop.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
pipewire-1.5.81/test/test-loop.c:116:1: enter_function: entry to ‘pwtest_loop_recurse1’
pipewire-1.5.81/test/test-loop.c:129:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:144:9: call_function: calling ‘write_eventfd’ from ‘pwtest_loop_recurse1’
#   29|   	uint64_t value = 1;
#   30|   	ssize_t r = write(evfd, &value, sizeof(value));
#   31|-> 	pwtest_errno_ok(r);
#   32|   	pwtest_int_eq(r, (ssize_t) sizeof(value));
#   33|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2470]
pipewire-1.5.81/test/test-loop.c:31:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
pipewire-1.5.81/test/test-loop.c:185:1: enter_function: entry to ‘pwtest_loop_recurse2’
pipewire-1.5.81/test/test-loop.c:199:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:213:9: call_function: calling ‘write_eventfd’ from ‘pwtest_loop_recurse2’
#   29|   	uint64_t value = 1;
#   30|   	ssize_t r = write(evfd, &value, sizeof(value));
#   31|-> 	pwtest_errno_ok(r);
#   32|   	pwtest_int_eq(r, (ssize_t) sizeof(value));
#   33|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2471]
pipewire-1.5.81/test/test-loop.c:32:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
pipewire-1.5.81/test/test-loop.c:57:1: enter_function: entry to ‘pwtest_loop_destroy2’
pipewire-1.5.81/test/test-loop.c:70:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:85:9: call_function: calling ‘write_eventfd’ from ‘pwtest_loop_destroy2’
#   30|   	ssize_t r = write(evfd, &value, sizeof(value));
#   31|   	pwtest_errno_ok(r);
#   32|-> 	pwtest_int_eq(r, (ssize_t) sizeof(value));
#   33|   }
#   34|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2472]
pipewire-1.5.81/test/test-loop.c:32:9: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
pipewire-1.5.81/test/test-loop.c:57:1: enter_function: entry to ‘pwtest_loop_destroy2’
pipewire-1.5.81/test/test-loop.c:71:18: acquire_memory: allocated here
pipewire-1.5.81/test/test-loop.c:85:9: call_function: calling ‘write_eventfd’ from ‘pwtest_loop_destroy2’
#   30|   	ssize_t r = write(evfd, &value, sizeof(value));
#   31|   	pwtest_errno_ok(r);
#   32|-> 	pwtest_int_eq(r, (ssize_t) sizeof(value));
#   33|   }
#   34|   

Error: CPPCHECK_WARNING (CWE-476): [#def2473]
pipewire-1.5.81/test/test-loop.c:77: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data.b
#   75|   	data.a->source.mask = SPA_IO_IN;
#   76|   	data.a->source.data = &data;
#   77|-> 	data.b->source.func = on_event;
#   78|   	data.b->source.fd = eventfd(0, 0);
#   79|   	data.b->source.mask = SPA_IO_IN;

Error: CPPCHECK_WARNING (CWE-476): [#def2474]
pipewire-1.5.81/test/test-loop.c:136: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data.b
#  134|   	data.a->source.mask = SPA_IO_IN;
#  135|   	data.a->source.data = &data;
#  136|-> 	data.b->source.func = on_event_recurse1;
#  137|   	data.b->source.fd = eventfd(0, 0);
#  138|   	data.b->source.mask = SPA_IO_IN;

Error: CPPCHECK_WARNING (CWE-476): [#def2475]
pipewire-1.5.81/test/test-loop.c:205: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: data.b
#  203|   	data.a->source.mask = SPA_IO_IN;
#  204|   	data.a->source.data = &data;
#  205|-> 	data.b->source.func = on_event_recurse2;
#  206|   	data.b->source.fd = eventfd(0, 0);
#  207|   	data.b->source.mask = SPA_IO_IN;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2476]
pipewire-1.5.81/test/test-loop.c:272:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data.source’
pipewire-1.5.81/test/test-loop.c:255:1: enter_function: entry to ‘destroy_managed_source_before_dispatch’
pipewire-1.5.81/test/test-loop.c:267:23: call_function: inlined call to ‘pw_loop_add_io’ from ‘destroy_managed_source_before_dispatch’
pipewire-1.5.81/test/test-loop.c:267:23: call_function: inlined call to ‘pw_loop_add_io’ from ‘destroy_managed_source_before_dispatch’
pipewire-1.5.81/test/test-loop.c:268:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-loop.c:268:9: branch_true: ...to here
pipewire-1.5.81/test/test-loop.c:272:23: release_memory: ‘data.source’ is NULL
pipewire-1.5.81/test/test-loop.c:272:9: danger: dereference of NULL ‘data.source’
#  270|   	pw_loop_add_hook(data.l, &data.hook, &dmsbd_hooks, &data);
#  271|   
#  272|-> 	write_eventfd(data.source->fd);
#  273|   
#  274|   	pw_main_loop_run(data.ml);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2477]
pipewire-1.5.81/test/test-properties.c:465:9: warning[-Wanalyzer-malloc-leak]: leak of ‘long_value’
pipewire-1.5.81/test/test-properties.c:456:22: acquire_memory: allocated here
pipewire-1.5.81/test/test-properties.c:457:12: branch_false: following ‘false’ branch (when ‘long_value’ is non-NULL)...
pipewire-1.5.81/test/test-properties.c:460:9: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:465:9: danger: ‘long_value’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#  463|   	dict = SPA_DICT_INIT(items, 2);
#  464|   
#  465|-> 	pwtest_mkstemp(tmpfile);
#  466|   	fp = fopen(tmpfile, "we");
#  467|   	pwtest_ptr_notnull(fp);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2478]
pipewire-1.5.81/test/test-properties.c:467:9: warning[-Wanalyzer-malloc-leak]: leak of ‘long_value’
pipewire-1.5.81/test/test-properties.c:456:22: acquire_memory: allocated here
pipewire-1.5.81/test/test-properties.c:457:12: branch_false: following ‘false’ branch (when ‘long_value’ is non-NULL)...
pipewire-1.5.81/test/test-properties.c:460:9: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:467:9: branch_true: following ‘true’ branch...
pipewire-1.5.81/test/test-properties.c:467:9: branch_true: ...to here
pipewire-1.5.81/test/test-properties.c:467:9: danger: ‘long_value’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#  465|   	pwtest_mkstemp(tmpfile);
#  466|   	fp = fopen(tmpfile, "we");
#  467|-> 	pwtest_ptr_notnull(fp);
#  468|   	r = pw_properties_serialize_dict(fp, &dict, 0);
#  469|   	pwtest_int_eq(r, 1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def2479]
pipewire-1.5.81/test/test-properties.c:468:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&tmpfile, "we")’
pipewire-1.5.81/test/test-properties.c:457:12: branch_false: following ‘false’ branch (when ‘long_value’ is non-NULL)...
pipewire-1.5.81/test/test-properties.c:460:9: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:466:14: acquire_resource: opened here
pipewire-1.5.81/test/test-properties.c:467:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-properties.c:468:13: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:468:13: danger: ‘fopen(&tmpfile, "we")’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
#  466|   	fp = fopen(tmpfile, "we");
#  467|   	pwtest_ptr_notnull(fp);
#  468|-> 	r = pw_properties_serialize_dict(fp, &dict, 0);
#  469|   	pwtest_int_eq(r, 1);
#  470|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2480]
pipewire-1.5.81/test/test-properties.c:468:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&tmpfile, "we")’
pipewire-1.5.81/test/test-properties.c:457:12: branch_false: following ‘false’ branch (when ‘long_value’ is non-NULL)...
pipewire-1.5.81/test/test-properties.c:460:9: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:466:14: acquire_memory: allocated here
pipewire-1.5.81/test/test-properties.c:467:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-properties.c:468:13: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:468:13: danger: ‘fopen(&tmpfile, "we")’ leaks here; was allocated at [(3)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/2)
#  466|   	fp = fopen(tmpfile, "we");
#  467|   	pwtest_ptr_notnull(fp);
#  468|-> 	r = pw_properties_serialize_dict(fp, &dict, 0);
#  469|   	pwtest_int_eq(r, 1);
#  470|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2481]
pipewire-1.5.81/test/test-properties.c:468:13: warning[-Wanalyzer-malloc-leak]: leak of ‘long_value’
pipewire-1.5.81/test/test-properties.c:456:22: acquire_memory: allocated here
pipewire-1.5.81/test/test-properties.c:457:12: branch_false: following ‘false’ branch (when ‘long_value’ is non-NULL)...
pipewire-1.5.81/test/test-properties.c:460:9: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:467:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-properties.c:468:13: branch_false: ...to here
pipewire-1.5.81/test/test-properties.c:468:13: danger: ‘long_value’ leaks here; was allocated at [(1)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/0)
#  466|   	fp = fopen(tmpfile, "we");
#  467|   	pwtest_ptr_notnull(fp);
#  468|-> 	r = pw_properties_serialize_dict(fp, &dict, 0);
#  469|   	pwtest_int_eq(r, 1);
#  470|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def2482]
pipewire-1.5.81/test/test-spa-buffer.c:100:36: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns) + (long unsigned int)i * 8’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:100:36: danger: dereference of NULL ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns) + (long unsigned int)i * 8’
#   98|   
#   99|   	for (i = 0; i < 16; i++) {
#  100|-> 		struct spa_buffer *b = buffers[i];
#  101|   		fprintf(stderr, "buffer %d %p\n", i, b);
#  102|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2483]
pipewire-1.5.81/test/test-spa-buffer.c:103:17: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:103:17: branch_true: following ‘true’ branch (when ‘_a != 4’)...
pipewire-1.5.81/test/test-spa-buffer.c:103:17: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:103:17: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/22)
#  101|   		fprintf(stderr, "buffer %d %p\n", i, b);
#  102|   
#  103|-> 		pwtest_int_eq(b->n_metas, SPA_N_ELEMENTS(metas));
#  104|   		pwtest_int_eq(b->n_datas, SPA_N_ELEMENTS(datas));
#  105|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2484]
pipewire-1.5.81/test/test-spa-buffer.c:104:17: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:104:17: branch_true: following ‘true’ branch (when ‘_a != 2’)...
pipewire-1.5.81/test/test-spa-buffer.c:104:17: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:104:17: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/22)
#  102|   
#  103|   		pwtest_int_eq(b->n_metas, SPA_N_ELEMENTS(metas));
#  104|-> 		pwtest_int_eq(b->n_datas, SPA_N_ELEMENTS(datas));
#  105|   
#  106|   		for (j = 0; j < SPA_N_ELEMENTS(metas); j++) {

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2485]
pipewire-1.5.81/test/test-spa-buffer.c:107:25: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:106:29: branch_true: following ‘true’ branch (when ‘j != 4’)...
pipewire-1.5.81/test/test-spa-buffer.c:107:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:107:25: branch_true: following ‘true’ branch (when ‘_a != _b’)...
pipewire-1.5.81/test/test-spa-buffer.c:107:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:107:25: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/22)
#  105|   
#  106|   		for (j = 0; j < SPA_N_ELEMENTS(metas); j++) {
#  107|-> 			pwtest_int_eq(b->metas[j].type, metas[j].type);
#  108|   			pwtest_int_eq(b->metas[j].size, metas[j].size);
#  109|   			fprintf(stderr, " meta %d %p\n", j, b->metas[j].data);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2486]
pipewire-1.5.81/test/test-spa-buffer.c:108:25: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:106:29: branch_true: following ‘true’ branch (when ‘j != 4’)...
pipewire-1.5.81/test/test-spa-buffer.c:107:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:108:25: branch_true: following ‘true’ branch (when ‘_a != _b’)...
pipewire-1.5.81/test/test-spa-buffer.c:108:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:108:25: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/4/codeFlows/0/threadFlows/0/locations/22)
#  106|   		for (j = 0; j < SPA_N_ELEMENTS(metas); j++) {
#  107|   			pwtest_int_eq(b->metas[j].type, metas[j].type);
#  108|-> 			pwtest_int_eq(b->metas[j].size, metas[j].size);
#  109|   			fprintf(stderr, " meta %d %p\n", j, b->metas[j].data);
#  110|   			pwtest_bool_true(SPA_IS_ALIGNED(b->metas[j].data, 8));

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2488]
pipewire-1.5.81/test/test-spa-buffer.c:114:25: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:106:29: branch_true: following ‘true’ branch (when ‘j != 4’)...
pipewire-1.5.81/test/test-spa-buffer.c:107:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:113:29: branch_true: following ‘true’ branch (when ‘j != 2’)...
pipewire-1.5.81/test/test-spa-buffer.c:114:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:114:25: branch_true: following ‘true’ branch (when ‘_a != _b’)...
pipewire-1.5.81/test/test-spa-buffer.c:114:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:114:25: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/22)
#  112|   
#  113|   		for (j = 0; j < SPA_N_ELEMENTS(datas); j++) {
#  114|-> 			pwtest_int_eq(b->datas[j].maxsize, datas[j].maxsize);
#  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));

Error: GCC_ANALYZER_WARNING (CWE-401): [#def2489]
pipewire-1.5.81/test/test-spa-buffer.c:116:25: warning[-Wanalyzer-malloc-leak]: leak of ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’
pipewire-1.5.81/test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.5.81/test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.5.81/test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.5.81/test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:106:29: branch_true: following ‘true’ branch (when ‘j != 4’)...
pipewire-1.5.81/test/test-spa-buffer.c:107:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:113:29: branch_true: following ‘true’ branch (when ‘j != 2’)...
pipewire-1.5.81/test/test-spa-buffer.c:114:25: branch_true: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:116:25: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-buffer.c:116:25: branch_false: ...to here
pipewire-1.5.81/test/test-spa-buffer.c:116:25: danger: ‘spa_buffer_alloc_array(16, 0, 4, &metas, 2, & datas, & aligns)’ leaks here; was allocated at [(23)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/22)
#  114|   			pwtest_int_eq(b->datas[j].maxsize, datas[j].maxsize);
#  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|   		}

Error: GCC_ANALYZER_WARNING (CWE-131): [#def2490]
pipewire-1.5.81/test/test-spa-control.c:125:19: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
pipewire-1.5.81/test/test-spa-control.c:154:1: enter_function: entry to ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:156:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:156:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.5.81/test/test-spa-control.c:156:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-control.c:158:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-control.c:158:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:158:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.5.81/test/test-spa-control.c:158:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-control.c:161:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-control.c:161:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
#  123|   	size_t m_size, u_size, m_offs = 0;
#  124|   	uint8_t *m_data = alloca(strlen(midi) / 2);
#  125|-> 	uint32_t *u_data = alloca(strlen(ump) / 2);
#  126|   	uint64_t state = 0;
#  127|   

Error: GCC_ANALYZER_WARNING (CWE-131): [#def2491]
pipewire-1.5.81/test/test-spa-control.c:128:18: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
pipewire-1.5.81/test/test-spa-control.c:154:1: enter_function: entry to ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:156:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:156:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.5.81/test/test-spa-control.c:156:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-control.c:158:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-control.c:158:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.5.81/test/test-spa-control.c:158:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.5.81/test/test-spa-control.c:158:9: branch_false: following ‘false’ branch...
pipewire-1.5.81/test/test-spa-control.c:161:9: branch_false: ...to here
pipewire-1.5.81/test/test-spa-control.c:161:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
#  126|   	uint64_t state = 0;
#  127|   
#  128|-> 	u_size = parse_ump(ump, u_data, sizeof(u_data));
#  129|   	m_size = parse_midi(midi, m_data, sizeof(m_data));
#  130|   

Error: CPPCHECK_WARNING (CWE-457): [#def2492]
pipewire-1.5.81/test/test-spa-pod.c:892: warning[uninitvar]: Uninitialized variable: media_type
#  890|   		SPA_FORMAT_VIDEO_framerate,	SPA_POD_PodChoice(&Vframerate)) == 5);
#  891|   
#  892|-> 	spa_assert_se(media_type == SPA_MEDIA_TYPE_video);
#  893|   	spa_assert_se(media_subtype == SPA_MEDIA_SUBTYPE_raw);
#  894|   

Error: CPPCHECK_WARNING (CWE-476): [#def2493]
pipewire-1.5.81/test/test-spa-utils.c:256: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  254|   
#  255|   	e = malloc(sizeof(struct string_list));
#  256|-> 	strcpy(e->string, "test");
#  257|   	spa_list_insert(head, &e->node);
#  258|   	pwtest_bool_false(spa_list_is_empty(head));

Error: CPPCHECK_WARNING (CWE-476): [#def2494]
pipewire-1.5.81/test/test-spa-utils.c:263: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  261|   
#  262|   	e = malloc(sizeof(struct string_list));
#  263|-> 	strcpy(e->string, "pipewire!");
#  264|   	spa_list_append(head, &e->node);
#  265|   	pwtest_bool_false(spa_list_is_empty(head));

Error: CPPCHECK_WARNING (CWE-476): [#def2495]
pipewire-1.5.81/test/test-spa-utils.c:269: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: e
#  267|   
#  268|   	e = malloc(sizeof(struct string_list));
#  269|-> 	strcpy(e->string, "First element");
#  270|   	spa_list_prepend(head, &e->node);
#  271|   	pwtest_bool_false(spa_list_is_empty(head));

Error: CPPCHECK_WARNING (CWE-476): [#def2496]
pipewire-1.5.81/test/test-spa-utils.c:363: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: h
#  361|   	h = malloc(sizeof(struct spa_hook));
#  362|   	spa_hook_list_append(&hl, h, &callbacks[1], &data);
#  363|-> 	h->removed = hook_removed_cb;
#  364|   
#  365|   	h = malloc(sizeof(struct spa_hook));

Error: CPPCHECK_WARNING (CWE-476): [#def2497]
pipewire-1.5.81/test/test-spa-utils.c:367: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: h
#  365|   	h = malloc(sizeof(struct spa_hook));
#  366|   	spa_hook_list_append(&hl, h, &callbacks[2], &data);
#  367|-> 	h->removed = hook_removed_cb;
#  368|   
#  369|   	/* iterate with the simple API */

Error: CPPCHECK_WARNING (CWE-476): [#def2498]
pipewire-1.5.81/test/test-spa-utils.c:380: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: h
#  378|   	h = malloc(sizeof(struct spa_hook));
#  379|   	spa_hook_list_prepend(&hl, h, &callbacks[0], &data);
#  380|-> 	h->removed = hook_removed_cb;
#  381|   
#  382|   	/* call only the first hook - this should be callback_1 */

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
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.5.81-2.fc44
store-results-to/tmp/tmpf1tptasj/pipewire-1.5.81-2.fc44.tar.xz
time-created2025-10-28 19:51:28
time-finished2025-10-28 20:08:46
toolcsmock
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'
tool-versioncsmock-3.8.3.20251027.143044.ge6b947b-1.el9