pipewire-1.4.2-1.fc43

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
pipewire-1.4.2/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.4.2/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.4.2/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.4.2/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.4.2/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.4.2/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.4.2/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.4.2/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.4.2/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: CPPCHECK_WARNING (CWE-457): [#def10]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:1418: error[uninitvar]: Uninitialized variable: size.width
# 1416|   
# 1417|   		arg->type = V4L2_FRMSIZE_TYPE_DISCRETE;
# 1418|-> 		arg->discrete.width = size.width;
# 1419|   		arg->discrete.height = size.height;
# 1420|   

Error: CPPCHECK_WARNING (CWE-457): [#def11]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:2155: error[uninitvar]: Uninitialized variable: prop_id
# 2153|   			continue;
# 2154|   
# 2155|-> 		if ((ctrl_id = prop_id_to_control(prop_id)) == SPA_ID_INVALID)
# 2156|   			continue;
# 2157|   

Error: CPPCHECK_WARNING (CWE-457): [#def12]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:2169: error[uninitvar]: Uninitialized variable: type
# 2167|   
# 2168|   			// check type and populate range
# 2169|-> 			pod = spa_pod_get_values(type, &n_vals, &choice);
# 2170|   			if (spa_pod_is_int(pod)) {
# 2171|   				if (n_vals < 4)

Error: CPPCHECK_WARNING (CWE-457): [#def13]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:2234: error[uninitvar]: Uninitialized variable: prop_id
# 2232|   			continue;
# 2233|   
# 2234|-> 		if ((ctrl_id = prop_id_to_control(prop_id)) == SPA_ID_INVALID)
# 2235|   			continue;
# 2236|   

Error: CPPCHECK_WARNING (CWE-457): [#def14]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:2244: error[uninitvar]: Uninitialized variable: type
# 2242|   		if (ctrl_id == arg->id) {
# 2243|   			// TODO: support getting true ctrl values instead of defaults
# 2244|-> 			pod = spa_pod_get_values(type, &n_vals, &choice);
# 2245|   			if (spa_pod_is_int(pod)) {
# 2246|   				if (n_vals < 4)

Error: CPPCHECK_WARNING (CWE-457): [#def15]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:2300: error[uninitvar]: Uninitialized variable: prop_id
# 2298|   			continue;
# 2299|   
# 2300|-> 		if ((ctrl_id = prop_id_to_control(prop_id)) == SPA_ID_INVALID)
# 2301|   			continue;
# 2302|   

Error: CPPCHECK_WARNING (CWE-457): [#def16]
pipewire-1.4.2/pipewire-v4l2/src/pipewire-v4l2.c:2313: error[uninitvar]: Uninitialized variable: type
# 2311|   			struct spa_pod_frame f[1];
# 2312|   			struct spa_pod *param;
# 2313|-> 			pod = spa_pod_get_values(type, &n_vals, &choice);
# 2314|   
# 2315|   			spa_pod_builder_push_object(&b, &f[0],

Error: GCC_ANALYZER_WARNING (CWE-476): [#def17]
pipewire-1.4.2/redhat-linux-build/../pipewire-jack/jack/jslist.h:229:5: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘jack_slist_alloc()’
pipewire-1.4.2/redhat-linux-build/../pipewire-jack/jack/jslist.h:222:1: enter_function: entry to ‘jack_slist_append’
pipewire-1.4.2/redhat-linux-build/../pipewire-jack/jack/jslist.h:228:16: call_function: calling ‘jack_slist_alloc’ from ‘jack_slist_append’
pipewire-1.4.2/redhat-linux-build/../pipewire-jack/jack/jslist.h:228:16: return_function: returning to ‘jack_slist_append’ from ‘jack_slist_alloc’
pipewire-1.4.2/redhat-linux-build/../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-775): [#def18]
pipewire-1.4.2/redhat-linux-build/../pipewire-v4l2/src/v4l2-func.c:37:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  oflag)’
pipewire-1.4.2/redhat-linux-build/../pipewire-v4l2/src/v4l2-func.c:50:16: enter_function: entry to ‘__open_2’
pipewire-1.4.2/redhat-linux-build/../pipewire-v4l2/src/v4l2-func.c:53:16: acquire_resource: opened here
pipewire-1.4.2/redhat-linux-build/../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-401): [#def19]
pipewire-1.4.2/redhat-linux-build/../spa/examples/adapter-control.c:205:24: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.4.2/redhat-linux-build/../spa/examples/adapter-control.c:964:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../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): [#def20]
pipewire-1.4.2/redhat-linux-build/../spa/examples/example-control.c:482:24: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.4.2/redhat-linux-build/../spa/examples/example-control.c:516:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../spa/examples/example-control.c:521:20: call_function: calling ‘init_data’ from ‘main’
#  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-476): [#def21]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/pod/builder.h:96:30: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:73:12: enter_function: entry to ‘endpoint_stream_subscribe_params’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:82:21: branch_true: following ‘true’ branch (when ‘i < n_ids’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:83:45: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:86:17: call_function: calling ‘endpoint_stream_enum_params’ from ‘endpoint_stream_subscribe_params’
#   94|   	if (offset + 8 <= size) {
#   95|   		struct spa_pod *pod = SPA_PTROFF(builder->data, offset, struct spa_pod);
#   96|-> 		if (offset + SPA_POD_SIZE(pod) <= size)
#   97|   			return pod;
#   98|   	}

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

Error: GCC_ANALYZER_WARNING (CWE-686): [#def23]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/pod/builder.h:604:34: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘uint32_t’ {{aka ‘unsigned int’}} but received ‘char (*)[2]’ for variadic argument 1 of ‘args’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-native/protocol-native.c:1872:12: enter_function: entry to ‘registry_marshal_destroy’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-native/protocol-native.c:1878:9: call_function: calling ‘spa_pod_builder_push_struct’ from ‘registry_marshal_destroy’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-native/protocol-native.c:1878:9: return_function: returning to ‘registry_marshal_destroy’ from ‘spa_pod_builder_push_struct’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-native/protocol-native.c:1878:9: call_function: calling ‘spa_pod_builder_add’ from ‘registry_marshal_destroy’ with 3 variadic arguments
#  602|   		case SPA_TYPE_Sequence:
#  603|   		{
#  604|-> 			uint32_t offset = va_arg(args, uint32_t);
#  605|   			uint32_t type = va_arg(args, uint32_t);
#  606|   			if (type == 0)

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

Error: GCC_ANALYZER_WARNING (CWE-685): [#def25]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/pod/builder.h:605:34: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2038:13: enter_function: entry to ‘transport_state_changed’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2069:12: branch_true: following ‘true’ branch (when ‘state == -1’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2071:40: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: branch_true: following ‘true’ branch (when ‘_h != _l’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: call_function: calling ‘spa_pod_builder_push_object’ from ‘transport_state_changed’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_push_object’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: call_function: calling ‘spa_pod_builder_add’ from ‘transport_state_changed’ with 1 variadic argument
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_add’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: call_function: calling ‘spa_pod_builder_pop’ from ‘transport_state_changed’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_pop’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: branch_true: following ‘true’ branch (when ‘_h != _l’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: call_function: calling ‘spa_pod_builder_push_object’ from ‘transport_state_changed’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: return_function: returning to ‘transport_state_changed’ from ‘spa_pod_builder_push_object’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/media-sink.c:2074:17: call_function: calling ‘spa_pod_builder_add’ from ‘transport_state_changed’ with 1 variadic argument
#  603|   		{
#  604|   			uint32_t offset = va_arg(args, uint32_t);
#  605|-> 			uint32_t type = va_arg(args, uint32_t);
#  606|   			if (type == 0)
#  607|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def26]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/pod/builder.h:614:21: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘const char *’ but received ‘int’ for variadic argument 1 of ‘args’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/control/mixer.c:291:12: enter_function: entry to ‘port_enum_formats’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/control/mixer.c:298:26: call_function: calling ‘spa_pod_builder_push_object’ from ‘port_enum_formats’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/control/mixer.c:298:26: return_function: returning to ‘port_enum_formats’ from ‘spa_pod_builder_push_object’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/control/mixer.c:298:26: call_function: calling ‘spa_pod_builder_add’ from ‘port_enum_formats’ with 7 variadic arguments
#  612|   			break;
#  613|   		}
#  614|-> 		if ((format = va_arg(args, const char *)) == NULL)
#  615|   			break;
#  616|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def27]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/pod/dynamic.h:42:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_data’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2537:5: enter_function: entry to ‘pw_impl_node_for_each_param’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2556:14: call_function: inlined call to ‘pw_param_info_find’ from ‘pw_impl_node_for_each_param’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2557:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2560:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2567:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2574:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2577:17: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2578:29: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2578:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2581:40: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2582:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2585:25: call_function: inlined call to ‘spa_pod_dynamic_builder_init’ from ‘pw_impl_node_for_each_param’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-node.c:2587:29: call_function: calling ‘spa_pod_filter’ from ‘pw_impl_node_for_each_param’
#   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: GCC_ANALYZER_WARNING (CWE-476): [#def28]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/pod/iter.h:377:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/collect.c:591:6: enter_function: entry to ‘update_object_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/collect.c:594:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/collect.c:595:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/collect.c:595:17: call_function: calling ‘update_device_info’ from ‘update_object_info’
#  375|   SPA_API_POD_ITER int spa_pod_is_object(const struct spa_pod *pod)
#  376|   {
#  377|-> 	return (SPA_POD_TYPE(pod) == SPA_TYPE_Object &&
#  378|   			SPA_POD_BODY_SIZE(pod) >= sizeof(struct spa_pod_object_body));
#  379|   }

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

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

Error: GCC_ANALYZER_WARNING (CWE-415): [#def31]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/cleanup.h:86:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*(void **)p’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:138:1: enter_function: entry to ‘pw_context_load_module’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:160:12: branch_true: following ‘true’ branch (when ‘module_dir’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:162:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:168:16: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:169:28: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:169:28: call_function: calling ‘spa_scnprintf’ from ‘pw_context_load_module’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:169:28: return_function: returning to ‘pw_context_load_module’ from ‘spa_scnprintf’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-module.c:170:36: call_function: calling ‘find_module’ from ‘pw_context_load_module’
#   84|   {
#   85|   	int save_errno = errno;
#   86|-> 	free(*(void **) p);
#   87|   	errno = save_errno;
#   88|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def32]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/hook.h:441:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘hook’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:344:1: enter_function: entry to ‘utils_hook’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:361:13: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../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-476): [#def33]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/json-core.h:111:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘value’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/cmd.c:67:12: enter_function: entry to ‘parse_cmd’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/cmd.c:75:32: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/cmd.c:76:13: call_function: inlined call to ‘spa_json_begin_array’ from ‘parse_cmd’
#  109|   
#  110|   	for (; iter->cur < iter->end; iter->cur++) {
#  111|-> 		unsigned char cur = (unsigned char)*iter->cur;
#  112|   		uint32_t flag;
#  113|   

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:53:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘e’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:255:13: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../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): [#def36]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:499:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:509:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:514:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:518:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:519:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:540:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:541:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:541: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): [#def37]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cpid’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1364:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: call_function: calling ‘find_suites’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: return_function: returning to ‘main’ from ‘find_suites’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: call_function: calling ‘make_xdg_runtime_dir’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: return_function: returning to ‘main’ from ‘make_xdg_runtime_dir’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1452:9: branch_false: following ‘false’ branch (when ‘mode != 1’)...
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1456:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1460:21: call_function: calling ‘run_tests’ from ‘main’
#   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): [#def38]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘e’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:245:1: enter_function: entry to ‘utils_list’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:265:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:266:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:293:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:294:17: call_function: inlined call to ‘spa_list_remove’ from ‘utils_list’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:295:17: release_memory: freed here
pipewire-1.4.2/redhat-linux-build/../test/test-spa-utils.c:293:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../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): [#def39]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘g’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:279:12: enter_function: entry to ‘module_gsettings_unload’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:291:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: call_function: calling ‘unload_module’ from ‘module_gsettings_unload’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: return_function: returning to ‘module_gsettings_unload’ from ‘unload_module’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:291:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:292:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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): [#def40]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘pattern’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/log.c:490:1: enter_function: entry to ‘pw_log_deinit’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/log.c:496:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/log.c:497:17: call_function: inlined call to ‘spa_list_remove’ from ‘pw_log_deinit’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/log.c:498:17: release_memory: freed here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/log.c:496:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/log.c:497:17: call_function: inlined call to ‘spa_list_remove’ from ‘pw_log_deinit’
#   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): [#def41]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘s’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-device-restore.c:474:12: enter_function: entry to ‘module_device_restore_unload’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-device-restore.c:479:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: call_function: calling ‘remove_subscribe’ from ‘module_device_restore_unload’
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-device-restore.c:479:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-device-restore.c:480:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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): [#def42]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/list.h:71:9: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘t’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:499:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:509:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:518:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:519:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:540:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:541:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:541: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-476): [#def43]
pipewire-1.4.2/redhat-linux-build/../spa/include/spa/utils/string.h:229:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buffer’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1364:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: call_function: calling ‘find_suites’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: return_function: returning to ‘main’ from ‘find_suites’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: call_function: calling ‘make_xdg_runtime_dir’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: return_function: returning to ‘main’ from ‘make_xdg_runtime_dir’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1452:9: branch_false: following ‘false’ branch (when ‘mode != 1’)...
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1456:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1460:21: call_function: calling ‘run_tests’ from ‘main’
#  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-476): [#def44]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1511:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1494:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1499:24: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1500:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1506:8: branch_true: following ‘true’ branch (when ‘n != 0’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1507:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1507:17: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1509:28: branch_true: following ‘true’ branch (when ‘i != 19’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1510:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1510:16: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1511:23: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1511:17: danger: ‘rates + (long unsigned int)j * 4’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/8)
# 1509|           for (i = 0, j = 0; i < PA_ELEMENTSOF(all_rates); i++) {
# 1510|               if (supported[i])
# 1511|->                 rates[j++] = all_rates[i];
# 1512|           }
# 1513|   

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1743:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘_helem’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1721:8: branch_false: following ‘false’ branch (when ‘mask != 4294967295’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1727:16: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1727:15: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1728:38: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1729:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1730:34: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1741:16: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1742:26: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1742:26: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1743:17: danger: ‘_helem’ could be NULL: unchecked value from [(9)](sarif:/runs/0/results/12/codeFlows/0/threadFlows/0/locations/8)
# 1741|               if (!new_melem) {
# 1742|                   _helem = pa_xmalloc(sizeof(snd_hctl_elem_t *));
# 1743|->                 *_helem = helem;
# 1744|                   /* Put the hctl pointer as our private data - it will be useful for callbacks */
# 1745|                   if ((err = snd_mixer_elem_new(&new_melem, SND_MIXER_ELEM_PULSEAUDIO, 0, _helem, mixer_melem_free)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1766:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1714:12: enter_function: entry to ‘mixer_class_event’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1721:8: branch_false: following ‘false’ branch (when ‘mask != 4294967295’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1727:16: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1727:15: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1728:38: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1729:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1730:34: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1740:25: call_function: calling ‘pa_alsa_mixer_find’ from ‘mixer_class_event’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1740:25: return_function: returning to ‘mixer_class_event’ from ‘pa_alsa_mixer_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1741:16: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1751:26: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1752:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1766:17: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1766:17: danger: dereference of NULL ‘0’
# 1764|                       return 0;
# 1765|                   }
# 1766|->                 *_helem = helem;
# 1767|               }
# 1768|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/array.h:55:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘m’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1717:13: enter_function: entry to ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1724:20: call_function: calling ‘pa_hashmap_new’ from ‘prune_singleton_availability_groups’
#   53|   {
#   54|   	arr->data = NULL;
#   55|-> 	arr->size = arr->alloc = 0;
#   56|   	arr->extend = extend;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def53]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/array.h:55:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1752:18: enter_function: entry to ‘acp_card_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1762:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1765:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1769:26: call_function: calling ‘pa_proplist_new_dict’ from ‘acp_card_new’
#   53|   {
#   54|   	arr->data = NULL;
#   55|-> 	arr->size = arr->alloc = 0;
#   56|   	arr->extend = extend;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def54]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/array.h:81:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1752:18: enter_function: entry to ‘acp_card_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1762:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1765:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1769:26: call_function: calling ‘pa_proplist_new_dict’ from ‘acp_card_new’
#   79|   		while (alloc < need)
#   80|   			alloc *= 2;
#   81|-> 		if ((data = realloc(arr->data, alloc)) == NULL)
#   82|   			return -errno;
#   83|   		arr->data = data;

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def59]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.h:374:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sb.f’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1462:13: enter_function: entry to ‘dump_supported_rates’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1468:11: call_function: calling ‘pa_strbuf_new’ from ‘dump_supported_rates’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1468:11: return_function: returning to ‘dump_supported_rates’ from ‘pa_strbuf_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1470:17: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1471:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1471:9: call_function: calling ‘pa_strbuf_printf’ from ‘dump_supported_rates’
#  372|   	va_list args;
#  373|   	va_start(args, format);
#  374|-> 	ret = vfprintf(sb->f, format, args);
#  375|   	va_end(args);
#  376|   	return ret > 0 ? ret : 0;

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def61]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.h:439:12: warning[-Wanalyzer-malloc-leak]: leak of ‘try_path(fname,  _strp)’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:246:7: enter_function: entry to ‘get_data_path’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:271:8: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:272:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:273:39: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:273:39: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:273:39: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:274:27: call_function: calling ‘try_path’ from ‘get_data_path’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.c:274:27: return_function: returning to ‘get_data_path’ from ‘try_path’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.h:444:9: call_function: inlined call to ‘pa_is_path_absolute’ from ‘pa_maybe_prefix_path’
#  437|   static inline bool pa_is_path_absolute(const char *fn)
#  438|   {
#  439|->     return *fn == PA_PATH_SEP_CHAR;
#  440|   }
#  441|   

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

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

Error: GCC_ANALYZER_WARNING (CWE-688): [#def64]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/compat.h:677:18: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1423:7: enter_function: entry to ‘pa_alsa_get_driver_name_by_pcm’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1428:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1430:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1430:8: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1433:17: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1433:8: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1436:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1436:12: call_function: calling ‘pa_alsa_get_driver_name’ from ‘pa_alsa_get_driver_name_by_pcm’
#  675|               return NULL;
#  676|   
#  677|->         if ((n = readlink(p, c, l-1)) < 0) {
#  678|               pa_xfree(c);
#  679|               return NULL;

Error: GCC_ANALYZER_WARNING (CWE-688): [#def65]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:119:13: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘state.section’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:187:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:195:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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): [#def66]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘state.proplist’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:156:5: enter_function: entry to ‘pa_config_parse’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:162:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:163:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:165:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:167:8: branch_false: following ‘false’ branch (when ‘f’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:177:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:183:8: branch_true: following ‘true’ branch (when ‘proplist’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:184:26: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:184:26: call_function: calling ‘pa_proplist_new’ from ‘pa_config_parse’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:184:26: return_function: returning to ‘pa_config_parse’ from ‘pa_proplist_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:186:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:187:14: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/conf-parser.c:187:14: danger: ‘state.proplist’ leaks here; was allocated at [(12)](sarif:/runs/0/results/2/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: GCC_ANALYZER_WARNING (CWE-401): [#def67]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/hashmap.h:84:9: warning[-Wanalyzer-malloc-leak]: leak of ‘pa_alsa_create_mixer(mixers,  dev,  m, (int)probe)’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1852:14: enter_function: entry to ‘pa_alsa_open_mixer_by_name’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1858:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1859:5: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1859:5: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1861:10: call_function: inlined call to ‘pa_hashmap_get’ from ‘pa_alsa_open_mixer_by_name’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1868:16: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1868:8: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1873:11: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1874:8: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1879:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1879:9: call_function: calling ‘prepare_mixer’ from ‘pa_alsa_open_mixer_by_name’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1879:9: return_function: returning to ‘pa_alsa_open_mixer_by_name’ from ‘prepare_mixer’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1879:8: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1883:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1915:12: branch_true: following ‘true’ branch (when ‘pm’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1916:18: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1916:18: call_function: calling ‘pa_alsa_create_mixer’ from ‘pa_alsa_open_mixer_by_name’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/alsa-util.c:1916:18: return_function: returning to ‘pa_alsa_open_mixer_by_name’ from ‘pa_alsa_create_mixer’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/hashmap.h:84:9: danger: ‘pa_alsa_create_mixer(mixers,  dev,  m, (int)probe)’ leaks here; was allocated at [(26)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/25)
#   82|   {
#   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;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def68]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/hashmap.h:85:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1717:13: enter_function: entry to ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: call_function: calling ‘pa_hashmap_iterate’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: return_function: returning to ‘prune_singleton_availability_groups’ from ‘pa_hashmap_iterate’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1727:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1728:21: call_function: inlined call to ‘pa_hashmap_get’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1728:21: call_function: inlined call to ‘pa_hashmap_get’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1729:45: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1729:13: call_function: calling ‘pa_hashmap_remove’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1729:13: return_function: returning to ‘prune_singleton_availability_groups’ from ‘pa_hashmap_remove’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1730:13: call_function: calling ‘pa_hashmap_put’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1730:13: return_function: returning to ‘prune_singleton_availability_groups’ from ‘pa_hashmap_put’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: call_function: calling ‘pa_hashmap_iterate’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: return_function: returning to ‘prune_singleton_availability_groups’ from ‘pa_hashmap_iterate’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1727:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1728:21: call_function: inlined call to ‘pa_hashmap_get’ from ‘prune_singleton_availability_groups’
#   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): [#def69]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/hashmap.h:105:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1717:13: enter_function: entry to ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: release_memory: ‘state’ is NULL
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: call_function: calling ‘pa_hashmap_iterate’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: return_function: returning to ‘prune_singleton_availability_groups’ from ‘pa_hashmap_iterate’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1726:5: branch_true: following ‘true’ branch (when ‘p’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1727:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1728:21: call_function: inlined call to ‘pa_hashmap_get’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1728:21: call_function: inlined call to ‘pa_hashmap_get’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1729:45: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1729:13: call_function: calling ‘pa_hashmap_remove’ from ‘prune_singleton_availability_groups’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1729:13: return_function: returning to ‘prune_singleton_availability_groups’ from ‘pa_hashmap_remove’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1730:13: call_function: calling ‘pa_hashmap_put’ from ‘prune_singleton_availability_groups’
#  103|   		return -1;
#  104|   	item = pa_hashmap_find_free(h);
#  105|-> 	item->key = key;
#  106|   	item->value = value;
#  107|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/proplist.h:174:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1752:18: enter_function: entry to ‘acp_card_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1762:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1765:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1769:26: call_function: calling ‘pa_proplist_new_dict’ from ‘acp_card_new’
#  172|   		acp_dict_for_each(item, dict) {
#  173|   			it = pa_array_add(&p->array, sizeof(*it));
#  174|-> 			it->key = strdup(item->key);
#  175|   			it->value = strdup(item->value);
#  176|   		}

Error: GCC_ANALYZER_WARNING (CWE-122): [#def71]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/proplist.h:174:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1752:18: enter_function: entry to ‘acp_card_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1762:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1765:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1769:26: call_function: calling ‘pa_proplist_new_dict’ from ‘acp_card_new’
#  172|   		acp_dict_for_each(item, dict) {
#  173|   			it = pa_array_add(&p->array, sizeof(*it));
#  174|-> 			it->key = strdup(item->key);
#  175|   			it->value = strdup(item->value);
#  176|   		}

Error: GCC_ANALYZER_WARNING (CWE-122): [#def72]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/proplist.h:175:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1752:18: enter_function: entry to ‘acp_card_new’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1762:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1765:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/acp/acp.c:1769:26: call_function: calling ‘pa_proplist_new_dict’ from ‘acp_card_new’
#  173|   			it = pa_array_add(&p->array, sizeof(*it));
#  174|   			it->key = strdup(item->key);
#  175|-> 			it->value = strdup(item->value);
#  176|   		}
#  177|   	}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def73]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:40:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:532:12: enter_function: entry to ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:540:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:541:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:541:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:543:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:549:9: call_function: inlined call to ‘alsa_log_topic_init’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:549:9: call_function: inlined call to ‘alsa_log_topic_init’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-compress-offload-device.c:557:9: call_function: inlined call to ‘reset_props’ from ‘impl_init’
#   38|   static void reset_props(struct props *props)
#   39|   {
#   40|-> 	strncpy(props->device, default_device, 64);
#   41|   	props->card_nr = 0;
#   42|   }

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

Error: GCC_ANALYZER_WARNING (CWE-126): [#def75]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:29:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:815:1: enter_function: entry to ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:823:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:824:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:824:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:826:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:831:21: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:831:21: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:834:29: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:834:29: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:835:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:835:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:836:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:836:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:838:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:842:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:842:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:846:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:846:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-pcm-source.c:851:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-401): [#def76]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:412:40: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:722:13: enter_function: entry to ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: call_function: calling ‘check_access’ from ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: return_function: returning to ‘process_card’ from ‘check_access’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:730:20: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:731:35: call_function: calling ‘emit_added_object_info’ from ‘process_card’
#  410|   				card->card_nr, entry->d_name);
#  411|   
#  412|-> 		spa_autoptr(DIR) pcm = opendir(path);
#  413|   		if (pcm == NULL)
#  414|   			goto done;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def77]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:424:47: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "re")’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:722:13: enter_function: entry to ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: call_function: calling ‘check_access’ from ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: return_function: returning to ‘process_card’ from ‘check_access’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:730:20: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:731:35: call_function: calling ‘emit_added_object_info’ from ‘process_card’
#  422|   					card->card_nr, entry->d_name, entry_pcm->d_name);
#  423|   
#  424|-> 			spa_autoptr(FILE) f = fopen(path, "re");
#  425|   			if (f == NULL)
#  426|   				goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def78]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:424:47: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "re")’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:722:13: enter_function: entry to ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: call_function: calling ‘check_access’ from ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: return_function: returning to ‘process_card’ from ‘check_access’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:730:20: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:731:35: call_function: calling ‘emit_added_object_info’ from ‘process_card’
#  422|   					card->card_nr, entry->d_name, entry_pcm->d_name);
#  423|   
#  424|-> 			spa_autoptr(FILE) f = fopen(path, "re");
#  425|   			if (f == NULL)
#  426|   				goto done;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def79]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:691:52: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/snd")’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:722:13: enter_function: entry to ‘process_card’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/alsa/alsa-udev.c:729:17: call_function: calling ‘check_access’ from ‘process_card’
#  689|   
#  690|   	snprintf(path, sizeof(path), "/dev/snd/controlC%u", card->card_nr);
#  691|-> 	if (access(path, R_OK|W_OK) >= 0 && (snd = opendir("/dev/snd"))) {
#  692|   		/*
#  693|   		 * It's possible that controlCX is accessible before pcmCX* or

Error: COMPILER_WARNING: [#def80]
pipewire-1.4.2/redhat-linux-build/../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: [#def81]
pipewire-1.4.2/redhat-linux-build/../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: [#def82]
pipewire-1.4.2/redhat-linux-build/../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: [#def83]
pipewire-1.4.2/redhat-linux-build/../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: [#def84]
pipewire-1.4.2/redhat-linux-build/../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: [#def85]
pipewire-1.4.2/redhat-linux-build/../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: [#def86]
pipewire-1.4.2/redhat-linux-build/../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: [#def87]
pipewire-1.4.2/redhat-linux-build/../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: [#def88]
pipewire-1.4.2/redhat-linux-build/../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: [#def89]
pipewire-1.4.2/redhat-linux-build/../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: [#def90]
pipewire-1.4.2/redhat-linux-build/../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: [#def91]
pipewire-1.4.2/redhat-linux-build/../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: [#def92]
pipewire-1.4.2/redhat-linux-build/../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: [#def93]
pipewire-1.4.2/redhat-linux-build/../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: [#def94]
pipewire-1.4.2/redhat-linux-build/../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: [#def95]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-sse41.c:32:22: note[note]: called from here
#   30|   
#   31|   	for(n = 0; n < unrolled; n += 4) {
#   32|-> 		in = _mm_insert_epi32(in, spa_read_unaligned(&s[0 * n_channels], uint32_t), 0);
#   33|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[1 * n_channels], uint32_t), 1);
#   34|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[2 * n_channels], uint32_t), 2);

Error: COMPILER_WARNING: [#def96]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-sse41.c:33:22: note[note]: called from here
#   31|   	for(n = 0; n < unrolled; n += 4) {
#   32|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[0 * n_channels], uint32_t), 0);
#   33|-> 		in = _mm_insert_epi32(in, spa_read_unaligned(&s[1 * n_channels], uint32_t), 1);
#   34|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[2 * n_channels], uint32_t), 2);
#   35|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[3 * n_channels], uint32_t), 3);

Error: COMPILER_WARNING: [#def97]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-sse41.c:34:22: note[note]: called from here
#   32|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[0 * n_channels], uint32_t), 0);
#   33|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[1 * n_channels], uint32_t), 1);
#   34|-> 		in = _mm_insert_epi32(in, spa_read_unaligned(&s[2 * n_channels], uint32_t), 2);
#   35|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[3 * n_channels], uint32_t), 3);
#   36|   		in = _mm_slli_epi32(in, 8);

Error: COMPILER_WARNING: [#def98]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-sse41.c:35:22: note[note]: called from here
#   33|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[1 * n_channels], uint32_t), 1);
#   34|   		in = _mm_insert_epi32(in, spa_read_unaligned(&s[2 * n_channels], uint32_t), 2);
#   35|-> 		in = _mm_insert_epi32(in, spa_read_unaligned(&s[3 * n_channels], uint32_t), 3);
#   36|   		in = _mm_slli_epi32(in, 8);
#   37|   		in = _mm_srai_epi32(in, 8);

Error: COMPILER_WARNING: [#def99]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-ssse3.c:34:25: note[note]: called from here
#   32|                   in[2] = _mm_loadu_si128((__m128i*)(s + 2*n_channels));
#   33|                   in[3] = _mm_loadu_si128((__m128i*)(s + 3*n_channels));
#   34|-> 		in[0] = _mm_shuffle_epi8(in[0], mask);
#   35|   		in[1] = _mm_shuffle_epi8(in[1], mask);
#   36|   		in[2] = _mm_shuffle_epi8(in[2], mask);

Error: COMPILER_WARNING: [#def100]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-ssse3.c:35:25: note[note]: called from here
#   33|                   in[3] = _mm_loadu_si128((__m128i*)(s + 3*n_channels));
#   34|   		in[0] = _mm_shuffle_epi8(in[0], mask);
#   35|-> 		in[1] = _mm_shuffle_epi8(in[1], mask);
#   36|   		in[2] = _mm_shuffle_epi8(in[2], mask);
#   37|   		in[3] = _mm_shuffle_epi8(in[3], mask);

Error: COMPILER_WARNING: [#def101]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-ssse3.c:36:25: note[note]: called from here
#   34|   		in[0] = _mm_shuffle_epi8(in[0], mask);
#   35|   		in[1] = _mm_shuffle_epi8(in[1], mask);
#   36|-> 		in[2] = _mm_shuffle_epi8(in[2], mask);
#   37|   		in[3] = _mm_shuffle_epi8(in[3], mask);
#   38|   		in[0] = _mm_srai_epi32(in[0], 8);

Error: COMPILER_WARNING: [#def102]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/fmt-ops-ssse3.c:37:25: note[note]: called from here
#   35|   		in[1] = _mm_shuffle_epi8(in[1], mask);
#   36|   		in[2] = _mm_shuffle_epi8(in[2], mask);
#   37|-> 		in[3] = _mm_shuffle_epi8(in[3], mask);
#   38|   		in[0] = _mm_srai_epi32(in[0], 8);
#   39|   		in[1] = _mm_srai_epi32(in[1], 8);

Error: COMPILER_WARNING: [#def103]
pipewire-1.4.2/redhat-linux-build/../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: [#def104]
pipewire-1.4.2/redhat-linux-build/../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: [#def105]
pipewire-1.4.2/redhat-linux-build/../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: [#def106]
pipewire-1.4.2/redhat-linux-build/../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: [#def107]
pipewire-1.4.2/redhat-linux-build/../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: [#def108]
pipewire-1.4.2/redhat-linux-build/../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: [#def109]
pipewire-1.4.2/redhat-linux-build/../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: [#def110]
pipewire-1.4.2/redhat-linux-build/../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: [#def111]
pipewire-1.4.2/redhat-linux-build/../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: [#def112]
pipewire-1.4.2/redhat-linux-build/../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: [#def113]
pipewire-1.4.2/redhat-linux-build/../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: [#def114]
pipewire-1.4.2/redhat-linux-build/../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: COMPILER_WARNING: [#def115]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-avx.c:34:17: note[note]: called from here
#   32|   	}
#   33|   	sx[0] = _mm_add_ps(sx[0], sx[1]);
#   34|-> 	sx[0] = _mm_hadd_ps(sx[0], sx[0]);
#   35|   	sx[0] = _mm_hadd_ps(sx[0], sx[0]);
#   36|   	_mm_store_ss(d, sx[0]);

Error: COMPILER_WARNING: [#def116]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-avx.c:35:17: note[note]: called from here
#   33|   	sx[0] = _mm_add_ps(sx[0], sx[1]);
#   34|   	sx[0] = _mm_hadd_ps(sx[0], sx[0]);
#   35|-> 	sx[0] = _mm_hadd_ps(sx[0], sx[0]);
#   36|   	_mm_store_ss(d, sx[0]);
#   37|   }

Error: COMPILER_WARNING: [#def117]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:33:38: note[note]: called from here
#   31|   		for (i = 0; i < n_taps; i += 8) {
#   32|   			t1 = _mm_load_ps(s + i + 3);
#   33|-> 			t0 = (__m128)_mm_alignr_epi8((__m128i)t1, (__m128i)t0, 4);
#   34|   			sum = _mm_add_ps(sum,
#   35|   				_mm_mul_ps(t0, _mm_load_ps(taps + i + 0)));

Error: COMPILER_WARNING: [#def118]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:38:38: note[note]: called from here
#   36|   			t0 = t1;
#   37|   			t1 = _mm_load_ps(s + i + 7);
#   38|-> 			t0 = (__m128)_mm_alignr_epi8((__m128i)t1, (__m128i)t0, 4);
#   39|   			sum = _mm_add_ps(sum,
#   40|   				_mm_mul_ps(t0, _mm_load_ps(taps + i + 4)));

Error: COMPILER_WARNING: [#def119]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:48:38: note[note]: called from here
#   46|   		for (i = 0; i < n_taps; i += 8) {
#   47|   			t1 = _mm_load_ps(s + i + 2);
#   48|-> 			t0 = (__m128)_mm_alignr_epi8((__m128i)t1, (__m128i)t0, 8);
#   49|   			sum = _mm_add_ps(sum,
#   50|   				_mm_mul_ps(t0, _mm_load_ps(taps + i + 0)));

Error: COMPILER_WARNING: [#def120]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:53:38: note[note]: called from here
#   51|   			t0 = t1;
#   52|   			t1 = _mm_load_ps(s + i + 6);
#   53|-> 			t0 = (__m128)_mm_alignr_epi8((__m128i)t1, (__m128i)t0, 8);
#   54|   			sum = _mm_add_ps(sum,
#   55|   				_mm_mul_ps(t0, _mm_load_ps(taps + i + 4)));

Error: COMPILER_WARNING: [#def121]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:63:38: note[note]: called from here
#   61|   		for (i = 0; i < n_taps; i += 8) {
#   62|   			t1 = _mm_load_ps(s + i + 1);
#   63|-> 			t0 = (__m128)_mm_alignr_epi8((__m128i)t1, (__m128i)t0, 12);
#   64|   			sum = _mm_add_ps(sum,
#   65|   				_mm_mul_ps(t0, _mm_load_ps(taps + i + 0)));

Error: COMPILER_WARNING: [#def122]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:68:38: note[note]: called from here
#   66|   			t0 = t1;
#   67|   			t1 = _mm_load_ps(s + i + 5);
#   68|-> 			t0 = (__m128)_mm_alignr_epi8((__m128i)t1, (__m128i)t0, 12);
#   69|   			sum = _mm_add_ps(sum,
#   70|   				_mm_mul_ps(t0, _mm_load_ps(taps + i + 4)));

Error: COMPILER_WARNING: [#def123]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-native-ssse3.c:75:15: note[note]: called from here
#   73|   		break;
#   74|   	}
#   75|-> 	sum = _mm_add_ps(sum, _mm_movehdup_ps(sum));
#   76|   	sum = _mm_add_ss(sum, _mm_movehl_ps(sum, sum));
#   77|   	_mm_store_ss(d, sum);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def124]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-peaks.c:57:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘o’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-peaks.c:27:12: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-peaks.c:30:21: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/resample-peaks.c:57:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def125]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:68:9: warning[-Wanalyzer-jump-through-null]: jump through null pointer
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:57:13: enter_function: entry to ‘test_min_max’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:66:9: call_function: calling ‘peaks_init’ from ‘test_min_max’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:66:9: return_function: returning to ‘test_min_max’ from ‘peaks_init’
pipewire-1.4.2/redhat-linux-build/../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): [#def126]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:85:15: warning[-Wanalyzer-jump-through-null]: jump through null pointer
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:74:13: enter_function: entry to ‘test_abs_max’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:83:9: call_function: calling ‘peaks_init’ from ‘test_abs_max’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-peaks.c:83:9: return_function: returning to ‘test_abs_max’ from ‘peaks_init’
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def127]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:123:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘port’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:529:12: enter_function: entry to ‘port_set_format’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:539:16: branch_false: following ‘false’ branch (when ‘direction != 1’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:541:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:541:12: branch_true: following ‘true’ branch (when ‘format’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:542:21: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:542:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:579:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def128]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:543:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘port’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:539:16: branch_false: following ‘false’ branch (when ‘direction != 1’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:541:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:541:12: branch_true: following ‘true’ branch (when ‘format’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:542:21: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:542:20: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-source.c:543:25: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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: COMPILER_WARNING: [#def129]
pipewire-1.4.2/redhat-linux-build/../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: [#def130]
pipewire-1.4.2/redhat-linux-build/../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: [#def131]
pipewire-1.4.2/redhat-linux-build/../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: [#def132]
pipewire-1.4.2/redhat-linux-build/../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: [#def133]
pipewire-1.4.2/redhat-linux-build/../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: [#def134]
pipewire-1.4.2/redhat-linux-build/../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: [#def135]
pipewire-1.4.2/redhat-linux-build/../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: [#def136]
pipewire-1.4.2/redhat-linux-build/../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: [#def137]
pipewire-1.4.2/redhat-linux-build/../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: [#def138]
pipewire-1.4.2/redhat-linux-build/../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: [#def139]
pipewire-1.4.2/redhat-linux-build/../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: [#def140]
pipewire-1.4.2/redhat-linux-build/../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: [#def141]
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def142]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:375:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘cmd’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:533:13: enter_function: entry to ‘rfcomm_send_volume_cmd’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:542:20: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:542:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:544:13: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:547:66: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/backend-native.c:557:9: call_function: calling ‘rfcomm_send_cmd’ from ‘rfcomm_send_volume_cmd’
#  373|   		spa_log_debug(backend->log, "Command in progress, postponing: %s", message);
#  374|   		struct rfcomm_cmd *cmd = calloc(1, sizeof(struct rfcomm_cmd));
#  375|-> 		cmd->cmd = strndup(message, len);
#  376|   		spa_list_append(&rfcomm->hfp_hf_commands, &cmd->link);
#  377|   		return 0;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def143]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:89:19: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘sg[1]’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:226:5: enter_function: entry to ‘g722_encode’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:254:15: branch_true: following ‘true’ branch (when ‘j < len’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:255:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:255:8: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:261:21: branch_true: following ‘true’ branch (when ‘i != 22’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:262:26: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:261:21: branch_false: following ‘false’ branch (when ‘i == 22’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:265:24: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:271:21: branch_true: following ‘true’ branch (when ‘i != 12’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:272:26: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:297:17: branch_true: following ‘true’ branch (when ‘i != 30’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/g722/g722_encode.c:298:14: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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-457): [#def144]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/telephony.c:886:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘cme_error’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/telephony.c:852:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/telephony.c:857:14: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/telephony.c:857:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/telephony.c:858:17: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/bluez5/telephony.c:886:16: danger: use of uninitialized value ‘cme_error’ here
#  884|   
#  885|   failed:
#  886|-> 	return dbus_message_new_error(m, telephony_error_to_dbus (err),
#  887|   		telephony_error_to_description (err, cme_error));
#  888|   }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def164]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:452:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:403:16: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:404:12: branch_false: following ‘false’ branch (when ‘desc’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:407:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:429:21: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:452:16: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/lv2_plugin.c:452:16: danger: ‘desc’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  450|   		fp->def = controls[i];
#  451|   	}
#  452|-> 	return &desc->desc;
#  453|   }
#  454|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def165]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1294:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1415:21: enter_function: entry to ‘new_setup_c’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1423:17: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1433:28: call_function: inlined call to ‘pffft_aligned_malloc’ from ‘new_setup_c’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1433:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1438:12: branch_true: following ‘true’ branch (when ‘transform == 0’)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1450:52: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def166]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1429:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:1417:42: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-401): [#def167]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:2313:9: warning[-Wanalyzer-malloc-leak]: leak of ‘p0’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:2308:24: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:2309:12: branch_false: following ‘false’ branch (when ‘p0’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/filter-graph/pffft.c:2311:23: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def168]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:148:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:147:16: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:148:9: danger: ‘data’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/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: GCC_ANALYZER_WARNING (CWE-775): [#def169]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:151:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup(dbus_watch_get_unix_fd(watch))’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:139:20: enter_function: entry to ‘add_watch’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:151:24: acquire_resource: opened here
pipewire-1.4.2/redhat-linux-build/../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-476): [#def170]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:224:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:218:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:221:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:223:16: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:224:9: danger: ‘data’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/2/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: GCC_ANALYZER_WARNING (CWE-476): [#def171]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:424:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘conn’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:422:16: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/dbus.c:424:9: danger: ‘conn’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/3/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: GCC_ANALYZER_WARNING (CWE-775): [#def172]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:703:50: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev, 0)’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:618:1: enter_function: entry to ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:627:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:628:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:628:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:630:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:636:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:636:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:637:29: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:637:29: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:641:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:645:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:645:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:650:9: call_function: inlined call to ‘spa_hook_list_init’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:670:21: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:673:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:675:28: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:675:27: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:678:28: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:678:27: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:684:28: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:684:27: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:695:28: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:695:27: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:696:41: call_function: calling ‘get_phc_index’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:696:41: return_function: returning to ‘impl_init’ from ‘get_phc_index’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:697:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:702:33: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:702:33: call_function: calling ‘spa_scnprintf’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:702:33: return_function: returning to ‘impl_init’ from ‘spa_scnprintf’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:703:50: acquire_resource: opened here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/support/node-driver.c:703:50: danger: ‘open(&dev, 0)’ leaks here; was opened at [(52)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/51)
#  701|   				char dev[19];
#  702|   				spa_scnprintf(dev, sizeof(dev), "/dev/ptp%d", phc_index);
#  703|-> 				this->clock_fd = open(dev, O_RDONLY);
#  704|   				if (this->clock_fd == -1) {
#  705|   					spa_log_warn(this->log, "failed to open clock device '%s' "

Error: GCC_ANALYZER_WARNING (CWE-401): [#def173]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/test/test-helper.h:74:9: warning[-Wanalyzer-malloc-leak]: leak of ‘handle’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/audioconvert/test-channelmix.c:371:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../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): [#def174]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-device.c:42:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-device.c:227:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-device.c:228:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-device.c:228:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-device.c:230:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-126): [#def175]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:46:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1001:1: enter_function: entry to ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1013:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1014:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1014:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1016:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1021:21: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1021:21: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1024:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1024:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1025:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1030:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1051:9: call_function: calling ‘reset_props’ from ‘impl_init’
#   44|   static void reset_props(struct props *props)
#   45|   {
#   46|-> 	strncpy(props->device, default_device, sizeof(props->device));
#   47|   	strncpy(props->clock_name, default_clock_name, sizeof(props->clock_name));
#   48|   }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def176]
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:47:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1001:1: enter_function: entry to ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1013:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1014:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1014:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1016:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1024:27: call_function: calling ‘spa_support_find’ from ‘impl_init’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1024:27: return_function: returning to ‘impl_init’ from ‘spa_support_find’
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1025:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1030:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../spa/plugins/v4l2/v4l2-source.c:1051:9: call_function: calling ‘reset_props’ from ‘impl_init’
#   45|   {
#   46|   	strncpy(props->device, default_device, sizeof(props->device));
#   47|-> 	strncpy(props->clock_name, default_clock_name, sizeof(props->clock_name));
#   48|   }
#   49|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def177]
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:62:25: warning[-Wanalyzer-infinite-loop]: infinite loop
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:50:14: enter_function: entry to ‘reader_start’
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:62:25: danger: infinite loop here
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:64:20: branch_false: if it ever follows ‘false’ branch, it will always do so...
pipewire-1.4.2/redhat-linux-build/../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): [#def178]
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:91:25: warning[-Wanalyzer-infinite-loop]: infinite loop
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:80:14: enter_function: entry to ‘writer_start’
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:91:25: danger: infinite loop here
pipewire-1.4.2/redhat-linux-build/../spa/tests/stress-ringbuffer.c:93:20: branch_false: when ‘avail <= 251’: always following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-457): [#def179]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:451:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ipod’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:435:12: enter_function: entry to ‘device_demarshal_object_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘device_demarshal_object_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:13: return_function: returning to ‘device_demarshal_object_info’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:13: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:13: call_function: calling ‘spa_pod_parser_get’ from ‘device_demarshal_object_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:13: return_function: returning to ‘device_demarshal_object_info’ from ‘spa_pod_parser_get’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:446:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:451:13: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-device/protocol-native.c:451:13: danger: use of uninitialized value ‘ipod’ here
#  449|   		return -EINVAL;
#  450|   
#  451|-> 	if (ipod) {
#  452|   		struct spa_pod_parser p2;
#  453|   		struct spa_pod_frame f2;

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

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

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

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

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

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

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

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

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def191]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:767:16: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:736:20: enter_function: entry to ‘pw_manager_new’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:741:13: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:742:12: branch_false: following ‘false’ branch (when ‘m’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:745:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:746:28: call_function: calling ‘pw_core_get_registry’ from ‘pw_manager_new’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:746:28: return_function: returning to ‘pw_manager_new’ from ‘pw_core_get_registry’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:748:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:753:19: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/manager.c:767:16: danger: ‘m’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  765|   			&registry_events, m);
#  766|   
#  767|-> 	return &m->this;
#  768|   }
#  769|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def192]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/message.c:402:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/message.c:825:17: enter_function: entry to ‘message_alloc’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/message.c:829:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/message.c:831:17: call_function: inlined call to ‘spa_list_remove’ from ‘message_alloc’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/message.c:834:17: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/message.c:845:13: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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-476): [#def193]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/module.c:126:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/module.c:121:32: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/module.c:126:16: danger: ‘p’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/0/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): [#def194]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:204:1: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:182:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:185:20: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:186:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:190:21: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_true: following ‘true’ branch (when ‘i != 10’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:194:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:193:21: branch_false: following ‘false’ branch (when ‘i == 10’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-protocol-pulse/modules/module-gsettings.c:200:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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-415): [#def195]
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:571:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:581:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:584:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:584:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:584:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:590:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:591:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:612:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop-discover.c:613:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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-476): [#def196]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:306:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:366:12: enter_function: entry to ‘process_input’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:368:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:369:23: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:369:23: release_memory: ‘buf’ is NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:372:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:375:17: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-raop/rtsp-client.c:381:32: release_memory: ‘buf’ is NULL
pipewire-1.4.2/redhat-linux-build/../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-401): [#def197]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:161:5: enter_function: entry to ‘endpoint_stream_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:167:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:170:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:175:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:180:29: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:181:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:187:25: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:43: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:55: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:190:55: call_function: calling ‘spa_pod_copy’ from ‘endpoint_stream_update’
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: danger: ‘<unknown>’ leaks here; was allocated at [(26)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/25)
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def198]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:178:5: enter_function: entry to ‘endpoint_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:184:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:187:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:192:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:197:29: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:198:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:204:25: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:206:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:207:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: call_function: calling ‘endpoint_notify_subscribed’ from ‘endpoint_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: return_function: returning to ‘endpoint_update’ from ‘endpoint_notify_subscribed’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:206:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:207:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:207:43: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:207:55: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:207:55: call_function: calling ‘spa_pod_copy’ from ‘endpoint_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:207:55: return_function: returning to ‘endpoint_update’ from ‘spa_pod_copy’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: danger: ‘<unknown>’ leaks here; was allocated at [(26)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/25)
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def199]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:204:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:174:5: enter_function: entry to ‘endpoint_link_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:180:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:183:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:188:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:193:29: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:194:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:200:25: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:202:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:203:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:202:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:203:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:203:43: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:203:55: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:203:55: call_function: calling ‘spa_pod_copy’ from ‘endpoint_link_update’
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/endpoint-link.c:204:25: danger: ‘<unknown>’ leaks here; was allocated at [(26)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/25)
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def200]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:161:5: enter_function: entry to ‘session_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:167:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:170:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:175:20: branch_false: following ‘false’ branch (when ‘n_params != 0’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:180:29: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:181:28: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:187:25: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:190:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:191:25: call_function: calling ‘session_notify_subscribed’ from ‘session_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:191:25: return_function: returning to ‘session_update’ from ‘session_notify_subscribed’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:189:29: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:190:49: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:190:43: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:190:55: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:190:55: call_function: calling ‘spa_pod_copy’ from ‘session_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:190:55: return_function: returning to ‘session_update’ from ‘spa_pod_copy’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/client-session/session.c:191:25: danger: ‘<unknown>’ leaks here; was allocated at [(26)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/25)
#  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: GCC_ANALYZER_WARNING (CWE-476): [#def201]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:297:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pdata’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:287:29: call_function: calling ‘pw_endpoint_link_info_update’ from ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:287:29: return_function: returning to ‘event_info’ from ‘pw_endpoint_link_info_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:293:12: branch_true: following ‘true’ branch (when ‘n_changed_ids != 0’)...
 branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:295:29: branch_true: following ‘true’ branch (when ‘n_changed_ids > i’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:296:52: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:296:52: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:297:25: danger: ‘pdata’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
#  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: GCC_ANALYZER_WARNING (CWE-476): [#def202]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:288:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pdata’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:278:29: call_function: calling ‘pw_endpoint_stream_info_update’ from ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:278:29: return_function: returning to ‘event_info’ from ‘pw_endpoint_stream_info_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:284:12: branch_true: following ‘true’ branch (when ‘n_changed_ids != 0’)...
 branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:286:29: branch_true: following ‘true’ branch (when ‘n_changed_ids > i’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:287:52: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:287:52: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:288:25: danger: ‘pdata’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/14)
#  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: GCC_ANALYZER_WARNING (CWE-476): [#def203]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:297:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pdata’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:287:29: call_function: calling ‘pw_endpoint_info_update’ from ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:287:29: return_function: returning to ‘event_info’ from ‘pw_endpoint_info_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:293:12: branch_true: following ‘true’ branch (when ‘n_changed_ids != 0’)...
 branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:295:29: branch_true: following ‘true’ branch (when ‘n_changed_ids > i’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:296:52: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:296:52: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:297:25: danger: ‘pdata’ could be NULL: unchecked value from [(15)](sarif:/runs/0/results/6/codeFlows/0/threadFlows/0/locations/14)
#  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: GCC_ANALYZER_WARNING (CWE-457): [#def204]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2806:16: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘param’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2788:12: enter_function: entry to ‘session_proxy_demarshal_param’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:13: call_function: calling ‘spa_pod_parser_push_struct’ from ‘session_proxy_demarshal_param’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:13: return_function: returning to ‘session_proxy_demarshal_param’ from ‘spa_pod_parser_push_struct’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:13: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:13: call_function: calling ‘spa_pod_parser_get’ from ‘session_proxy_demarshal_param’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:13: return_function: returning to ‘session_proxy_demarshal_param’ from ‘spa_pod_parser_get’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2798:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2806:16: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2806:16: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/protocol-native.c:2806:16: danger: use of uninitialized value ‘param’ here
# 2804|   		return -EINVAL;
# 2805|   
# 2806|-> 	return pw_proxy_notify(proxy, struct pw_session_events,
# 2807|   				param, 0, seq, id, index, next, param);
# 2808|   }

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

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

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def208]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:286:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘pdata’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:276:29: call_function: calling ‘pw_session_info_update’ from ‘event_info’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:276:29: return_function: returning to ‘event_info’ from ‘pw_session_info_update’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:282:12: branch_true: following ‘true’ branch (when ‘n_changed_ids != 0’)...
 branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:284:29: branch_true: following ‘true’ branch (when ‘n_changed_ids > i’)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:285:52: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:285:52: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:286:25: danger: ‘pdata’ could be NULL: unchecked value from [(11)](sarif:/runs/0/results/7/codeFlows/0/threadFlows/0/locations/10)
#  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: GCC_ANALYZER_WARNING (CWE-401): [#def209]
pipewire-1.4.2/redhat-linux-build/../src/modules/module-snapcast-discover.c:543:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*t.stream_name’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-snapcast-discover.c:593:12: enter_function: entry to ‘rule_matched’
pipewire-1.4.2/redhat-linux-build/../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-415): [#def210]
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:499:5: enter_function: entry to ‘pipewire__module_init’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:509:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:512:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:518:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:519:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:540:12: branch_true: following ‘true’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:541:17: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-zeroconf-discover.c:541: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): [#def211]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/array.h:81:9: warning[-Wanalyzer-malloc-leak]: leak of ‘map.items.data’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:165:1: enter_function: entry to ‘map_insert_at_free’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:189:12: branch_false: following ‘false’ branch (when ‘item_idx != 3’)...
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:192:18: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:192:18: call_function: calling ‘pw_map_insert_new’ from ‘map_insert_at_free’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:192:18: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_new’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:193:18: call_function: calling ‘pw_map_insert_new’ from ‘map_insert_at_free’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:193:18: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_new’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:194:18: call_function: calling ‘pw_map_insert_new’ from ‘map_insert_at_free’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:194:18: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_new’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:206:14: call_function: calling ‘pw_map_insert_at’ from ‘map_insert_at_free’
pipewire-1.4.2/redhat-linux-build/../test/test-map.c:206:14: return_function: returning to ‘map_insert_at_free’ from ‘pw_map_insert_at’
pipewire-1.4.2/redhat-linux-build/../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): [#def212]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/array.h:140:9: warning[-Wanalyzer-malloc-leak]: leak of ‘*impl.mems.data’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:636:1: enter_function: entry to ‘impl_node_port_set_io’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:648:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:649:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:661:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:665:12: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:665:12: branch_true: following ‘true’ branch (when ‘data’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:666:28: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:666:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:669:30: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:671:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:674:31: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-client-node/v0/client-node.c:675:21: call_function: calling ‘ensure_mem’ from ‘impl_node_port_set_io’
#  138|   
#  139|   	p = SPA_PTROFF(arr->data, arr->size, void);
#  140|-> 	arr->size += size;
#  141|   
#  142|   	return p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def213]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/array.h:140:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-client.c:309:12: enter_function: entry to ‘client_update_permissions’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-client.c:314: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): [#def214]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/array.h:151:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:335:13: enter_function: entry to ‘event_param’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:345:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:346:21: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:346:20: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:349:21: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:349:20: branch_true: following ‘true’ branch...
 branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:350:32: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:351:33: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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): [#def215]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:55:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def216]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def217]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/session.c:259:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def218]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:125:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def219]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:131:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def220]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:183:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.link_params’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def221]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:194:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def222]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:200:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-stream.c:261:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def223]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:257:17: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.error’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def224]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:267:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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): [#def225]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/extensions/session-manager/introspect-funcs.h:273:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.4.2/redhat-linux-build/../src/modules/module-session-manager/endpoint-link.c:270:13: enter_function: entry to ‘event_info’
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-401): [#def226]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:299:9: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:266:26: enter_function: entry to ‘pw_context_create_metadata’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:279:16: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:280:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:284:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:294:9: call_function: calling ‘pw_impl_metadata_set_implementation’ from ‘pw_context_create_metadata’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:294:9: return_function: returning to ‘pw_context_create_metadata’ from ‘pw_impl_metadata_set_implementation’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:299:9: branch_false: following ‘false’ branch...
 branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-metadata.c:299:9: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/1)
#  297|   		this->user_data = SPA_PTROFF(this, sizeof(*this), void);
#  298|   
#  299|-> 	pw_log_debug("%p: new", this);
#  300|   
#  301|   	return this;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def227]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:139:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:40:17: enter_function: entry to ‘pw_loop_new’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:52:16: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:53:12: branch_false: following ‘false’ branch (when ‘impl’ is non-NULL)...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:58:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:68:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:74:20: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:74:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:74:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:74:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:80:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:84:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
 branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:92:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:98:20: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:98:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:98:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:98:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:105:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:107:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:107:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:107:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:114:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:115:14: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:122:20: call_function: calling ‘spa_handle_get_interface’ from ‘pw_loop_new’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:122:20: return_function: returning to ‘pw_loop_new’ from ‘spa_handle_get_interface’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:122:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:129:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:131:12: branch_false: following ‘false’ branch (when ‘props’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:137:22: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/pipewire/loop.c:139:16: danger: ‘impl’ leaks here; was allocated at [(2)](sarif:/runs/0/results/0/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): [#def228]
pipewire-1.4.2/redhat-linux-build/../src/pipewire/map.h:167:32: warning[-Wanalyzer-malloc-leak]: leak of ‘*client.objects.items.data’
pipewire-1.4.2/redhat-linux-build/../src/pipewire/impl-core.c:291:1: enter_function: entry to ‘core_create_object’
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def229]
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2204:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘line’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2201:12: branch_true: following ‘true’ branch (when ‘line’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2202:24: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2202:24: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2204:13: danger: ‘line’ could be NULL: unchecked value from [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2)
# 2202|   		line = strdup("quit");
# 2203|   
# 2204|-> 	if (line[0] != '\0') {
# 2205|   #ifdef HAVE_READLINE
# 2206|   		add_history(line);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def230]
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2421:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2317:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2369:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2373:13: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2374:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2374:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2375:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2375:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2378:9: call_function: inlined call to ‘pw_map_init’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2378:9: call_function: inlined call to ‘pw_map_init’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2380:24: branch_true: following ‘true’ branch (when ‘daemon != 0’)...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2380:24: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2385:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2390:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2392:14: call_function: calling ‘do_connect’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2392:14: return_function: returning to ‘main’ from ‘do_connect’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2392:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2397:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2397:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2419:23: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2419:23: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2420:34: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2421:74: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2421:25: danger: argument 1 (‘buf’) from [(62)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/61) could be NULL where non-null expected
# 2419|   		buf = open_memstream(&ptr, &size);
# 2420|   		for (i = optind; i < argc; i++)
# 2421|-> 			fprintf(buf, "%s%s", i == optind ? "" : " ", argv[i]);
# 2422|   		fclose(buf);
# 2423|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def231]
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2422:17: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘buf’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2317:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2369:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2373:13: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2374:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2374:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2375:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2375:9: call_function: inlined call to ‘pw_loop_add_signal’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2378:9: call_function: inlined call to ‘pw_map_init’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2378:9: call_function: inlined call to ‘pw_map_init’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2380:24: branch_true: following ‘true’ branch (when ‘daemon != 0’)...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2380:24: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2385:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2390:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2392:14: call_function: calling ‘do_connect’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2392:14: return_function: returning to ‘main’ from ‘do_connect’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2392:12: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2397:13: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2397:12: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2419:23: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2419:23: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2420:34: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2422:17: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-cli.c:2422:17: danger: argument 1 (‘buf’) from [(62)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/61) could be NULL where non-null expected
# 2420|   		for (i = optind; i < argc; i++)
# 2421|   			fprintf(buf, "%s%s", i == optind ? "" : " ", argv[i]);
# 2422|-> 		fclose(buf);
# 2423|   
# 2424|   		// If we're monitoring, surface info changes as well

Error: GCC_ANALYZER_WARNING (CWE-476): [#def232]
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-dot.c:91:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data.dot_data.data’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-dot.c:1342:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../src/tools/pw-dot.c:1418:14: call_function: inlined call to ‘dot_data_init’ from ‘main’
#   89|   
#   90|   	dd->data = malloc(sizeof (char) * size);
#   91|-> 	dd->data[0] = '\0';
#   92|   	dd->size = 0;
#   93|   	dd->max_size = size;

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

Error: GCC_ANALYZER_WARNING (CWE-476): [#def234]
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:545:9: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1364:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: call_function: calling ‘find_suites’ from ‘main’
#  543|   	struct pwtest_suite *c = calloc(1, sizeof *c);
#  544|   
#  545|-> 	c->decl = decl;
#  546|   	spa_list_init(&c->tests);
#  547|   	spa_list_append(&ctx->suites, &c->link);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def235]
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:737:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1364:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: call_function: calling ‘find_suites’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: return_function: returning to ‘main’ from ‘find_suites’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: call_function: calling ‘make_xdg_runtime_dir’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: return_function: returning to ‘main’ from ‘make_xdg_runtime_dir’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1452:9: branch_false: following ‘false’ branch (when ‘mode != 1’)...
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1456:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1460:21: call_function: calling ‘run_tests’ from ‘main’
#  735|   
#  736|   		execl(daemon, daemon, (char*)NULL);
#  737|-> 		return -errno;
#  738|   
#  739|   	} else if (pid < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def236]
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:798:17: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[i]’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1364:5: enter_function: entry to ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: call_function: calling ‘find_suites’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1444:9: return_function: returning to ‘main’ from ‘find_suites’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: call_function: calling ‘make_xdg_runtime_dir’ from ‘main’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1450:24: return_function: returning to ‘main’ from ‘make_xdg_runtime_dir’
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1452:9: branch_false: following ‘false’ branch (when ‘mode != 1’)...
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1456:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/pwtest.c:1460:21: call_function: calling ‘run_tests’ from ‘main’
#  796|   		if (fds[i] >= 0)
#  797|   			close(fds[i]);
#  798|-> 		fds[i] = -1;
#  799|   	}
#  800|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def237]
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:40:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:22:1: enter_function: entry to ‘array_test’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:29:9: call_function: inlined call to ‘pw_array_init’ from ‘array_test’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:38:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:39:34: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:39:34: call_function: calling ‘pw_array_add’ from ‘array_test’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:39:34: return_function: returning to ‘array_test’ from ‘pw_array_add’
pipewire-1.4.2/redhat-linux-build/../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): [#def238]
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:101:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:90:1: enter_function: entry to ‘array_clear’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:97:9: call_function: inlined call to ‘pw_array_init’ from ‘array_clear’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:99:21: branch_true: following ‘true’ branch (when ‘i != 4’)...
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:100:34: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:100:34: call_function: calling ‘pw_array_add’ from ‘array_clear’
pipewire-1.4.2/redhat-linux-build/../test/test-array.c:100:34: return_function: returning to ‘array_clear’ from ‘pw_array_add’
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-688): [#def239]
pipewire-1.4.2/redhat-linux-build/../test/test-config.c:19:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&path, "we")’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-config.c:18:14: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-476): [#def240]
pipewire-1.4.2/redhat-linux-build/../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: GCC_ANALYZER_WARNING (CWE-688): [#def241]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:47:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:46:14: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:47: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
#   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: GCC_ANALYZER_WARNING (CWE-688): [#def242]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:94:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:93:14: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:94:16: danger: argument 3 (‘fopen(&fname, "re")’) from [(1)](sarif:/runs/0/results/1/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-688): [#def243]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:141:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:140:14: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:141:16: danger: argument 3 (‘fopen(&fname, "re")’) from [(1)](sarif:/runs/0/results/2/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): [#def244]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:252:9: warning[-Wanalyzer-null-argument]: use of NULL ‘lvl’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:238:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:241:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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: [#def245]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:349:14: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open(&fname, 2)’
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:341:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:346:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:347:14: acquire_resource: opened here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:348:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:348:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:349:14: danger: ‘open(&fname, 2)’ could be invalid: unchecked value from [(3)](sarif:/runs/0/results/4/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): [#def246]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:379:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:348:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:349:14: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:349:14: acquire_resource: opened here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:351:9: branch_false: following ‘false’ branch (when ‘rc != -1’)...
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:353:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:368:12: branch_false: following ‘false’ branch (when ‘oldenv’ is NULL)...
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:372:17: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:379:16: danger: ‘rc’ leaks here; was opened at [(3)](sarif:/runs/0/results/5/codeFlows/0/threadFlows/0/locations/2)
#  377|   	pw_deinit();
#  378|   
#  379|-> 	return PWTEST_PASS;
#  380|   }
#  381|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def247]
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:413:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:412:14: acquire_memory: this call could return NULL
pipewire-1.4.2/redhat-linux-build/../test/test-logger.c:413:16: danger: argument 3 (‘fopen(&fname, "re")’) from [(1)](sarif:/runs/0/results/6/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-401): [#def248]
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:93:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:70:18: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:93:16: danger: ‘data.a’ leaks here; was allocated at [(1)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/0)
#   91|   	pw_deinit();
#   92|   
#   93|-> 	return PWTEST_PASS;
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def249]
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:93:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:71:18: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:93:16: danger: ‘data.b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
#   91|   	pw_deinit();
#   92|   
#   93|-> 	return PWTEST_PASS;
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def250]
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:221:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:198:18: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:221:16: danger: ‘data.a’ leaks here; was allocated at [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  219|   	pw_deinit();
#  220|   
#  221|-> 	return PWTEST_PASS;
#  222|   }
#  223|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def251]
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:221:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:199:18: acquire_memory: allocated here
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:221:16: danger: ‘data.b’ leaks here; was allocated at [(1)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/0)
#  219|   	pw_deinit();
#  220|   
#  221|-> 	return PWTEST_PASS;
#  222|   }
#  223|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def252]
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:272:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data.source’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:255:1: enter_function: entry to ‘destroy_managed_source_before_dispatch’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:267:23: call_function: inlined call to ‘pw_loop_add_io’ from ‘destroy_managed_source_before_dispatch’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:267:23: call_function: inlined call to ‘pw_loop_add_io’ from ‘destroy_managed_source_before_dispatch’
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:268:9: branch_true: following ‘true’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:268:9: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-loop.c:272:23: release_memory: ‘data.source’ is NULL
pipewire-1.4.2/redhat-linux-build/../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-476): [#def253]
pipewire-1.4.2/redhat-linux-build/../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.4.2/redhat-linux-build/../test/test-spa-buffer.c:68:1: enter_function: entry to ‘buffer_alloc’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-buffer.c:93:19: call_function: calling ‘spa_buffer_alloc_array’ from ‘buffer_alloc’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-buffer.c:93:19: return_function: returning to ‘buffer_alloc’ from ‘spa_buffer_alloc_array’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-buffer.c:99:21: branch_true: following ‘true’ branch (when ‘i != 16’)...
pipewire-1.4.2/redhat-linux-build/../test/test-spa-buffer.c:100:47: branch_true: ...to here
pipewire-1.4.2/redhat-linux-build/../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-131): [#def254]
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:125:28: warning[-Wanalyzer-allocation-size]: allocated buffer size is not a multiple of the pointee's size
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:154:1: enter_function: entry to ‘control_ump_to_midi’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:156:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:156:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:156:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:158:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:158:9: call_function: calling ‘do_ump_to_midi_test’ from ‘control_ump_to_midi’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:158:9: return_function: returning to ‘control_ump_to_midi’ from ‘do_ump_to_midi_test’
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:158:9: branch_false: following ‘false’ branch...
pipewire-1.4.2/redhat-linux-build/../test/test-spa-control.c:161:9: branch_false: ...to here
pipewire-1.4.2/redhat-linux-build/../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|   
#  127|   	u_size = parse_ump(ump, u_data, sizeof(u_data));

Error: CPPCHECK_WARNING (CWE-190): [#def255]
pipewire-1.4.2/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): [#def256]
pipewire-1.4.2/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): [#def257]
pipewire-1.4.2/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): [#def258]
pipewire-1.4.2/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): [#def259]
pipewire-1.4.2/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): [#def260]
pipewire-1.4.2/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): [#def261]
pipewire-1.4.2/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): [#def262]
pipewire-1.4.2/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): [#def263]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def264]
pipewire-1.4.2/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): [#def265]
pipewire-1.4.2/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): [#def266]
pipewire-1.4.2/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): [#def267]
pipewire-1.4.2/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): [#def268]
pipewire-1.4.2/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): [#def269]
pipewire-1.4.2/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): [#def270]
pipewire-1.4.2/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): [#def271]
pipewire-1.4.2/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): [#def272]
pipewire-1.4.2/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): [#def273]
pipewire-1.4.2/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): [#def274]
pipewire-1.4.2/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): [#def275]
pipewire-1.4.2/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): [#def276]
pipewire-1.4.2/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): [#def277]
pipewire-1.4.2/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): [#def278]
pipewire-1.4.2/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): [#def279]
pipewire-1.4.2/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): [#def280]
pipewire-1.4.2/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): [#def281]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def282]
pipewire-1.4.2/spa/include/spa/pod/builder.h:140: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  138|   		res = -ENOSPC;
#  139|   		if (offset <= builder->size)
#  140|-> 			spa_callbacks_call_res(&builder->callbacks,
#  141|   					struct spa_pod_builder_callbacks, res,
#  142|   					overflow, 0, offset + size);

Error: CPPCHECK_WARNING (CWE-476): [#def283]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def284]
pipewire-1.4.2/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): [#def285]
pipewire-1.4.2/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): [#def286]
pipewire-1.4.2/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): [#def287]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def288]
pipewire-1.4.2/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): [#def289]
pipewire-1.4.2/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): [#def290]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def291]
pipewire-1.4.2/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): [#def292]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def293]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def294]
pipewire-1.4.2/spa/include/spa/support/loop.h:140: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  138|   SPA_API_LOOP int spa_loop_add_source(struct spa_loop *object, struct spa_source *source)
#  139|   {
#  140|-> 	return spa_api_method_r(int, -ENOTSUP,
#  141|   			spa_loop, &object->iface, add_source, 0, source);
#  142|   }

Error: CPPCHECK_WARNING (CWE-190): [#def295]
pipewire-1.4.2/spa/include/spa/support/loop.h:145: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  143|   SPA_API_LOOP int spa_loop_update_source(struct spa_loop *object, struct spa_source *source)
#  144|   {
#  145|-> 	return spa_api_method_r(int, -ENOTSUP,
#  146|   			spa_loop, &object->iface, update_source, 0, source);
#  147|   }

Error: CPPCHECK_WARNING (CWE-190): [#def296]
pipewire-1.4.2/spa/include/spa/support/loop.h:150: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  148|   SPA_API_LOOP int spa_loop_remove_source(struct spa_loop *object, struct spa_source *source)
#  149|   {
#  150|-> 	return spa_api_method_r(int, -ENOTSUP,
#  151|   			spa_loop, &object->iface, remove_source, 0, source);
#  152|   }

Error: CPPCHECK_WARNING (CWE-190): [#def297]
pipewire-1.4.2/spa/include/spa/support/loop.h:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   		size_t size, bool block, void *user_data)
#  156|   {
#  157|-> 	return spa_api_method_r(int, -ENOTSUP,
#  158|   			spa_loop, &object->iface, invoke, 0, func, seq, data,
#  159|   			size, block, user_data);

Error: CPPCHECK_WARNING (CWE-190): [#def298]
pipewire-1.4.2/spa/include/spa/support/loop.h:282: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  280|   SPA_API_LOOP int spa_loop_control_get_fd(struct spa_loop_control *object)
#  281|   {
#  282|-> 	return spa_api_method_r(int, -ENOTSUP,
#  283|   			spa_loop_control, &object->iface, get_fd, 0);
#  284|   }

Error: CPPCHECK_WARNING (CWE-190): [#def299]
pipewire-1.4.2/spa/include/spa/support/loop.h:289: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  287|   		void *data)
#  288|   {
#  289|-> 	spa_api_method_v(spa_loop_control, &object->iface, add_hook, 0,
#  290|   			hook, hooks, data);
#  291|   }

Error: CPPCHECK_WARNING (CWE-190): [#def300]
pipewire-1.4.2/spa/include/spa/support/loop.h:294: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  292|   SPA_API_LOOP void spa_loop_control_enter(struct spa_loop_control *object)
#  293|   {
#  294|-> 	spa_api_method_v(spa_loop_control, &object->iface, enter, 0);
#  295|   }
#  296|   SPA_API_LOOP void spa_loop_control_leave(struct spa_loop_control *object)

Error: CPPCHECK_WARNING (CWE-190): [#def301]
pipewire-1.4.2/spa/include/spa/support/loop.h:298: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  296|   SPA_API_LOOP void spa_loop_control_leave(struct spa_loop_control *object)
#  297|   {
#  298|-> 	spa_api_method_v(spa_loop_control, &object->iface, leave, 0);
#  299|   }
#  300|   SPA_API_LOOP int spa_loop_control_iterate(struct spa_loop_control *object,

Error: CPPCHECK_WARNING (CWE-190): [#def302]
pipewire-1.4.2/spa/include/spa/support/loop.h:303: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  301|   		int timeout)
#  302|   {
#  303|-> 	return spa_api_method_r(int, -ENOTSUP,
#  304|   			spa_loop_control, &object->iface, iterate, 0, timeout);
#  305|   }

Error: CPPCHECK_WARNING (CWE-190): [#def303]
pipewire-1.4.2/spa/include/spa/support/loop.h:371: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  369|   		bool close, spa_source_io_func_t func, void *data)
#  370|   {
#  371|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  372|   			spa_loop_utils, &object->iface, add_io, 0, fd, mask, close, func, data);
#  373|   }

Error: CPPCHECK_WARNING (CWE-190): [#def304]
pipewire-1.4.2/spa/include/spa/support/loop.h:377: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  375|   		struct spa_source *source, uint32_t mask)
#  376|   {
#  377|-> 	return spa_api_method_r(int, -ENOTSUP,
#  378|   			spa_loop_utils, &object->iface, update_io, 0, source, mask);
#  379|   }

Error: CPPCHECK_WARNING (CWE-190): [#def305]
pipewire-1.4.2/spa/include/spa/support/loop.h:384: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  382|   		spa_source_idle_func_t func, void *data)
#  383|   {
#  384|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  385|   			spa_loop_utils, &object->iface, add_idle, 0, enabled, func, data);
#  386|   }

Error: CPPCHECK_WARNING (CWE-190): [#def306]
pipewire-1.4.2/spa/include/spa/support/loop.h:390: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  388|   		struct spa_source *source, bool enabled)
#  389|   {
#  390|-> 	return spa_api_method_r(int, -ENOTSUP,
#  391|   			spa_loop_utils, &object->iface, enable_idle, 0, source, enabled);
#  392|   }

Error: CPPCHECK_WARNING (CWE-190): [#def307]
pipewire-1.4.2/spa/include/spa/support/loop.h:396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  394|   spa_loop_utils_add_event(struct spa_loop_utils *object, spa_source_event_func_t func, void *data)
#  395|   {
#  396|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  397|   			spa_loop_utils, &object->iface, add_event, 0, func, data);
#  398|   }

Error: CPPCHECK_WARNING (CWE-190): [#def308]
pipewire-1.4.2/spa/include/spa/support/loop.h:402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  400|   		struct spa_source *source)
#  401|   {
#  402|-> 	return spa_api_method_r(int, -ENOTSUP,
#  403|   			spa_loop_utils, &object->iface, signal_event, 0, source);
#  404|   }

Error: CPPCHECK_WARNING (CWE-190): [#def309]
pipewire-1.4.2/spa/include/spa/support/loop.h:408: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  406|   spa_loop_utils_add_timer(struct spa_loop_utils *object, spa_source_timer_func_t func, void *data)
#  407|   {
#  408|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  409|   			spa_loop_utils, &object->iface, add_timer, 0, func, data);
#  410|   }

Error: CPPCHECK_WARNING (CWE-190): [#def310]
pipewire-1.4.2/spa/include/spa/support/loop.h:415: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  413|   		struct timespec *interval, bool absolute)
#  414|   {
#  415|-> 	return spa_api_method_r(int, -ENOTSUP,
#  416|   			spa_loop_utils, &object->iface, update_timer, 0, source,
#  417|   			value, interval, absolute);

Error: CPPCHECK_WARNING (CWE-190): [#def311]
pipewire-1.4.2/spa/include/spa/support/loop.h:423: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  421|   		spa_source_signal_func_t func, void *data)
#  422|   {
#  423|-> 	return spa_api_method_r(struct spa_source *, NULL,
#  424|   			spa_loop_utils, &object->iface, add_signal, 0,
#  425|   			signal_number, func, data);

Error: CPPCHECK_WARNING (CWE-190): [#def312]
pipewire-1.4.2/spa/include/spa/support/loop.h:430: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  428|   		struct spa_source *source)
#  429|   {
#  430|-> 	spa_api_method_v(spa_loop_utils, &object->iface, destroy_source, 0, source);
#  431|   }
#  432|   

Error: CPPCHECK_WARNING (CWE-190): [#def313]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def314]
pipewire-1.4.2/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): [#def315]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def316]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def317]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def318]
pipewire-1.4.2/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): [#def319]
pipewire-1.4.2/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): [#def320]
pipewire-1.4.2/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): [#def321]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def322]
pipewire-1.4.2/spa/plugins/alsa/acp/acp.c:345: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  343|   
#  344|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  345|-> 	ap->profile_set = ps;
#  346|   	ap->profile.name = ap->name = pa_xstrdup("pro-audio");
#  347|   	ap->profile.description = ap->description = pa_xstrdup(_("Pro Audio"));

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-476): [#def333]
pipewire-1.4.2/spa/plugins/alsa/acp/acp.c:507: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  505|   
#  506|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  507|-> 	ap->profile.name = ap->name = pa_xstrdup("off");
#  508|   	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  509|   	ap->profile.available = ACP_AVAILABLE_YES;

Error: CPPCHECK_WARNING (CWE-476): [#def334]
pipewire-1.4.2/spa/plugins/alsa/acp/acp.c:508: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  506|   	ap = pa_xnew0(pa_alsa_profile, 1);
#  507|   	ap->profile.name = ap->name = pa_xstrdup("off");
#  508|-> 	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  509|   	ap->profile.available = ACP_AVAILABLE_YES;
#  510|   	ap->profile.flags = ACP_PROFILE_OFF;

Error: CPPCHECK_WARNING (CWE-476): [#def335]
pipewire-1.4.2/spa/plugins/alsa/acp/acp.c:509: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  507|   	ap->profile.name = ap->name = pa_xstrdup("off");
#  508|   	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  509|-> 	ap->profile.available = ACP_AVAILABLE_YES;
#  510|   	ap->profile.flags = ACP_PROFILE_OFF;
#  511|   	pa_hashmap_put(impl->profiles, ap->name, ap);

Error: CPPCHECK_WARNING (CWE-476): [#def336]
pipewire-1.4.2/spa/plugins/alsa/acp/acp.c:510: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  508|   	ap->profile.description = ap->description = pa_xstrdup(_("Off"));
#  509|   	ap->profile.available = ACP_AVAILABLE_YES;
#  510|-> 	ap->profile.flags = ACP_PROFILE_OFF;
#  511|   	pa_hashmap_put(impl->profiles, ap->name, ap);
#  512|   

Error: CPPCHECK_WARNING (CWE-476): [#def337]
pipewire-1.4.2/spa/plugins/alsa/acp/acp.c:511: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: ap
#  509|   	ap->profile.available = ACP_AVAILABLE_YES;
#  510|   	ap->profile.flags = ACP_PROFILE_OFF;
#  511|-> 	pa_hashmap_put(impl->profiles, ap->name, ap);
#  512|   
#  513|   	add_pro_profile(impl, impl->card.index);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def383]
pipewire-1.4.2/spa/plugins/alsa/acp/alsa-mixer.c:3591: error[legacyUninitvar]: Uninitialized variable: a_limit
# 3589|                   pa_assert_not_reached();
# 3590|   
# 3591|->             if (a_limit > b->volume_limit)
# 3592|                   return false;
# 3593|           }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def415]
pipewire-1.4.2/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.4.2/spa/plugins/alsa/acp/alsa-ucm.c:1307: note: trimmed 1 message(s) with length over 512

Error: CPPCHECK_WARNING (CWE-457): [#def416]
pipewire-1.4.2/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.4.2/spa/plugins/alsa/acp/alsa-ucm.c:1339: note: trimmed 1 message(s) with length over 512

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-476): [#def461]
pipewire-1.4.2/spa/plugins/alsa/acp/compat.h:593: warning[nullPointer]: Possible null pointer dereference: s
#  591|   {
#  592|       char *e, *l = NULL;
#  593|->     s += strspn(s, PA_WHITESPACE);
#  594|       for (e = s; *e; e++)
#  595|           if (!strchr(PA_WHITESPACE, *e))

Error: CPPCHECK_WARNING (CWE-476): [#def462]
pipewire-1.4.2/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): [#def463]
pipewire-1.4.2/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): [#def464]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def465]
pipewire-1.4.2/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): [#def466]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def467]
pipewire-1.4.2/spa/plugins/alsa/alsa-acp-device.c:854: error[uninitvar]: Uninitialized variable: device
#  852|   			return res;
#  853|   		}
#  854|-> 		if (device >= this->card->n_devices)
#  855|   			return -EINVAL;
#  856|   		if (idx == SPA_ID_INVALID && name == NULL)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def487]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  177|   		goto next;
#  178|   
#  179|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  180|   
#  181|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def488]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:389: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  387|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  388|   
#  389|-> 	spa_node_emit_result(&this->hooks, seq, 0, 0, NULL);
#  390|   
#  391|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def489]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:549: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  547|   		goto next;
#  548|   
#  549|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  550|   
#  551|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def490]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:578: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  576|   			return 0;
#  577|   
#  578|-> 		spa_log_debug(this->log, "clear format");
#  579|   		spa_alsa_close(this);
#  580|   		clear_buffers(this);

Error: CPPCHECK_WARNING (CWE-190): [#def491]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:707: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  705|   	spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
#  706|   
#  707|-> 	spa_log_debug(this->log, "%p: use %d buffers", this, n_buffers);
#  708|   
#  709|   	if (this->n_buffers > 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def492]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:730: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  728|   
#  729|   		if (d[0].data == NULL) {
#  730|-> 			spa_log_error(this->log, "%p: need mapped memory", this);
#  731|   			return -EINVAL;
#  732|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def493]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:733: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  731|   			return -EINVAL;
#  732|   		}
#  733|-> 		spa_log_debug(this->log, "%p: %d %p data:%p", this, i, b->buf, d[0].data);
#  734|   	}
#  735|   	this->n_buffers = n_buffers;

Error: CPPCHECK_WARNING (CWE-190): [#def494]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:753: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  751|   	spa_return_val_if_fail(CHECK_PORT(this, direction, port_id), -EINVAL);
#  752|   
#  753|-> 	spa_log_debug(this->log, "%p: io %d %p %zd", this, id, data, size);
#  754|   
#  755|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def495]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:797: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  795|   
#  796|   		if (!SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_OUT)) {
#  797|-> 			spa_log_warn(this->log, "%p: buffer %u in use",
#  798|   					this, io->buffer_id);
#  799|   			io->status = -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def496]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:889: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  887|   
#  888|   	if (this->main_loop == NULL) {
#  889|-> 		spa_log_error(this->log, "a main loop is needed");
#  890|   		return -EINVAL;
#  891|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def497]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:893: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  891|   	}
#  892|   	if (this->data_loop == NULL) {
#  893|-> 		spa_log_error(this->log, "a data loop is needed");
#  894|   		return -EINVAL;
#  895|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def498]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm-sink.c:897: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  895|   	}
#  896|   	if (this->data_system == NULL) {
#  897|-> 		spa_log_error(this->log, "a data system is needed");
#  898|   		return -EINVAL;
#  899|   	}

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def505]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:550: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  548|   
#  549|   		default:
#  550|-> 			spa_log_warn(state->log, "%s ctl '%s' not supported",
#  551|   					snd_ctl_elem_type_name(snd_ctl_elem_info_get_type(info)),
#  552|   					snd_ctl_elem_info_get_name(info));

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

Error: CPPCHECK_WARNING (CWE-190): [#def507]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:693: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  691|   			continue;
#  692|   
#  693|-> 		spa_log_info(state->log, "key:'%s' val:'%s'", name, value);
#  694|   		alsa_set_param(state, name, value);
#  695|   		changed++;

Error: CPPCHECK_WARNING (CWE-190): [#def508]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:713: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  711|   		len = strcspn(buf, "\n");
#  712|   		if (len > 0)
#  713|-> 			spa_log_debug(state->log, "%.*s", (int)len, buf);
#  714|   		buf += len + 1;
#  715|   		size -= len + 1;

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

Error: CPPCHECK_WARNING (CWE-190): [#def510]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:758: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  756|   
#  757|   	if (!revents) {
#  758|-> 		spa_log_trace(state->log, "Got a bind ctl wakeup but no actual event");
#  759|   		return;
#  760|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def511]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:792: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  790|   			err = snd_ctl_elem_read(state->ctl, state->bound_ctls[i].value);
#  791|   			if (err < 0) {
#  792|-> 				spa_log_warn(state->log, "Could not read ctl '%s': %s",
#  793|   						state->bound_ctls[i].name, snd_strerror(err));
#  794|   				continue;

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

Error: CPPCHECK_WARNING (CWE-190): [#def513]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:815: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  813|   
#  814|   	if (err < 0 && err != -EAGAIN)
#  815|-> 		spa_log_warn(state->log, "Could not read ctl: %s", snd_strerror(err));
#  816|   }
#  817|   

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

Error: CPPCHECK_WARNING (CWE-190): [#def515]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:840: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  838|   	err = snd_ctl_elem_list_alloc_space(element_list, elem_count);
#  839|   	if (SPA_UNLIKELY(err < 0)) {
#  840|-> 		spa_log_error(state->log, "Couldn't allocate elem_list space. Error: %s",
#  841|   			      snd_strerror(err));
#  842|   		return;

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def519]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:889: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  887|   		snd_ctl_elem_value_set_numid(state->bound_ctls[i].value, numid);
#  888|   
#  889|-> 		spa_log_debug(state->log, "Binding ctl for '%s'",
#  890|   			      snd_ctl_elem_info_get_name(state->bound_ctls[i].info));
#  891|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def520]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:903: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  901|   
#  902|   	snprintf(card_name, sizeof(card_name), "hw:%d", state->card_index);
#  903|-> 	spa_log_debug(state->log, "Trying to open ctl device '%s'", card_name);
#  904|   
#  905|   	err = snd_ctl_open(&state->ctl, card_name, SND_CTL_NONBLOCK);

Error: CPPCHECK_WARNING (CWE-190): [#def521]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:907: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  905|   	err = snd_ctl_open(&state->ctl, card_name, SND_CTL_NONBLOCK);
#  906|   	if (err < 0) {
#  907|-> 		spa_log_info(state->log, "%s could not find ctl card: %s",
#  908|   				card_name, snd_strerror(err));
#  909|   		return err;

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def525]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1033: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1031|   	state->log_file = fopencookie(state, "w", io_funcs);
# 1032|   	if (state->log_file == NULL) {
# 1033|-> 		spa_log_error(state->log, "can't create log file");
# 1034|   		return -errno;
# 1035|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def526]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1036: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1034|   		return -errno;
# 1035|   	}
# 1036|-> 	CHECK(snd_output_stdio_attach(&state->output, state->log_file, 0), "attach failed");
# 1037|   
# 1038|   	spa_list_append(&states, &state->link);

Error: CPPCHECK_WARNING (CWE-190): [#def527]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1077: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1075|   
# 1076|   	if ((err = snd_output_close(state->output)) < 0)
# 1077|-> 		spa_log_warn(state->log, "output close failed: %s", snd_strerror(err));
# 1078|   	fclose(state->log_file);
# 1079|   

Error: CPPCHECK_WARNING (CWE-190): [#def528]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1136: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1134|   	err = snd_ctl_elem_read(state->ctl, state->pitch_elem);
# 1135|   	if (err < 0) {
# 1136|-> 		spa_log_debug(state->log, "%s: did not find ctl: %s",
# 1137|   				 elem_name, snd_strerror(err));
# 1138|   

Error: CPPCHECK_WARNING (CWE-190): [#def529]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1149|   
# 1150|   	snd_ctl_elem_value_set_integer(state->pitch_elem, 0, 1000000);
# 1151|-> 	CHECK(snd_ctl_elem_write(state->ctl, state->pitch_elem), "snd_ctl_elem_write");
# 1152|   	state->last_rate = 1.0;
# 1153|   

Error: CPPCHECK_WARNING (CWE-190): [#def530]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1154: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1152|   	state->last_rate = 1.0;
# 1153|   
# 1154|-> 	spa_log_info(state->log, "found ctl %s", elem_name);
# 1155|   	err = 0;
# 1156|   error:

Error: CPPCHECK_WARNING (CWE-190): [#def531]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1177: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1175|   		state->linked = true;
# 1176|   
# 1177|-> 	spa_log_info(state->log, "%p: linked to driver %p: %u (%s)",
# 1178|   			state, driver, state->linked, snd_strerror(res));
# 1179|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def532]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1195: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1193|   			props->device, state->stream == SND_PCM_STREAM_CAPTURE ? "c" : "p");
# 1194|   
# 1195|-> 	spa_log_info(state->log, "%p: ALSA device open '%s' %s", state, device_name,
# 1196|   			state->stream == SND_PCM_STREAM_CAPTURE ? "capture" : "playback");
# 1197|   	CHECK(snd_pcm_open(&state->hndl,

Error: CPPCHECK_WARNING (CWE-190): [#def533]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1197: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1195|   	spa_log_info(state->log, "%p: ALSA device open '%s' %s", state, device_name,
# 1196|   			state->stream == SND_PCM_STREAM_CAPTURE ? "capture" : "playback");
# 1197|-> 	CHECK(snd_pcm_open(&state->hndl,
# 1198|   			   device_name,
# 1199|   			   state->stream,

Error: CPPCHECK_WARNING (CWE-190): [#def534]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1226: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1224|   
# 1225|   error_exit_close:
# 1226|-> 	spa_log_info(state->log, "%p: Device '%s' closing: %s", state, state->name,
# 1227|   			spa_strerror(err));
# 1228|   	snd_pcm_close(state->hndl);

Error: CPPCHECK_WARNING (CWE-190): [#def535]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1238: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1236|   	if (state->driver != NULL && state->linked) {
# 1237|   		snd_pcm_unlink(state->hndl);
# 1238|-> 		spa_log_info(state->log, "%p: unlinked from driver %p",
# 1239|   				state, state->driver);
# 1240|   		state->linked = false;

Error: CPPCHECK_WARNING (CWE-190): [#def536]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1245: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1243|   		if (follower->opened && follower->linked) {
# 1244|   			snd_pcm_unlink(follower->hndl);
# 1245|-> 			spa_log_info(state->log, "%p: follower unlinked from driver %p",
# 1246|   				follower, state);
# 1247|   			follower->linked = false;

Error: CPPCHECK_WARNING (CWE-190): [#def537]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1263: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1261|   	spa_alsa_pause(state);
# 1262|   
# 1263|-> 	spa_log_info(state->log, "%p: Device '%s' closing", state, state->name);
# 1264|   	if ((err = snd_pcm_close(state->hndl)) < 0)
# 1265|   		spa_log_warn(state->log, "%s: close failed: %s", state->name,

Error: CPPCHECK_WARNING (CWE-190): [#def538]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1265: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1263|   	spa_log_info(state->log, "%p: Device '%s' closing", state, state->name);
# 1264|   	if ((err = snd_pcm_close(state->hndl)) < 0)
# 1265|-> 		spa_log_warn(state->log, "%s: close failed: %s", state->name,
# 1266|   				snd_strerror(err));
# 1267|   

Error: CPPCHECK_WARNING (CWE-190): [#def539]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1482: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1480|   	uint32_t rate;
# 1481|   
# 1482|-> 	CHECK(snd_pcm_hw_params_get_rate_min(params, &min, &dir), "get_rate_min");
# 1483|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &max, &dir), "get_rate_max");
# 1484|   

Error: CPPCHECK_WARNING (CWE-190): [#def540]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1483: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1481|   
# 1482|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &min, &dir), "get_rate_min");
# 1483|-> 	CHECK(snd_pcm_hw_params_get_rate_max(params, &max, &dir), "get_rate_max");
# 1484|   
# 1485|   	spa_log_debug(state->log, "min:%u max:%u min-allowed:%u scale:%u interleave:%u all:%d",

Error: CPPCHECK_WARNING (CWE-190): [#def541]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1485: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1483|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &max, &dir), "get_rate_max");
# 1484|   
# 1485|-> 	spa_log_debug(state->log, "min:%u max:%u min-allowed:%u scale:%u interleave:%u all:%d",
# 1486|   			min, max, min_allowed_rate, scale, interleave, all);
# 1487|   

Error: CPPCHECK_WARNING (CWE-190): [#def542]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1509: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1507|   	rate = SPA_CLAMP(rate, min, max);
# 1508|   
# 1509|-> 	spa_log_debug(state->log, "rate:%u multi:%d card:%u def:%d",
# 1510|   			rate, state->multi_rate, state->card ? state->card->rate : 0, state->default_rate);
# 1511|   

Error: CPPCHECK_WARNING (CWE-190): [#def543]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1561: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1559|   	unsigned int min, max;
# 1560|   
# 1561|-> 	CHECK(snd_pcm_hw_params_get_channels_min(params, &min), "get_channels_min");
# 1562|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &max), "get_channels_max");
# 1563|   	spa_log_debug(state->log, "channels (%d %d) default:%d all:%d",

Error: CPPCHECK_WARNING (CWE-190): [#def544]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1562: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1560|   
# 1561|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &min), "get_channels_min");
# 1562|-> 	CHECK(snd_pcm_hw_params_get_channels_max(params, &max), "get_channels_max");
# 1563|   	spa_log_debug(state->log, "channels (%d %d) default:%d all:%d",
# 1564|   			min, max, state->default_channels, all);

Error: CPPCHECK_WARNING (CWE-190): [#def545]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1563: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1561|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &min), "get_channels_min");
# 1562|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &max), "get_channels_max");
# 1563|-> 	spa_log_debug(state->log, "channels (%d %d) default:%d all:%d",
# 1564|   			min, max, state->default_channels, all);
# 1565|   

Error: CPPCHECK_WARNING (CWE-190): [#def546]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1588: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1586|   		map = &maps[index]->map;
# 1587|   
# 1588|-> 		spa_log_debug(state->log, "map %d channels (%d %d)", map->channels, min, max);
# 1589|   
# 1590|   		if (map->channels < min || map->channels > max) {

Error: CPPCHECK_WARNING (CWE-190): [#def547]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1595: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1593|   		}
# 1594|   
# 1595|-> 		spa_log_debug(state->log, "%p: using chmap", state);
# 1596|   
# 1597|   		sanitize_map(map);

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

Error: CPPCHECK_WARNING (CWE-190): [#def549]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1631: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1629|   			if (state->default_pos.channels == min) {
# 1630|   				map = &state->default_pos;
# 1631|-> 				spa_log_debug(state->log, "%p: using provided default", state);
# 1632|   			} else if (min <= 8) {
# 1633|   				map = &default_map[min];

Error: CPPCHECK_WARNING (CWE-190): [#def550]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1634: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1632|   			} else if (min <= 8) {
# 1633|   				map = &default_map[min];
# 1634|-> 				spa_log_debug(state->log, "%p: using default %d channel map", state, min);
# 1635|   			}
# 1636|   		}

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

Error: CPPCHECK_WARNING (CWE-190): [#def552]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1653: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1651|   {
# 1652|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_DEBUG))) {
# 1653|-> 		spa_log_debug(state->log, "%s:", prefix);
# 1654|   		snd_pcm_hw_params_dump(params, state->output);
# 1655|   		fflush(state->log_file);

Error: CPPCHECK_WARNING (CWE-190): [#def553]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1673: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1671|   	hndl = state->hndl;
# 1672|   	snd_pcm_hw_params_alloca(&params);
# 1673|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration: no configurations available");
# 1674|   
# 1675|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def554]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1677: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1675|   	debug_hw_params(state, __func__, params);
# 1676|   
# 1677|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 1678|   
# 1679|   	if (state->default_channels != 0) {

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

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def559]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1753: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1751|   			}
# 1752|   		}
# 1753|-> 		spa_log_warn(state->log, "%s: no format found (def:%d) formats:%s",
# 1754|   				state->name, state->default_format, buf);
# 1755|   

Error: CPPCHECK_WARNING (CWE-190): [#def560]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1765: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1763|   			}
# 1764|   		}
# 1765|-> 		spa_log_warn(state->log, "%s: access:%s", state->name, buf);
# 1766|   		return -ENOTSUP;
# 1767|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def561]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1824: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1822|   	hndl = state->hndl;
# 1823|   	snd_pcm_hw_params_alloca(&params);
# 1824|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration: no configurations available");
# 1825|   
# 1826|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def562]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1828: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1826|   	debug_hw_params(state, __func__, params);
# 1827|   
# 1828|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 1829|   
# 1830|   	spa_pod_builder_push_object(b, &f[0], SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat);

Error: CPPCHECK_WARNING (CWE-190): [#def563]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1836: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1834|   			0);
# 1835|   
# 1836|-> 	CHECK(snd_pcm_hw_params_get_channels_min(params, &chmin), "get_channels_min");
# 1837|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &chmax), "get_channels_max");
# 1838|   	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);

Error: CPPCHECK_WARNING (CWE-190): [#def564]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1837: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1835|   
# 1836|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &chmin), "get_channels_min");
# 1837|-> 	CHECK(snd_pcm_hw_params_get_channels_max(params, &chmax), "get_channels_max");
# 1838|   	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);
# 1839|   

Error: CPPCHECK_WARNING (CWE-190): [#def565]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1838: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1836|   	CHECK(snd_pcm_hw_params_get_channels_min(params, &chmin), "get_channels_min");
# 1837|   	CHECK(snd_pcm_hw_params_get_channels_max(params, &chmax), "get_channels_max");
# 1838|-> 	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);
# 1839|   
# 1840|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");

Error: CPPCHECK_WARNING (CWE-190): [#def566]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1840: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1838|   	spa_log_debug(state->log, "channels (%d %d)", chmin, chmax);
# 1839|   
# 1840|-> 	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");
# 1841|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &rmax, &dir), "get_rate_max");
# 1842|   	spa_log_debug(state->log, "rate (%d %d)", rmin, rmax);

Error: CPPCHECK_WARNING (CWE-190): [#def567]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1841: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1839|   
# 1840|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");
# 1841|-> 	CHECK(snd_pcm_hw_params_get_rate_max(params, &rmax, &dir), "get_rate_max");
# 1842|   	spa_log_debug(state->log, "rate (%d %d)", rmin, rmax);
# 1843|   

Error: CPPCHECK_WARNING (CWE-190): [#def568]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1842: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1840|   	CHECK(snd_pcm_hw_params_get_rate_min(params, &rmin, &dir), "get_rate_min");
# 1841|   	CHECK(snd_pcm_hw_params_get_rate_max(params, &rmax, &dir), "get_rate_max");
# 1842|-> 	spa_log_debug(state->log, "rate (%d %d)", rmin, rmax);
# 1843|   
# 1844|   	if (state->default_rate != 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def569]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1887: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1885|   	hndl = state->hndl;
# 1886|   	snd_pcm_hw_params_alloca(&params);
# 1887|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration: no configurations available");
# 1888|   
# 1889|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def570]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1907: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1905|   		return 0;
# 1906|   
# 1907|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 1908|   
# 1909|   	spa_pod_builder_push_object(b, &f[0], SPA_TYPE_OBJECT_Format, SPA_PARAM_EnumFormat);

Error: CPPCHECK_WARNING (CWE-190): [#def571]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:1962: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1960|   	uint32_t count = 0;
# 1961|   
# 1962|-> 	spa_log_debug(state->log, "opened:%d format:%d started:%d", state->opened,
# 1963|   			state->have_format, state->started);
# 1964|   

Error: CPPCHECK_WARNING (CWE-190): [#def572]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2003: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2001|   		goto next;
# 2002|   
# 2003|-> 	spa_node_emit_result(&state->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 2004|   
# 2005|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def573]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2063: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2061|   	uint32_t default_period;
# 2062|   
# 2063|-> 	spa_log_debug(state->log, "opened:%d format:%d started:%d", state->opened,
# 2064|   			state->have_format, state->started);
# 2065|   

Error: CPPCHECK_WARNING (CWE-190): [#def574]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2083: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2081|   		unsigned aes3;
# 2082|   
# 2083|-> 		spa_log_info(state->log, "using IEC958 Codec:%s rate:%d",
# 2084|   				spa_type_audio_iec958_codec_to_short_name(f->codec),
# 2085|   				f->rate);

Error: CPPCHECK_WARNING (CWE-190): [#def575]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2175: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2173|   
# 2174|   	if (rformat == SND_PCM_FORMAT_UNKNOWN) {
# 2175|-> 		spa_log_warn(state->log, "%s: unknown format",
# 2176|   				state->name);
# 2177|   		return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def576]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2189: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2187|   	snd_pcm_hw_params_alloca(&params);
# 2188|   	/* choose all parameters */
# 2189|-> 	CHECK(snd_pcm_hw_params_any(hndl, params), "Broken configuration for playback: no configurations available");
# 2190|   
# 2191|   	debug_hw_params(state, __func__, params);

Error: CPPCHECK_WARNING (CWE-190): [#def577]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2194: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2192|   
# 2193|   	/* set hardware resampling, no resample */
# 2194|-> 	CHECK(snd_pcm_hw_params_set_rate_resample(hndl, params, 0), "set_rate_resample");
# 2195|   
# 2196|   	/* set the interleaved/planar read/write format */

Error: CPPCHECK_WARNING (CWE-190): [#def578]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2204: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2202|   					planar ? SND_PCM_ACCESS_MMAP_NONINTERLEAVED
# 2203|   					: SND_PCM_ACCESS_MMAP_INTERLEAVED)) < 0) {
# 2204|-> 			spa_log_debug(state->log, "%p: MMAP not possible: %s", state,
# 2205|   					snd_strerror(err));
# 2206|   			state->use_mmap = false;

Error: CPPCHECK_WARNING (CWE-190): [#def579]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2213: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2211|   				planar ? SND_PCM_ACCESS_RW_NONINTERLEAVED
# 2212|   				: SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) {
# 2213|-> 			spa_log_error(state->log, "%s: RW not possible: %s",
# 2214|   					state->name, snd_strerror(err));
# 2215|   			return err;

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

Error: CPPCHECK_WARNING (CWE-190): [#def581]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2224: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2222|   			state->use_mmap ? "mmap" : "rw",
# 2223|   			planar ? "planar" : "interleaved", rchannels);
# 2224|-> 	CHECK(snd_pcm_hw_params_set_format(hndl, params, rformat), "set_format");
# 2225|   
# 2226|   	/* set the count of channels */

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def584]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2245: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2243|   	    state->card->format_ref > 0 &&
# 2244|   	    state->card->rate != rrate) {
# 2245|-> 		spa_log_error(state->log, "%p: card already opened at rate:%i",
# 2246|   				state, state->card->rate);
# 2247|   		return -EINVAL;

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def587]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2265: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2263|   	}
# 2264|   	if (rchannels == 0 || rrate == 0) {
# 2265|-> 		spa_log_error(state->log, "%s: invalid channels:%d or rate:%d",
# 2266|   				state->name, rchannels, rrate);
# 2267|   		return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def588]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2315: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2313|   			/* disable ALSA wakeups */
# 2314|   			if (snd_pcm_hw_params_can_disable_period_wakeup(params))
# 2315|-> 				CHECK(snd_pcm_hw_params_set_period_wakeup(hndl, params, 0), "set_period_wakeup");
# 2316|   		}
# 2317|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def589]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2319: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2317|   	}
# 2318|   
# 2319|-> 	CHECK(snd_pcm_hw_params_set_period_size_near(hndl, params, &period_size, &dir), "set_period_size_near");
# 2320|   
# 2321|   	if (period_size == 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def590]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2322: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2320|   
# 2321|   	if (period_size == 0) {
# 2322|-> 		spa_log_error(state->log, "%s: invalid period_size 0 (driver error?)", state->name);
# 2323|   		return -EIO;
# 2324|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def591]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2330: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2328|   	if (state->default_period_num != 0) {
# 2329|   		periods = state->default_period_num;
# 2330|-> 		CHECK(snd_pcm_hw_params_set_periods_near(hndl, params, &periods, &dir), "set_periods");
# 2331|   		state->buffer_frames = period_size * periods;
# 2332|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def592]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2333: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2331|   		state->buffer_frames = period_size * periods;
# 2332|   	} else {
# 2333|-> 		CHECK(snd_pcm_hw_params_get_buffer_size_max(params, &state->buffer_frames), "get_buffer_size_max");
# 2334|   
# 2335|   		state->buffer_frames = SPA_MIN(state->buffer_frames, state->quantum_limit * 4 * state->frame_scale);

Error: CPPCHECK_WARNING (CWE-190): [#def593]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2337: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2335|   		state->buffer_frames = SPA_MIN(state->buffer_frames, state->quantum_limit * 4 * state->frame_scale);
# 2336|   
# 2337|-> 		CHECK(snd_pcm_hw_params_set_buffer_size_min(hndl, params, &state->buffer_frames), "set_buffer_size_min");
# 2338|   		CHECK(snd_pcm_hw_params_set_buffer_size_near(hndl, params, &state->buffer_frames), "set_buffer_size_near");
# 2339|   		periods = state->buffer_frames / period_size;

Error: CPPCHECK_WARNING (CWE-190): [#def594]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2338: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2336|   
# 2337|   		CHECK(snd_pcm_hw_params_set_buffer_size_min(hndl, params, &state->buffer_frames), "set_buffer_size_min");
# 2338|-> 		CHECK(snd_pcm_hw_params_set_buffer_size_near(hndl, params, &state->buffer_frames), "set_buffer_size_near");
# 2339|   		periods = state->buffer_frames / period_size;
# 2340|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def595]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2342: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2340|   	}
# 2341|   	if (state->buffer_frames == 0) {
# 2342|-> 		spa_log_error(state->log, "%s: invalid buffer_frames 0 (driver error?)", state->name);
# 2343|   		return -EIO;
# 2344|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def596]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2359: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2357|   	recalc_headroom(state);
# 2358|   
# 2359|-> 	spa_log_info(state->log, "%s: format:%s access:%s-%s rate:%d channels:%d "
# 2360|   			"buffer frames %lu, period frames %lu, periods %u, frame_size %zd "
# 2361|   			"headroom %u start-delay:%u batch:%u tsched:%u",

Error: CPPCHECK_WARNING (CWE-190): [#def597]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2370: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2368|   
# 2369|   	/* write the parameters to device */
# 2370|-> 	CHECK(snd_pcm_hw_params(hndl, params), "set_hw_params");
# 2371|   
# 2372|   	return match ? 0 : 1;

Error: CPPCHECK_WARNING (CWE-190): [#def598]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2400|   
# 2401|   	snd_ctl_elem_value_set_integer(state->pitch_elem, 0, pitch);
# 2402|-> 	CHECK(snd_ctl_elem_write(state->ctl, state->pitch_elem), "snd_ctl_elem_write");
# 2403|   
# 2404|   	spa_log_trace_fp(state->log, "%s %u set rate to %g",

Error: CPPCHECK_WARNING (CWE-190): [#def599]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2421: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2419|   
# 2420|   	/* get the current params */
# 2421|-> 	CHECK(snd_pcm_sw_params_current(hndl, params), "sw_params_current");
# 2422|   
# 2423|   	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE),

Error: CPPCHECK_WARNING (CWE-190): [#def600]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2423: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2421|   	CHECK(snd_pcm_sw_params_current(hndl, params), "sw_params_current");
# 2422|   
# 2423|-> 	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE),
# 2424|   			"sw_params_set_tstamp_mode");
# 2425|   	CHECK(snd_pcm_sw_params_set_tstamp_type(hndl, params, SND_PCM_TSTAMP_TYPE_MONOTONIC),

Error: CPPCHECK_WARNING (CWE-190): [#def601]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2425: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2423|   	CHECK(snd_pcm_sw_params_set_tstamp_mode(hndl, params, SND_PCM_TSTAMP_ENABLE),
# 2424|   			"sw_params_set_tstamp_mode");
# 2425|-> 	CHECK(snd_pcm_sw_params_set_tstamp_type(hndl, params, SND_PCM_TSTAMP_TYPE_MONOTONIC),
# 2426|   			"sw_params_set_tstamp_type");
# 2427|   #if 0

Error: CPPCHECK_WARNING (CWE-190): [#def602]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2435: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2433|   
# 2434|   	/* start the transfer */
# 2435|-> 	CHECK(snd_pcm_sw_params_set_start_threshold(hndl, params, LONG_MAX), "set_start_threshold");
# 2436|   
# 2437|   	if (state->disable_tsched) {

Error: CPPCHECK_WARNING (CWE-190): [#def603]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2449: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2447|   		}
# 2448|   
# 2449|-> 		CHECK(snd_pcm_sw_params_set_avail_min(hndl, params, avail_min), "set_avail_min");
# 2450|   	}
# 2451|   

Error: CPPCHECK_WARNING (CWE-190): [#def604]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2453: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2451|   
# 2452|   	/* write the parameters to the playback device */
# 2453|-> 	CHECK(snd_pcm_sw_params(hndl, params), "sw_params");
# 2454|   
# 2455|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_DEBUG))) {

Error: CPPCHECK_WARNING (CWE-190): [#def605]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2456: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2454|   
# 2455|   	if (SPA_UNLIKELY(spa_log_level_topic_enabled(state->log, SPA_LOG_TOPIC_DEFAULT, SPA_LOG_LEVEL_DEBUG))) {
# 2456|-> 		spa_log_debug(state->log, "state after sw_params:");
# 2457|   		snd_pcm_dump(hndl, state->output);
# 2458|   		fflush(state->log_file);

Error: CPPCHECK_WARNING (CWE-190): [#def606]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2487: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2485|   
# 2486|   		if (SPA_UNLIKELY((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &frames)) < 0)) {
# 2487|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 2488|   					state->name, snd_strerror(res));
# 2489|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def607]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2498: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2496|   
# 2497|   		if (SPA_UNLIKELY((res = snd_pcm_mmap_commit(hndl, offset, silence)) < 0)) {
# 2498|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 2499|   					state->name, snd_strerror(res));
# 2500|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def608]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2545: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2543|   	state->last_threshold = state->threshold;
# 2544|   
# 2545|-> 	spa_log_debug(state->log, "%p: start threshold:%d duration:%d rate:%d follower:%d match:%d resample:%d",
# 2546|   			state, state->threshold, state->driver_duration, state->driver_rate.denom,
# 2547|   			state->following, state->matching, state->resample);

Error: CPPCHECK_WARNING (CWE-190): [#def609]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2549: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2547|   			state->following, state->matching, state->resample);
# 2548|   
# 2549|-> 	CHECK(set_swparams(state), "swparams");
# 2550|   
# 2551|   	if ((!state->linked) && (err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) {

Error: CPPCHECK_WARNING (CWE-190): [#def610]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2552: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2550|   
# 2551|   	if ((!state->linked) && (err = snd_pcm_prepare(state->hndl)) < 0 && err != -EBUSY) {
# 2552|-> 		spa_log_error(state->log, "%s: snd_pcm_prepare error: %s",
# 2553|   				state->name, snd_strerror(err));
# 2554|   		return err;

Error: CPPCHECK_WARNING (CWE-190): [#def611]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2574: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2572|   {
# 2573|   	int res;
# 2574|-> 	spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
# 2575|   	if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
# 2576|   		spa_log_error(state->log, "%s: snd_pcm_drop: %s",

Error: CPPCHECK_WARNING (CWE-190): [#def612]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2574|   	spa_log_debug(state->log, "%p: snd_pcm_drop linked:%u", state, state->linked);
# 2575|   	if (!state->linked && (res = snd_pcm_drop(state->hndl)) < 0) {
# 2576|-> 		spa_log_error(state->log, "%s: snd_pcm_drop: %s",
# 2577|   				state->name, snd_strerror(res));
# 2578|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def613]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2587: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2585|   	int res;
# 2586|   	if (SPA_UNLIKELY(!state->alsa_started)) {
# 2587|-> 		spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
# 2588|   		if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
# 2589|   			spa_log_error(state->log, "%s: snd_pcm_start: %s",

Error: CPPCHECK_WARNING (CWE-190): [#def614]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2589: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2587|   		spa_log_debug(state->log, "%p: snd_pcm_start linked:%u", state, state->linked);
# 2588|   		if (!state->linked && (res = snd_pcm_start(state->hndl)) < 0) {
# 2589|-> 			spa_log_error(state->log, "%s: snd_pcm_start: %s",
# 2590|   					state->name, snd_strerror(res));
# 2591|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def615]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2608: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2606|   	snd_pcm_status_alloca(&status);
# 2607|   	if (SPA_UNLIKELY((res = snd_pcm_status(state->hndl, status)) < 0)) {
# 2608|-> 		spa_log_error(state->log, "%s: snd_pcm_status error: %s",
# 2609|   				state->name, snd_strerror(res));
# 2610|   		goto recover;

Error: CPPCHECK_WARNING (CWE-190): [#def616]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2628: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2626|   		missing += state->start_delay + state->threshold + state->headroom;
# 2627|   
# 2628|-> 		spa_log_trace(state->log, "%p: xrun of %"PRIu64" usec %"PRIu64,
# 2629|   				state, delay, missing);
# 2630|   

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

Error: CPPCHECK_WARNING (CWE-190): [#def618]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2650: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2648|   		break;
# 2649|   	default:
# 2650|-> 		spa_log_error(state->log, "%s: recover from error state %s",
# 2651|   				state->name, snd_pcm_state_name(st));
# 2652|   		break;

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def621]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2738: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2736|   			} else if (state->htimestamp_max_errors) {
# 2737|   				if (++state->htimestamp_error > state->htimestamp_max_errors) {
# 2738|-> 					spa_log_error(state->log, "%s: wrong htimestamps from driver, disabling",
# 2739|   						state->name);
# 2740|   					state->htimestamp_error = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def622]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2744: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2742|   				}
# 2743|   				else if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 2744|-> 					spa_log_warn(state->log, "%s: (%d suppressed) impossible htimestamp diff:%"PRIi64,
# 2745|   						state->name, suppressed, diff);
# 2746|   				}

Error: CPPCHECK_WARNING (CWE-190): [#def623]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2809: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2807|   	if (SPA_UNLIKELY(diff != 0)) {
# 2808|   		err -= diff;
# 2809|-> 		spa_log_trace(state->log, "%p: follower:%d quantum change %d -> %d (%d) %f",
# 2810|   				state, follower, state->last_threshold, state->threshold, diff, err);
# 2811|   		state->last_threshold = state->threshold;

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

Error: CPPCHECK_WARNING (CWE-190): [#def625]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2895: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2893|   		return -ENOTSUP;
# 2894|   
# 2895|-> 	spa_log_debug(state->log, "driver clock:'%s' our clock:'%s'",
# 2896|   			state->position->clock.name, state->clock_name);
# 2897|   

Error: CPPCHECK_WARNING (CWE-190): [#def626]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:2905: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2903|   	recalc_headroom(state);
# 2904|   
# 2905|-> 	spa_log_info(state->log, "driver clock:'%s'@%d our clock:'%s'@%d matching:%d resample:%d",
# 2906|   			state->position->clock.name, state->driver_rate.denom,
# 2907|   			state->clock_name, state->rate,

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def630]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3005: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3003|   				lev = SPA_LOG_LEVEL_DEBUG;
# 3004|   
# 3005|-> 			spa_log_lev(state->log, lev, "%s: follower avail:%lu delay:%ld "
# 3006|   					"target:%ld thr:%u, resync (%d suppressed)",
# 3007|   					state->name, avail, delay,

Error: CPPCHECK_WARNING (CWE-190): [#def631]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3037: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3035|   	if (state->use_mmap && frames > 0) {
# 3036|   		if (SPA_UNLIKELY((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &frames)) < 0)) {
# 3037|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 3038|   					state->name, snd_strerror(res));
# 3039|   			alsa_recover(state);

Error: CPPCHECK_WARNING (CWE-190): [#def632]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3111: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3109|   		if (SPA_UNLIKELY((commitres = snd_pcm_mmap_commit(hndl, offset, written)) < 0)) {
# 3110|   			if (commitres == -EPIPE || commitres == -ESTRPIPE) {
# 3111|-> 				spa_log_warn(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 3112|   						state->name, snd_strerror(commitres));
# 3113|   			} else {

Error: CPPCHECK_WARNING (CWE-190): [#def633]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3114: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3112|   						state->name, snd_strerror(commitres));
# 3113|   			} else {
# 3114|-> 				spa_log_error(state->log, "%s: snd_pcm_mmap_commit error: %s",
# 3115|   						state->name, snd_strerror(commitres));
# 3116|   				return res;

Error: CPPCHECK_WARNING (CWE-190): [#def634]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3120: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3118|   		}
# 3119|   		if (commitres > 0 && written != (snd_pcm_uframes_t) commitres) {
# 3120|-> 			spa_log_warn(state->log, "%s: mmap_commit wrote %ld instead of %ld",
# 3121|   				     state->name, commitres, written);
# 3122|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def635]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3167: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3165|   
# 3166|   	if (spa_list_is_empty(&state->free)) {
# 3167|-> 		spa_log_warn(state->log, "%s: no more buffers", state->name);
# 3168|   		total_frames = frames;
# 3169|   	} else {

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def638]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3271: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3269|   				lev = SPA_LOG_LEVEL_DEBUG;
# 3270|   
# 3271|-> 			spa_log_lev(state->log, lev, "%s: follower delay:%ld target:%ld thr:%u "
# 3272|   					"resample:%d, resync (%d suppressed)", state->name, delay,
# 3273|   					target, state->threshold, state->resample, suppressed);

Error: CPPCHECK_WARNING (CWE-190): [#def639]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3307: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3305|   		avail = state->buffer_frames;
# 3306|   		if ((res = snd_pcm_mmap_begin(hndl, &my_areas, &offset, &avail)) < 0) {
# 3307|-> 			spa_log_error(state->log, "%s: snd_pcm_mmap_begin error: %s",
# 3308|   					state->name, snd_strerror(res));
# 3309|   			alsa_recover(state);

Error: CPPCHECK_WARNING (CWE-190): [#def640]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3339: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3337|   				lev = SPA_LOG_LEVEL_INFO;
# 3338|   
# 3339|-> 			spa_log_lev(state->log, lev, "%s: snd_pcm_mmap_commit error %lu %lu %lu: %s",
# 3340|   					state->name, frames, avail, read, snd_strerror(commitres));
# 3341|   			if (commitres != -EPIPE && commitres != -ESTRPIPE)

Error: CPPCHECK_WARNING (CWE-190): [#def641]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3345: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3343|   		}
# 3344|   		if (commitres > 0 && read != (snd_pcm_uframes_t) commitres) {
# 3345|-> 			spa_log_warn(state->log, "%s: mmap_commit read %ld instead of %ld",
# 3346|   				     state->name, commitres, read);
# 3347|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def642]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3371: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3369|   
# 3370|   	if (SPA_UNLIKELY(spa_list_is_empty(&state->free))) {
# 3371|-> 		spa_log_warn(state->log, "%s: no more buffers", state->name);
# 3372|   		return -EPIPE;
# 3373|   	}

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def645]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3559: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3557|   	    current_time > state->next_time + SPA_NSEC_PER_SEC) {
# 3558|   		if ((suppressed = spa_ratelimit_test(&state->rate_limit, current_time)) >= 0) {
# 3559|-> 			spa_log_error(state->log, "%s: impossible timeout %"
# 3560|   				PRIu64" %"PRIu64" %"PRIi64" %d %"PRIi64" (%d suppressed)",
# 3561|   				state->name, current_time, state->next_time,

Error: CPPCHECK_WARNING (CWE-190): [#def646]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3607: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3605|   				spa_list_append(&state->driver->rt.followers, &rt->driver_link);
# 3606|   			rt->driver = state->driver;
# 3607|-> 			spa_log_debug(state->log, "state:%p -> driver:%p", state, state->driver);
# 3608|   
# 3609|   			if(state->linked && state->matching)

Error: CPPCHECK_WARNING (CWE-190): [#def647]
pipewire-1.4.2/spa/plugins/alsa/alsa-pcm.c:3646: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3644|   
# 3645|   	if (check_position_config(state, true) < 0) {
# 3646|-> 		spa_log_error(state->log, "%s: invalid position config", state->name);
# 3647|   		return -EIO;
# 3648|   	}

Error: CPPCHECK_WARNING (CWE-457): [#def648]
pipewire-1.4.2/spa/plugins/alsa/alsa-seq-bridge.c:651: error[uninitvar]: Uninitialized variable: types
#  649|   				SPA_FORMAT_CONTROL_types,  SPA_POD_Int(&types))) < 0)
#  650|   			return err;
#  651|-> 		if (types != 1u << SPA_CONTROL_UMP)
#  652|   			return -EINVAL;
#  653|   

Error: CPPCHECK_WARNING (CWE-190): [#def649]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:211: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  209|   	result.index = result.next;
#  210|   
#  211|-> 	spa_log_debug(this->log, "%p: %d id:%u", this, seq, id);
#  212|   
#  213|   	spa_pod_builder_reset(&b.b, &state);

Error: CPPCHECK_WARNING (CWE-190): [#def650]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:262: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  260|   		return res;
#  261|   
#  262|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  263|   	count++;
#  264|   

Error: CPPCHECK_WARNING (CWE-190): [#def651]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  275|   	size_t rate_match_size;
#  276|   
#  277|-> 	spa_log_debug(this->log, "%p: controls", this);
#  278|   
#  279|   	spa_zero(this->io_rate_match);

Error: CPPCHECK_WARNING (CWE-190): [#def652]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:294: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  292|   			SPA_IO_RateMatch,
#  293|   			rate_match, rate_match_size)) < 0) {
#  294|-> 		spa_log_debug(this->log, "%p: set RateMatch on follower disabled %d %s", this,
#  295|   			res, spa_strerror(res));
#  296|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def653]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  300|   				SPA_IO_RateMatch,
#  301|   				rate_match, rate_match_size)) < 0) {
#  302|-> 			spa_log_warn(this->log, "%p: set RateMatch on target failed %d %s", this,
#  303|   				res, spa_strerror(res));
#  304|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def654]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:324: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  322|   			this->direction, 0,
#  323|   			SPA_IO_Buffers, data, size)) < 0) {
#  324|-> 		spa_log_warn(this->log, "%p: set Buffers on follower failed %d %s", this,
#  325|   			res, spa_strerror(res));
#  326|   		return res;

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

Error: CPPCHECK_WARNING (CWE-190): [#def656]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:343: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  341|   	uint64_t old = full ? this->info.change_mask : 0;
#  342|   
#  343|-> 	spa_log_debug(this->log, "%p: info full:%d change:%08"PRIx64,
#  344|   			this, full, this->info.change_mask);
#  345|   

Error: CPPCHECK_WARNING (CWE-190): [#def657]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  364|   					this->params[i].flags ^= SPA_PARAM_INFO_SERIAL;
#  365|   					this->params[i].user = 0;
#  366|-> 					spa_log_debug(this->log, "param %d flags:%08x",
#  367|   							i, this->params[i].flags);
#  368|   				}

Error: CPPCHECK_WARNING (CWE-190): [#def658]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:371: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  369|   			}
#  370|   		}
#  371|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  372|   		this->info.change_mask = old;
#  373|   		spa_zero(this->info.props);

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

Error: CPPCHECK_WARNING (CWE-190): [#def660]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:394: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  392|   
#  393|   	if (filter) {
#  394|-> 		spa_log_error(this->log, "with this filter:");
#  395|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, filter);
#  396|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def661]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:397: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  395|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, filter);
#  396|   	} else {
#  397|-> 		spa_log_error(this->log, "there was no filter");
#  398|   	}
#  399|   

Error: CPPCHECK_WARNING (CWE-190): [#def662]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:409: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  407|   		if (res != 1) {
#  408|   			if (res < 0)
#  409|-> 				spa_log_error(this->log, "  error: %s", spa_strerror(res));
#  410|   			break;
#  411|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def663]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:412: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  410|   			break;
#  411|   		}
#  412|-> 		spa_log_error(this->log, "unmatched %s %d:", debug, count);
#  413|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, param);
#  414|   		count++;

Error: CPPCHECK_WARNING (CWE-190): [#def664]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:417: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  415|   	}
#  416|   	if (count == 0)
#  417|-> 		spa_log_error(this->log, "could not get any %s", debug);
#  418|   
#  419|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def665]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:435: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  433|   	uint64_t follower_flags, conv_flags;
#  434|   
#  435|-> 	spa_log_debug(this->log, "%p: n_buffers:%d", this, this->n_buffers);
#  436|   
#  437|   	if (this->follower == this->target)

Error: CPPCHECK_WARNING (CWE-190): [#def666]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:500: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  498|   		buffers = SPA_MAX(2u, buffers);
#  499|   
#  500|-> 	spa_log_debug(this->log, "%p: buffers:%d, blocks:%d, size:%d, stride:%d align:%d %d:%d",
#  501|   			this, buffers, blocks, size, stride, align, follower_alloc, conv_alloc);
#  502|   

Error: CPPCHECK_WARNING (CWE-190): [#def667]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:550: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  548|   	int res;
#  549|   
#  550|-> 	spa_log_debug(this->log, "%p: configure format:", this);
#  551|   
#  552|   	if (format == NULL) {

Error: CPPCHECK_WARNING (CWE-190): [#def668]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:611: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  609|   	spa_pod_builder_init(&b, buffer, sizeof(buffer));
#  610|   
#  611|-> 	spa_log_debug(this->log, "%p: configure convert %p", this, this->target);
#  612|   
#  613|   	param = spa_pod_builder_add_object(&b,

Error: CPPCHECK_WARNING (CWE-190): [#def669]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:635: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  633|   	int res;
#  634|   
#  635|-> 	spa_log_debug(this->log, "%p: %d:%d", this, direction, port_id);
#  636|   
#  637|   	if (this->target == this->follower)

Error: CPPCHECK_WARNING (CWE-190): [#def670]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:672: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  670|   	int res;
#  671|   
#  672|-> 	spa_log_debug(this->log, "%p: %d:%d", this, direction, port_id);
#  673|   
#  674|   	if (this->target == this->follower)

Error: CPPCHECK_WARNING (CWE-190): [#def671]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:707: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  705|   	bool old_passthrough = this->mode == SPA_PARAM_PORT_CONFIG_MODE_passthrough;
#  706|   
#  707|-> 	spa_log_debug(this->log, "%p: passthrough mode %d", this, passthrough);
#  708|   
#  709|   	if (!passthrough && this->convert == NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def672]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:754: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  752|   	emit_node_info(this, false);
#  753|   
#  754|-> 	spa_log_debug(this->log, "%p: passthrough mode %d", this, passthrough);
#  755|   
#  756|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def673]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:766: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  764|   	struct spa_audio_info info = { 0 };
#  765|   
#  766|-> 	spa_log_debug(this->log, "%p: set param %d", this, id);
#  767|   
#  768|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def674]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:790: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  788|   
#  789|   		if (this->started) {
#  790|-> 			spa_log_error(this->log, "was started");
#  791|   			return -EIO;
#  792|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def675]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:816: error[uninitvar]: Uninitialized variable: mode
#  814|   		}
#  815|   
#  816|-> 		switch (mode) {
#  817|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  818|   			return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-190): [#def676]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:928: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  926|   	int res, fres;
#  927|   
#  928|-> 	spa_log_debug(this->log, "%p: have_format:%d recheck:%d", this, this->have_format,
#  929|   			this->recheck_format);
#  930|   

Error: CPPCHECK_WARNING (CWE-190): [#def677]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1022: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1020|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1021|   
# 1022|-> 	spa_log_debug(this->log, "%p: command %d", this, SPA_NODE_COMMAND_ID(command));
# 1023|   
# 1024|   	switch (SPA_NODE_COMMAND_ID(command)) {

Error: CPPCHECK_WARNING (CWE-190): [#def678]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1026: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1024|   	switch (SPA_NODE_COMMAND_ID(command)) {
# 1025|   	case SPA_NODE_COMMAND_Start:
# 1026|-> 		spa_log_debug(this->log, "%p: starting %d", this, this->started);
# 1027|   		if (this->started)
# 1028|   			return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def679]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1035: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1033|   		break;
# 1034|   	case SPA_NODE_COMMAND_Suspend:
# 1035|-> 		spa_log_debug(this->log, "%p: suspending", this);
# 1036|   		break;
# 1037|   	case SPA_NODE_COMMAND_Pause:

Error: CPPCHECK_WARNING (CWE-190): [#def680]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1038: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1036|   		break;
# 1037|   	case SPA_NODE_COMMAND_Pause:
# 1038|-> 		spa_log_debug(this->log, "%p: pausing", this);
# 1039|   		break;
# 1040|   	case SPA_NODE_COMMAND_Flush:

Error: CPPCHECK_WARNING (CWE-190): [#def681]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1041: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1039|   		break;
# 1040|   	case SPA_NODE_COMMAND_Flush:
# 1041|-> 		spa_log_debug(this->log, "%p: flushing", this);
# 1042|   		this->io_buffers.status = SPA_STATUS_OK;
# 1043|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def682]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1049: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1047|   
# 1048|   	if ((res = spa_node_send_command(this->target, command)) < 0) {
# 1049|-> 		spa_log_error(this->log, "%p: can't send command %d: %s",
# 1050|   				this, SPA_NODE_COMMAND_ID(command),
# 1051|   				spa_strerror(res));

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

Error: CPPCHECK_WARNING (CWE-190): [#def684]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1064: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1062|   	case SPA_NODE_COMMAND_Start:
# 1063|   		if (res < 0) {
# 1064|-> 			spa_log_debug(this->log, "%p: start failed", this);
# 1065|   			this->ready = false;
# 1066|   			configure_format(this, 0, NULL);

Error: CPPCHECK_WARNING (CWE-190): [#def685]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1069: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1067|   		} else {
# 1068|   			this->started = true;
# 1069|-> 			spa_log_debug(this->log, "%p: started", this);
# 1070|   		}
# 1071|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def686]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1077: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1075|   		this->warned = false;
# 1076|   		this->ready = false;
# 1077|-> 		spa_log_debug(this->log, "%p: suspended", this);
# 1078|   		break;
# 1079|   	case SPA_NODE_COMMAND_Pause:

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

Error: CPPCHECK_WARNING (CWE-190): [#def688]
pipewire-1.4.2/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: flushed", this);
# 1087|   		break;
# 1088|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def689]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1097: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1095|   	uint32_t i;
# 1096|   
# 1097|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64, this,
# 1098|   			info->change_mask);
# 1099|   

Error: CPPCHECK_WARNING (CWE-190): [#def690]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1134: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1132|   
# 1133|   			this->params[idx].user++;
# 1134|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1135|   		}
# 1136|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def691]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1149|   		return;
# 1150|   
# 1151|-> 	spa_log_debug(this->log, "%p: convert port info %s %p %08"PRIx64, this,
# 1152|   			this->direction == SPA_DIRECTION_INPUT ?
# 1153|   				"Input" : "Output", info, info->change_mask);

Error: CPPCHECK_WARNING (CWE-190): [#def692]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1185: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1183|   				res = recalc_latency(this, this->target, direction, port_id, this->follower);
# 1184|   				this->in_recalc--;
# 1185|-> 				spa_log_debug(this->log, "latency: %d (%s)", res,
# 1186|   						spa_strerror(res));
# 1187|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def693]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1192: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1190|   				res = recalc_tag(this, this->target, direction, port_id, this->follower);
# 1191|   				this->in_recalc--;
# 1192|-> 				spa_log_debug(this->log, "tag: %d (%s)", res,
# 1193|   						spa_strerror(res));
# 1194|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def694]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1195: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1193|   						spa_strerror(res));
# 1194|   			}
# 1195|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1196|   		}
# 1197|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def695]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1224: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1222|   	}
# 1223|   
# 1224|-> 	spa_log_debug(this->log, "%p: port info %d:%d", this,
# 1225|   			direction, port_id);
# 1226|   

Error: CPPCHECK_WARNING (CWE-190): [#def696]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1228: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1226|   
# 1227|   	if (this->target != this->follower)
# 1228|-> 		spa_node_emit_port_info(&this->hooks, direction, port_id, info);
# 1229|   }
# 1230|   

Error: CPPCHECK_WARNING (CWE-190): [#def697]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1238: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1236|   		return;
# 1237|   
# 1238|-> 	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1239|   	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1240|   }

Error: CPPCHECK_WARNING (CWE-190): [#def698]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1239: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1237|   
# 1238|   	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1239|-> 	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1240|   }
# 1241|   

Error: CPPCHECK_WARNING (CWE-190): [#def699]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1252|   	uint32_t i;
# 1253|   
# 1254|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64, this,
# 1255|   			info->change_mask);
# 1256|   

Error: CPPCHECK_WARNING (CWE-190): [#def700]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1275|   			this->async && this->follower == this->target);
# 1276|   
# 1277|-> 	spa_log_debug(this->log, "%p: follower info %s", this,
# 1278|   			this->direction == SPA_DIRECTION_INPUT ?
# 1279|   				"Input" : "Output");

Error: CPPCHECK_WARNING (CWE-190): [#def701]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1316: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1314|   
# 1315|   			this->params[idx].user++;
# 1316|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1317|   		}
# 1318|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def702]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1337: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1335|   
# 1336|   	if (this->follower_removing) {
# 1337|-> 	      spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
# 1338|   	      return;
# 1339|   	}

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def706]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1391|   			}
# 1392|   			if (idx == IDX_EnumFormat) {
# 1393|-> 				spa_log_debug(this->log, "new formats");
# 1394|   				/* we will renegotiate when restarting */
# 1395|   				this->recheck_format = true;

Error: CPPCHECK_WARNING (CWE-190): [#def707]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1399: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1397|   
# 1398|   			this->params[idx].user++;
# 1399|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1400|   		}
# 1401|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def708]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1405: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1403|   
# 1404|   	if (this->target == this->follower)
# 1405|-> 	      spa_node_emit_port_info(&this->hooks, direction, port_id, info);
# 1406|   }
# 1407|   

Error: CPPCHECK_WARNING (CWE-190): [#def709]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1415: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1413|   		return;
# 1414|   
# 1415|-> 	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1416|   	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1417|   }

Error: CPPCHECK_WARNING (CWE-190): [#def710]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1416: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1414|   
# 1415|   	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1416|-> 	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1417|   }
# 1418|   

Error: CPPCHECK_WARNING (CWE-190): [#def711]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1423: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1421|   	struct impl *this = data;
# 1422|   
# 1423|-> 	spa_log_trace(this->log, "%p: event %d", this, SPA_EVENT_TYPE(event));
# 1424|   
# 1425|   	switch (SPA_NODE_EVENT_ID(event)) {

Error: CPPCHECK_WARNING (CWE-190): [#def712]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1429: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1427|   	case SPA_NODE_EVENT_RequestProcess:
# 1428|   		/* Forward errors and process requests */
# 1429|-> 		spa_node_emit_event(&this->hooks, event);
# 1430|   		break;
# 1431|   	default:

Error: CPPCHECK_WARNING (CWE-190): [#def713]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1466: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1464|   
# 1465|   	if (!this->ready) {
# 1466|-> 		spa_log_info(this->log, "%p: ready stopped node", this);
# 1467|   		return -EIO;
# 1468|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def714]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1530: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1528|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1529|   
# 1530|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
# 1531|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
# 1532|   

Error: CPPCHECK_WARNING (CWE-190): [#def715]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1632: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1630|   				goto next;
# 1631|   			} else {
# 1632|-> 				spa_log_error(this->log, "could not enum follower format: %s", spa_strerror(res));
# 1633|   				return res;
# 1634|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def716]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1647: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1645|   	}
# 1646|   
# 1647|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 1648|   
# 1649|   	if (++count < num)

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

Error: CPPCHECK_WARNING (CWE-190): [#def718]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1690: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1688|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1689|   
# 1690|-> 	spa_log_debug(this->log, " %d %d %d %d", port_id, id, direction, this->direction);
# 1691|   
# 1692|   	if (direction != this->direction)

Error: CPPCHECK_WARNING (CWE-190): [#def719]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1710: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1708|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1709|   
# 1710|-> 	spa_log_debug(this->log, "set io %d %d %d %d", port_id, id, direction, this->direction);
# 1711|   
# 1712|   	if (direction != this->direction)

Error: CPPCHECK_WARNING (CWE-190): [#def720]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1734: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1732|   		port_id++;
# 1733|   
# 1734|-> 	spa_log_debug(this->log, "%p: %d %d:%d", this,
# 1735|   			n_buffers, direction, port_id);
# 1736|   

Error: CPPCHECK_WARNING (CWE-190): [#def721]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:1761: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1759|   	if (!this->ready) {
# 1760|   		if (!this->warned)
# 1761|-> 			spa_log_warn(this->log, "%p: scheduling stopped node", this);
# 1762|   		this->warned = true;
# 1763|   		return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def722]
pipewire-1.4.2/spa/plugins/audioconvert/audioadapter.c:2127: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2125|   
# 2126|   	ret = load_converter(this, info, support, n_support);
# 2127|-> 	spa_log_info(this->log, "%p: loaded converter %s, hnd %p, convert %p", this,
# 2128|   			this->convertname, this->hnd_convert, this->convert);
# 2129|   	if (ret < 0)

Error: CPPCHECK_WARNING (CWE-190): [#def723]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:341: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  339|   			}
#  340|   		}
#  341|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  342|   		this->info.change_mask = old;
#  343|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def724]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:379: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  377|   			}
#  378|   		}
#  379|-> 		spa_node_emit_port_info(&this->hooks, port->direction, port->id, &port->info);
#  380|   		port->info.change_mask = old;
#  381|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def725]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:443: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  441|   	spa_list_init(&port->queue);
#  442|   
#  443|-> 	spa_log_debug(this->log, "%p: add port %d:%d position:%s %d %d %d",
#  444|   			this, direction, port_id, port->position, is_dsp,
#  445|   			is_monitor, is_control);

Error: CPPCHECK_WARNING (CWE-190): [#def726]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:457: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  455|   		return -ENOENT;
#  456|   	port->valid = false;
#  457|-> 	spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
#  458|   	return 0;
#  459|   }

Error: CPPCHECK_WARNING (CWE-190): [#def727]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:935: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  933|   		goto next;
#  934|   
#  935|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  936|   
#  937|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def728]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:949: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  947|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  948|   
#  949|-> 	spa_log_debug(this->log, "%p: io %d %p/%zd", this, id, data, size);
#  950|   
#  951|   	switch (id) {

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def732]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1245: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1243|   			continue;
# 1244|   
# 1245|-> 		spa_log_info(this->log, "key:'%s' val:'%s'", name, value);
# 1246|   		changed += audioconvert_set_param(this, name, value);
# 1247|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def733]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1265: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1263|   		unsigned int sample_rate = d->format.info.raw.rate;
# 1264|   		samples = (vrp->volume_ramp_time * sample_rate) / 1000;
# 1265|-> 		spa_log_info(this->log, "volume ramp samples calculated from time is %d", samples);
# 1266|   	}
# 1267|   	if (!samples)

Error: CPPCHECK_WARNING (CWE-190): [#def734]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1286: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1284|   		/* convert the step time which is in nano seconds to seconds */
# 1285|   		samples = (vrp->volume_ramp_step_time/1000) * (sample_rate/1000);
# 1286|-> 		spa_log_debug(this->log, "volume ramp step samples calculated from time is %d", samples);
# 1287|   	}
# 1288|   	if (!samples)

Error: CPPCHECK_WARNING (CWE-190): [#def735]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1320: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1318|   
# 1319|   	spa_pod_builder_push_sequence(&b.b, &f[0], 0);
# 1320|-> 	spa_log_info(this->log, "generating ramp up sequence from %f to %f with a"
# 1321|   		" step value %f at scale %d", p->prev_volume, p->volume, volume_step, p->vrp.scale);
# 1322|   	do {

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

Error: CPPCHECK_WARNING (CWE-190): [#def737]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1349: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1347|   
# 1348|   	spa_pod_builder_push_sequence(&b.b, &f[0], 0);
# 1349|-> 	spa_log_info(this->log, "generating ramp down sequence from %f to %f with a"
# 1350|   		" step value %f at scale %d", p->prev_volume, p->volume, volume_step, p->vrp.scale);
# 1351|   	do {

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

Error: CPPCHECK_WARNING (CWE-190): [#def739]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1394|   			if (!p->lock_volumes &&
# 1395|   			    spa_pod_get_float(&prop->value, &p->volume) == 0) {
# 1396|-> 				spa_log_debug(this->log, "%p new volume %f", this, p->volume);
# 1397|   				changed++;
# 1398|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def740]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1409: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1407|   		case SPA_PROP_volumeRampSamples:
# 1408|   			if (this->vol_ramp_sequence) {
# 1409|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1410|   						"applied try again", this);
# 1411|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def741]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1416: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1414|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1415|   				vrp->volume_ramp_samples = value;
# 1416|-> 				spa_log_info(this->log, "%p volume ramp samples %d", this, value);
# 1417|   				vol_ramp_params_changed++;
# 1418|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def742]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1422: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1420|   		case SPA_PROP_volumeRampStepSamples:
# 1421|   			if (this->vol_ramp_sequence) {
# 1422|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1423|   						"applied try again", this);
# 1424|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def743]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1429: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1427|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1428|   				vrp->volume_ramp_step_samples = value;
# 1429|-> 				spa_log_info(this->log, "%p volume ramp step samples is %d",
# 1430|   						this, value);
# 1431|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def744]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1435: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1433|   		case SPA_PROP_volumeRampTime:
# 1434|   			if (this->vol_ramp_sequence) {
# 1435|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1436|   						"applied try again", this);
# 1437|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def745]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1442: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1440|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1441|   				vrp->volume_ramp_time = value;
# 1442|-> 				spa_log_info(this->log, "%p volume ramp time %d", this, value);
# 1443|   				vol_ramp_params_changed++;
# 1444|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def746]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1448: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1446|   		case SPA_PROP_volumeRampStepTime:
# 1447|   			if (this->vol_ramp_sequence) {
# 1448|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1449|   						"applied try again", this);
# 1450|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def747]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1455: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1453|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1454|   				vrp->volume_ramp_step_time = value;
# 1455|-> 				spa_log_info(this->log, "%p volume ramp time %d", this, value);
# 1456|   			}
# 1457|   			break;

Error: CPPCHECK_WARNING (CWE-190): [#def748]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1460: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1458|   		case SPA_PROP_volumeRampScale:
# 1459|   			if (this->vol_ramp_sequence) {
# 1460|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1461|   						"applied try again", this);
# 1462|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def749]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1467: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1465|   			if (spa_pod_get_id(&prop->value, &id) == 0 && id) {
# 1466|   				vrp->scale = id;
# 1467|-> 				spa_log_info(this->log, "%p volume ramp scale %d", this, id);
# 1468|   			}
# 1469|   			break;

Error: CPPCHECK_WARNING (CWE-190): [#def750]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1517: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1515|   			    !this->rate_adjust && p->rate != 1.0) {
# 1516|   				this->rate_adjust = true;
# 1517|-> 				spa_log_info(this->log, "%p: activating adaptive resampler",
# 1518|   						this);
# 1519|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def751]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1542: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1540|   		void *sequence = NULL;
# 1541|   		if (p->volume == p->prev_volume)
# 1542|-> 			spa_log_error(this->log, "no change in volume, cannot ramp volume");
# 1543|   		else if (p->volume > p->prev_volume)
# 1544|   			sequence = generate_ramp_up_seq(this);

Error: CPPCHECK_WARNING (CWE-190): [#def752]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1549: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1547|   
# 1548|   		if (!sequence)
# 1549|-> 			spa_log_error(this->log, "unable to generate sequence");
# 1550|   
# 1551|   		this->vol_ramp_sequence = (struct spa_pod_sequence *) sequence;

Error: CPPCHECK_WARNING (CWE-190): [#def753]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1590: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1588|   		return 0;
# 1589|   
# 1590|-> 	spa_log_debug(this->log, "%p: port config direction:%d monitor:%d "
# 1591|   			"control:%d mode:%d %d", this, direction, monitor,
# 1592|   			control, mode, dir->n_ports);

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def756]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1765: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1763|   	dst_info.info.raw.format = SPA_AUDIO_FORMAT_DSP_F32;
# 1764|   
# 1765|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 1766|   			spa_debug_type_find_name(spa_type_audio_format, src_info.info.raw.format),
# 1767|   			src_info.info.raw.channels,

Error: CPPCHECK_WARNING (CWE-190): [#def757]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1784: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1782|   			if (i != j)
# 1783|   				remap = true;
# 1784|-> 			spa_log_debug(this->log, "%p: channel %d (%d) -> %d (%s -> %s)", this,
# 1785|   					i, in->remap[i], j,
# 1786|   					spa_debug_type_find_short_name(spa_type_audio_channel,

Error: CPPCHECK_WARNING (CWE-190): [#def758]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1806: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1804|   		return res;
# 1805|   
# 1806|-> 	spa_log_debug(this->log, "%p: got converter features %08x:%08x passthrough:%d remap:%d %s", this,
# 1807|   			this->cpu_flags, in->conv.cpu_flags, in->conv.is_passthrough,
# 1808|   			remap, in->conv.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def759]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1817: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1815|   	float s;
# 1816|   	uint32_t i;
# 1817|-> 	spa_log_debug(this->log, "%p %d -> %d", this, vols->n_volumes, channels);
# 1818|   	if (vols->n_volumes > 0) {
# 1819|   		s = 0.0f;

Error: CPPCHECK_WARNING (CWE-190): [#def760]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1838: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1836|   	for (i = 0; i < p->n_channels; i++) {
# 1837|   		for (j = i; j < target; j++) {
# 1838|-> 			spa_log_debug(this->log, "%d %d: %d <-> %d", i, j,
# 1839|   					p->channel_map[i], info->info.raw.position[j]);
# 1840|   			if (p->channel_map[i] != info->info.raw.position[j])

Error: CPPCHECK_WARNING (CWE-190): [#def761]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1874: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1872|   	struct dir *dir = &this->dir[this->direction];
# 1873|   
# 1874|-> 	spa_log_debug(this->log, "%p set volume %f have_format:%d", this, this->props.volume, dir->have_format);
# 1875|   
# 1876|   	if (dir->have_format)

Error: CPPCHECK_WARNING (CWE-190): [#def762]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1929: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1927|   		dst_mask |= 1ULL << (p < 64 ? p : 0);
# 1928|   	}
# 1929|-> 	spa_log_info(this->log, "in  %s (%016"PRIx64")", format_position(str, sizeof(str),
# 1930|   				src_chan, in->format.info.raw.position), src_mask);
# 1931|   	spa_log_info(this->log, "out %s (%016"PRIx64")", format_position(str, sizeof(str),

Error: CPPCHECK_WARNING (CWE-190): [#def763]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1931: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1929|   	spa_log_info(this->log, "in  %s (%016"PRIx64")", format_position(str, sizeof(str),
# 1930|   				src_chan, in->format.info.raw.position), src_mask);
# 1931|-> 	spa_log_info(this->log, "out %s (%016"PRIx64")", format_position(str, sizeof(str),
# 1932|   				dst_chan, out->format.info.raw.position), dst_mask);
# 1933|   

Error: CPPCHECK_WARNING (CWE-190): [#def764]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1934: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1932|   				dst_chan, out->format.info.raw.position), dst_mask);
# 1933|   
# 1934|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d %08"PRIx64":%08"PRIx64, this,
# 1935|   			spa_debug_type_find_name(spa_type_audio_format, SPA_AUDIO_FORMAT_DSP_F32),
# 1936|   			src_chan,

Error: CPPCHECK_WARNING (CWE-190): [#def765]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1960: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1958|   	set_volume(this);
# 1959|   
# 1960|-> 	spa_log_debug(this->log, "%p: got channelmix features %08x:%08x flags:%08x %s",
# 1961|   			this, this->cpu_flags, this->mix.cpu_flags,
# 1962|   			this->mix.flags, this->mix.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def766]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:1978: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1976|   		channels = out->format.info.raw.channels;
# 1977|   
# 1978|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 1979|   			spa_debug_type_find_name(spa_type_audio_format, SPA_AUDIO_FORMAT_DSP_F32),
# 1980|   			channels,

Error: CPPCHECK_WARNING (CWE-190): [#def767]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2007: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2005|   		res = resample_native_init(&this->resample);
# 2006|   
# 2007|-> 	spa_log_debug(this->log, "%p: got resample features %08x:%08x %s",
# 2008|   			this, this->cpu_flags, this->resample.cpu_flags,
# 2009|   			this->resample.func_name);

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

Error: CPPCHECK_WARNING (CWE-190): [#def769]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2072: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2070|   				remap = true;
# 2071|   
# 2072|-> 			spa_log_debug(this->log, "%p: channel %d (%d) -> %d (%s -> %s)", this,
# 2073|   					i, out->remap[i], j,
# 2074|   					spa_debug_type_find_short_name(spa_type_audio_channel,

Error: CPPCHECK_WARNING (CWE-190): [#def770]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2095: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2093|   		return res;
# 2094|   
# 2095|-> 	spa_log_debug(this->log, "%p: got converter features %08x:%08x quant:%d:%d"
# 2096|   			" passthrough:%d remap:%d %s", this,
# 2097|   			this->cpu_flags, out->conv.cpu_flags, out->conv.method,

Error: CPPCHECK_WARNING (CWE-190): [#def771]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2107: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2105|   	uint32_t i;
# 2106|   
# 2107|-> 	spa_log_debug(this->log, "free tmp %d", this->scratch_size);
# 2108|   
# 2109|   	free(this->empty);

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

Error: CPPCHECK_WARNING (CWE-190): [#def773]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2229: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2227|   	out = &this->dir[SPA_DIRECTION_OUTPUT];
# 2228|   
# 2229|-> 	spa_log_debug(this->log, "%p: setup:%d in_format:%d out_format:%d", this,
# 2230|   			this->setup, in->have_format, out->have_format);
# 2231|   

Error: CPPCHECK_WARNING (CWE-190): [#def774]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2364|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 2365|   
# 2366|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
# 2367|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
# 2368|   

Error: CPPCHECK_WARNING (CWE-190): [#def775]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2499: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2497|   	spa_return_val_if_fail(num != 0, -EINVAL);
# 2498|   
# 2499|-> 	spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
# 2500|   			this, direction, port_id, seq, id);
# 2501|   

Error: CPPCHECK_WARNING (CWE-190): [#def776]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2642: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2640|   		goto next;
# 2641|   
# 2642|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 2643|   
# 2644|   	if (++count != num)

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

Error: CPPCHECK_WARNING (CWE-190): [#def778]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2673: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2671|   	uint32_t i;
# 2672|   
# 2673|-> 	spa_log_debug(this->log, "%p: set latency direction:%d id:%d %p",
# 2674|   			this, direction, port_id, latency);
# 2675|   

Error: CPPCHECK_WARNING (CWE-190): [#def779]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2692: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2690|   	port->have_latency = have_latency;
# 2691|   
# 2692|-> 	spa_log_debug(this->log, "%p: set %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64, this,
# 2693|   			info.direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 2694|   			info.min_quantum, info.max_quantum,

Error: CPPCHECK_WARNING (CWE-190): [#def780]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2719: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2717|   			if ((oport->is_monitor) || !oport->have_latency)
# 2718|   				continue;
# 2719|-> 			spa_log_debug(this->log, "%p: combine %d", this, i);
# 2720|   			spa_latency_info_combine(&info, &oport->latency[other]);
# 2721|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def781]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2724: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2722|   		spa_latency_info_combine_finish(&info);
# 2723|   
# 2724|-> 		spa_log_debug(this->log, "%p: combined %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64, this,
# 2725|   				info.direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 2726|   				info.min_quantum, info.max_quantum,

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

Error: CPPCHECK_WARNING (CWE-190): [#def783]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2762: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2760|   	uint32_t i;
# 2761|   
# 2762|-> 	spa_log_debug(this->log, "%p: set tag direction:%d id:%d %p",
# 2763|   			this, direction, port_id, tag);
# 2764|   

Error: CPPCHECK_WARNING (CWE-190): [#def784]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2805: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2803|   	port = GET_PORT(this, direction, port_id);
# 2804|   
# 2805|-> 	spa_log_debug(this->log, "%p: %d:%d set format", this, direction, port_id);
# 2806|   
# 2807|   	if (format == NULL) {

Error: CPPCHECK_WARNING (CWE-190): [#def785]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2814: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2812|   
# 2813|   		if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0) {
# 2814|-> 			spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 2815|   			return res;
# 2816|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def786]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2820: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2818|   			if (info.media_type != SPA_MEDIA_TYPE_audio ||
# 2819|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_dsp) {
# 2820|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 2821|   						info.media_type, info.media_subtype);
# 2822|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def787]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2825: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2823|   			}
# 2824|   			if ((res = spa_format_audio_dsp_parse(format, &info.info.dsp)) < 0) {
# 2825|-> 				spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 2826|   				return res;
# 2827|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def788]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2829: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2827|   			}
# 2828|   			if (info.info.dsp.format != SPA_AUDIO_FORMAT_DSP_F32) {
# 2829|-> 				spa_log_error(this->log, "unexpected format %d<->%d",
# 2830|   					info.info.dsp.format, SPA_AUDIO_FORMAT_DSP_F32);
# 2831|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def789]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2839: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2837|   			if (info.media_type != SPA_MEDIA_TYPE_application ||
# 2838|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_control) {
# 2839|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 2840|   						info.media_type, info.media_subtype);
# 2841|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def790]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2849: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2847|   			if (info.media_type != SPA_MEDIA_TYPE_audio ||
# 2848|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_raw) {
# 2849|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 2850|   						info.media_type, info.media_subtype);
# 2851|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def791]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2854: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2852|   			}
# 2853|   			if ((res = spa_format_audio_raw_parse(format, &info.info.raw)) < 0) {
# 2854|-> 				spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 2855|   				return res;
# 2856|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def792]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2861: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2859|   			    info.info.raw.channels == 0 ||
# 2860|   			    info.info.raw.channels > SPA_AUDIO_MAX_CHANNELS) {
# 2861|-> 				spa_log_error(this->log, "invalid format:%d rate:%d channels:%d",
# 2862|   						info.info.raw.format, info.info.raw.rate,
# 2863|   						info.info.raw.channels);

Error: CPPCHECK_WARNING (CWE-190): [#def793]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2880: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2878|   		port->have_format = true;
# 2879|   
# 2880|-> 		spa_log_debug(this->log, "%p: %d %d %d", this,
# 2881|   				port_id, port->stride, port->blocks);
# 2882|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def794]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2908: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2906|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 2907|   
# 2908|-> 	spa_log_debug(this->log, "%p: set param port %d.%d %u",
# 2909|   			this, direction, port_id, id);
# 2910|   

Error: CPPCHECK_WARNING (CWE-190): [#def795]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:2979: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2977|   	port = GET_PORT(this, direction, port_id);
# 2978|   
# 2979|-> 	spa_log_debug(this->log, "%p: use buffers %d on port %d:%d",
# 2980|   			this, n_buffers, direction, port_id);
# 2981|   

Error: CPPCHECK_WARNING (CWE-190): [#def796]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3002: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3000|   
# 3001|   		if (n_datas != port->blocks) {
# 3002|-> 			spa_log_error(this->log, "%p: invalid blocks %d on buffer %d",
# 3003|   					this, n_datas, i);
# 3004|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def797]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3009: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3007|   		for (j = 0; j < n_datas; j++) {
# 3008|   			if (d[j].data == NULL) {
# 3009|-> 				spa_log_error(this->log, "%p: invalid memory %d on buffer %d %d %p",
# 3010|   						this, j, i, d[j].type, d[j].data);
# 3011|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def798]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3014: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3012|   			}
# 3013|   			if (!SPA_IS_ALIGNED(d[j].data, this->max_align)) {
# 3014|-> 				spa_log_warn(this->log, "%p: memory %d on buffer %d not aligned",
# 3015|   						this, j, i);
# 3016|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def799]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3058: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3056|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 3057|   
# 3058|-> 	spa_log_debug(this->log, "%p: set io %d on port %d:%d %p",
# 3059|   			this, id, direction, port_id, data);
# 3060|   

Error: CPPCHECK_WARNING (CWE-190): [#def800]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3202: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3200|   					"w", &info);
# 3201|   			if (impl->wav_file == NULL)
# 3202|-> 				spa_log_warn(impl->log, "can't open wav path: %m");
# 3203|   		}
# 3204|   		if (impl->wav_file) {

Error: CPPCHECK_WARNING (CWE-190): [#def801]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3225: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3223|   	s->data = NULL;
# 3224|   	s->run = run_wav_stage;
# 3225|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3226|   	impl->n_stages++;
# 3227|   }

Error: CPPCHECK_WARNING (CWE-190): [#def802]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3248: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3246|   	s->data = NULL;
# 3247|   	s->run = run_dst_remap_stage;
# 3248|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3249|   	impl->n_stages++;
# 3250|   	ctx->dst_idx = CTX_DATA_REMAP_DST;

Error: CPPCHECK_WARNING (CWE-190): [#def803]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3273: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3271|   	s->data = NULL;
# 3272|   	s->run = run_src_remap_stage;
# 3273|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3274|   	impl->n_stages++;
# 3275|   	ctx->src_idx = CTX_DATA_REMAP_SRC;

Error: CPPCHECK_WARNING (CWE-190): [#def804]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3306: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3304|   	s->data = NULL;
# 3305|   	s->run = run_src_convert_stage;
# 3306|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3307|   	impl->n_stages++;
# 3308|   	ctx->src_idx = ctx->dst_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def805]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3332|   	s->data = NULL;
# 3333|   	s->run = run_resample_stage;
# 3334|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3335|   	impl->n_stages++;
# 3336|   	ctx->src_idx = ctx->dst_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def806]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3379|   	s->data = fg;
# 3380|   	s->run = run_filter_stage;
# 3381|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3382|   	impl->n_stages++;
# 3383|   	ctx->src_idx = ctx->dst_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def807]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3395: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3393|   	s->data = NULL;
# 3394|   	s->run = run_channelmix_stage;
# 3395|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3396|   	impl->n_stages++;
# 3397|   	ctx->src_idx = ctx->dst_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def808]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3428: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3426|   	s->data = NULL;
# 3427|   	s->run = run_dst_convert_stage;
# 3428|-> 	spa_log_trace(impl->log, "%p: stage %d", impl, impl->n_stages);
# 3429|   	impl->n_stages++;
# 3430|   	ctx->src_idx = s->out_idx;

Error: CPPCHECK_WARNING (CWE-190): [#def809]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3530: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3528|   		add_wav_stage(this, ctx);
# 3529|   
# 3530|-> 	spa_log_trace(this->log, "got %u processing stages", this->n_stages);
# 3531|   }
# 3532|   

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

Error: CPPCHECK_WARNING (CWE-190): [#def811]
pipewire-1.4.2/spa/plugins/audioconvert/audioconvert.c:3598: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3596|   		} else if (SPA_UNLIKELY(io->status != SPA_STATUS_HAVE_DATA)) {
# 3597|   			if (io->status & SPA_STATUS_DRAINED) {
# 3598|-> 				spa_log_debug(this->log, "%p: port %d drained", this, port->id);
# 3599|   				in_avail = flush_in = draining = true;
# 3600|   			} else {

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def814]
pipewire-1.4.2/spa/plugins/audioconvert/resample-native.c:414: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  412|   
#  413|   	if (precomp_coeffs[c].filter) {
#  414|-> 		spa_log_debug(r->log, "using precomputed filter for %u->%u(%u)",
#  415|   				r->i_rate, r->o_rate, r->quality);
#  416|   		spa_memcpy(d->filter, precomp_coeffs[c].filter, filter_size);

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def817]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def818]
pipewire-1.4.2/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): [#def819]
pipewire-1.4.2/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): [#def820]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def821]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def822]
pipewire-1.4.2/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): [#def823]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def824]
pipewire-1.4.2/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): [#def825]
pipewire-1.4.2/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): [#def826]
pipewire-1.4.2/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): [#def827]
pipewire-1.4.2/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): [#def828]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def829]
pipewire-1.4.2/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): [#def830]
pipewire-1.4.2/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): [#def831]
pipewire-1.4.2/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): [#def832]
pipewire-1.4.2/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): [#def833]
pipewire-1.4.2/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): [#def834]
pipewire-1.4.2/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): [#def835]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-570): [#def836]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def837]
pipewire-1.4.2/spa/plugins/bluez5/backend-hsphfpd.c:1128: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: endpoint
# 1126|   			if (!endpoint) {
# 1127|   				endpoint = calloc(1, sizeof(struct hsphfpd_endpoint));
# 1128|-> 				endpoint->path = strdup(path);
# 1129|   				spa_list_append(&backend->endpoint_list, &endpoint->link);
# 1130|   				spa_log_debug(backend->log, "Found endpoint %s", path);

Error: CPPCHECK_WARNING (CWE-457): [#def838]
pipewire-1.4.2/spa/plugins/bluez5/bluez5-device.c:2800: error[uninitvar]: Uninitialized variable: idx
# 2798|   		}
# 2799|   
# 2800|-> 		profile = get_profile_from_index(this, idx, &next, &codec);
# 2801|   		if (profile == SPA_ID_INVALID)
# 2802|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-457): [#def839]
pipewire-1.4.2/spa/plugins/bluez5/bluez5-device.c:2828: error[uninitvar]: Uninitialized variable: device
# 2826|   			return res;
# 2827|   		}
# 2828|-> 		if (device >= SPA_N_ELEMENTS(this->nodes) || !this->nodes[device].active)
# 2829|   			return -EINVAL;
# 2830|   

Error: CPPCHECK_WARNING (CWE-457): [#def840]
pipewire-1.4.2/spa/plugins/bluez5/media-source.c:236: warning[uninitvar]: Uninitialized variables: param.size, param.type
#  234|   	}
#  235|   
#  236|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  237|   		goto next;
#  238|   

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def851]
pipewire-1.4.2/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): [#def852]
pipewire-1.4.2/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): [#def853]
pipewire-1.4.2/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): [#def854]
pipewire-1.4.2/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): [#def855]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def856]
pipewire-1.4.2/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): [#def857]
pipewire-1.4.2/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): [#def858]
pipewire-1.4.2/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): [#def859]
pipewire-1.4.2/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): [#def860]
pipewire-1.4.2/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): [#def861]
pipewire-1.4.2/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): [#def862]
pipewire-1.4.2/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): [#def863]
pipewire-1.4.2/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): [#def864]
pipewire-1.4.2/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): [#def865]
pipewire-1.4.2/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): [#def866]
pipewire-1.4.2/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): [#def867]
pipewire-1.4.2/spa/plugins/filter-graph/filter-graph.c:703: warning[uninitvar]: Uninitialized variable: soft_vols
#  701|   		spa_pod_builder_prop(&b.b, SPA_PROP_softVolumes, 0);
#  702|   		spa_pod_builder_array(&b.b, sizeof(float), SPA_TYPE_Float,
#  703|-> 				vol->n_volumes, soft_vols);
#  704|   		props = spa_pod_builder_pop(&b.b, &f[0]);
#  705|   

Error: CPPCHECK_WARNING (CWE-476): [#def868]
pipewire-1.4.2/spa/plugins/filter-graph/filter-graph.c:877: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  875|   
#  876|   	desc = calloc(1, sizeof(*desc));
#  877|-> 	desc->ref = 1;
#  878|   	desc->plugin = pl;
#  879|   	spa_list_init(&desc->link);

Error: CPPCHECK_WARNING (CWE-476): [#def869]
pipewire-1.4.2/spa/plugins/filter-graph/filter-graph.c:878: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: desc
#  876|   	desc = calloc(1, sizeof(*desc));
#  877|   	desc->ref = 1;
#  878|-> 	desc->plugin = pl;
#  879|   	spa_list_init(&desc->link);
#  880|   

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-476): [#def887]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def888]
pipewire-1.4.2/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): [#def889]
pipewire-1.4.2/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): [#def890]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def891]
pipewire-1.4.2/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): [#def892]
pipewire-1.4.2/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): [#def893]
pipewire-1.4.2/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): [#def894]
pipewire-1.4.2/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): [#def895]
pipewire-1.4.2/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): [#def896]
pipewire-1.4.2/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): [#def897]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def898]
pipewire-1.4.2/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): [#def899]
pipewire-1.4.2/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): [#def900]
pipewire-1.4.2/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): [#def901]
pipewire-1.4.2/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): [#def902]
pipewire-1.4.2/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): [#def903]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def904]
pipewire-1.4.2/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): [#def905]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def906]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def907]
pipewire-1.4.2/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): [#def908]
pipewire-1.4.2/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): [#def909]
pipewire-1.4.2/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): [#def910]
pipewire-1.4.2/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): [#def911]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def912]
pipewire-1.4.2/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): [#def913]
pipewire-1.4.2/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): [#def914]
pipewire-1.4.2/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): [#def915]
pipewire-1.4.2/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): [#def916]
pipewire-1.4.2/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): [#def917]
pipewire-1.4.2/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): [#def918]
pipewire-1.4.2/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): [#def919]
pipewire-1.4.2/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): [#def920]
pipewire-1.4.2/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): [#def921]
pipewire-1.4.2/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): [#def922]
pipewire-1.4.2/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): [#def923]
pipewire-1.4.2/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): [#def924]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def925]
pipewire-1.4.2/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): [#def926]
pipewire-1.4.2/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): [#def927]
pipewire-1.4.2/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): [#def928]
pipewire-1.4.2/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): [#def929]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def930]
pipewire-1.4.2/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): [#def931]
pipewire-1.4.2/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): [#def932]
pipewire-1.4.2/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): [#def933]
pipewire-1.4.2/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): [#def934]
pipewire-1.4.2/spa/plugins/support/loop.c:212: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  210|   		loop_queue_destroy(queue->overflow);
#  211|   
#  212|-> 	spa_log_info(impl->log, "%p destroyed queue %p idx:%d", impl, queue, queue->idx);
#  213|   
#  214|   	free(queue);

Error: CPPCHECK_WARNING (CWE-190): [#def935]
pipewire-1.4.2/spa/plugins/support/loop.c:237: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  235|   		if ((res = spa_system_eventfd_create(impl->system,
#  236|   				SPA_FD_EVENT_SEMAPHORE | SPA_FD_CLOEXEC)) < 0) {
#  237|-> 			spa_log_error(impl->log, "%p: can't create ack event: %s",
#  238|   					impl, spa_strerror(res));
#  239|   			goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def936]
pipewire-1.4.2/spa/plugins/support/loop.c:249: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  247|   				/* this is pretty bad, there are QUEUES_MAX concurrent threads
#  248|   				 * that are doing an invoke */
#  249|-> 				spa_log_error(impl->log, "max queues %d exceeded!", idx);
#  250|   				res = -ENOSPC;
#  251|   				goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def937]
pipewire-1.4.2/spa/plugins/support/loop.c:260: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  258|   		}
#  259|   	}
#  260|-> 	spa_log_info(impl->log, "%p created queue %p idx:%d %p", impl, queue, queue->idx,
#  261|   			(void*)pthread_self());
#  262|   

Error: CPPCHECK_WARNING (CWE-190): [#def938]
pipewire-1.4.2/spa/plugins/support/loop.c:290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  288|   		if (SPA_LIKELY(__atomic_compare_exchange_n(&impl->head.v, &head.v, next.v,
#  289|   						0, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED))) {
#  290|-> 			spa_log_trace(impl->log, "%p idx:%d %p", queue, queue->idx, (void*)pthread_self());
#  291|   			return queue;
#  292|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def939]
pipewire-1.4.2/spa/plugins/support/loop.c:301: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  299|   	union tag head, next;
#  300|   
#  301|-> 	spa_log_trace(impl->log, "%p idx:%d %p", queue, queue->idx, (void*)pthread_self());
#  302|   
#  303|   	head.v = SPA_ATOMIC_LOAD(impl->head.v);

Error: CPPCHECK_WARNING (CWE-190): [#def940]
pipewire-1.4.2/spa/plugins/support/loop.c:381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  379|   		if (block && queue->ack_fd != -1) {
#  380|   			if ((res = spa_system_eventfd_write(impl->system, queue->ack_fd, 1)) < 0)
#  381|-> 				spa_log_warn(impl->log, "%p: failed to write event fd:%d: %s",
#  382|   						queue, queue->ack_fd, spa_strerror(res));
#  383|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def941]
pipewire-1.4.2/spa/plugins/support/loop.c:430: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  428|   	item->item_size = SPA_ROUND_UP_N(sizeof(struct invoke_item) + size, ITEM_ALIGN);
#  429|   
#  430|-> 	spa_log_trace(impl->log, "%p: add item %p filled:%d block:%d", queue, item, filled, block);
#  431|   
#  432|   	if (l0 >= item->item_size) {

Error: CPPCHECK_WARNING (CWE-190): [#def942]
pipewire-1.4.2/spa/plugins/support/loop.c:478: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  476|   
#  477|   			if ((res = spa_system_eventfd_read(impl->system, queue->ack_fd, &count)) < 0)
#  478|-> 				spa_log_warn(impl->log, "%p: failed to read event fd:%d: %s",
#  479|   						queue, queue->ack_fd, spa_strerror(res));
#  480|   

Error: CPPCHECK_WARNING (CWE-190): [#def943]
pipewire-1.4.2/spa/plugins/support/loop.c:540: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  538|   			nsec = get_time_ns(impl->system);
#  539|   			if ((suppressed = spa_ratelimit_test(&impl->rate_limit, nsec)) >= 0) {
#  540|-> 				spa_log_warn(impl->log, "%p: out of queues, retrying (%d suppressed)",
#  541|   						impl, suppressed);
#  542|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def944]
pipewire-1.4.2/spa/plugins/support/loop.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   {
#  564|   	struct impl *impl = object;
#  565|-> 	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, before, 0));
#  566|   	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, after, 0));
#  567|   	spa_hook_list_append(&impl->hooks_list, hook, hooks, data);

Error: CPPCHECK_WARNING (CWE-190): [#def945]
pipewire-1.4.2/spa/plugins/support/loop.c:566: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  564|   	struct impl *impl = object;
#  565|   	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, before, 0));
#  566|-> 	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, after, 0));
#  567|   	spa_hook_list_append(&impl->hooks_list, hook, hooks, data);
#  568|   }

Error: CPPCHECK_WARNING (CWE-190): [#def946]
pipewire-1.4.2/spa/plugins/support/loop.c:777: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  775|   				mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false,
#  776|   				(spa_source_idle_func_t) source_io_func, source);
#  777|-> 		spa_log_trace(impl->log, "%p: adding fallback %p", impl,
#  778|   				source->fallback);
#  779|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def947]
pipewire-1.4.2/spa/plugins/support/loop.c:801: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  799|   	spa_assert(source->func == source_io_func);
#  800|   
#  801|-> 	spa_log_trace(impl->log, "%p: update %08x -> %08x", s, source->mask, mask);
#  802|   	source->mask = mask;
#  803|   

Error: CPPCHECK_WARNING (CWE-190): [#def948]
pipewire-1.4.2/spa/plugins/support/loop.c:828: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  826|   	if (enabled && !s->enabled) {
#  827|   		if ((res = spa_system_eventfd_write(s->impl->system, source->fd, 1)) < 0)
#  828|-> 			spa_log_warn(s->impl->log, "%p: failed to write idle fd:%d: %s",
#  829|   					source, source->fd, spa_strerror(res));
#  830|   	} else if (!enabled && s->enabled) {

Error: CPPCHECK_WARNING (CWE-190): [#def949]
pipewire-1.4.2/spa/plugins/support/loop.c:833: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  831|   		uint64_t count;
#  832|   		if ((res = spa_system_eventfd_read(s->impl->system, source->fd, &count)) < 0)
#  833|-> 			spa_log_warn(s->impl->log, "%p: failed to read idle fd:%d: %s",
#  834|   					source, source->fd, spa_strerror(res));
#  835|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def950]
pipewire-1.4.2/spa/plugins/support/loop.c:889: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  887|   	if ((res = spa_system_eventfd_read(s->impl->system, source->fd, &count)) < 0) {
#  888|   		if (res != -EAGAIN)
#  889|-> 			spa_log_warn(s->impl->log, "%p: failed to read event fd:%d: %s",
#  890|   					source, source->fd, spa_strerror(res));
#  891|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def951]
pipewire-1.4.2/spa/plugins/support/loop.c:943: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  941|   
#  942|   	if (SPA_UNLIKELY((res = spa_system_eventfd_write(s->impl->system, source->fd, 1)) < 0))
#  943|-> 		spa_log_warn(s->impl->log, "%p: failed to write event fd:%d: %s",
#  944|   				source, source->fd, spa_strerror(res));
#  945|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def952]
pipewire-1.4.2/spa/plugins/support/loop.c:957: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  955|   				source->fd, &expirations)) < 0)) {
#  956|   		if (res != -EAGAIN)
#  957|-> 			spa_log_warn(s->impl->log, "%p: failed to read timer fd:%d: %s",
#  958|   					source, source->fd, spa_strerror(res));
#  959|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def953]
pipewire-1.4.2/spa/plugins/support/loop.c:1040: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1038|   	if ((res = spa_system_signalfd_read(s->impl->system, source->fd, &signal_number)) < 0) {
# 1039|   		if (res != -EAGAIN)
# 1040|-> 			spa_log_warn(s->impl->log, "%p: failed to read signal fd:%d: %s",
# 1041|   					source, source->fd, spa_strerror(res));
# 1042|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def954]
pipewire-1.4.2/spa/plugins/support/loop.c:1093: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1091|   	spa_assert(s->impl == object);
# 1092|   
# 1093|-> 	spa_log_trace(s->impl->log, "%p ", s);
# 1094|   
# 1095|   	spa_list_remove(&s->link);

Error: CPPCHECK_WARNING (CWE-190): [#def955]
pipewire-1.4.2/spa/plugins/support/loop.c:1186: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1184|   	impl = (struct impl *) handle;
# 1185|   
# 1186|-> 	spa_log_debug(impl->log, "%p: clear", impl);
# 1187|   
# 1188|   	if (impl->enter_count != 0 || impl->polling)

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

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def960]
pipewire-1.4.2/spa/plugins/support/loop.c:1272: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1270|   
# 1271|   	if (impl->system == NULL) {
# 1272|-> 		spa_log_error(impl->log, "%p: a System is needed", impl);
# 1273|   		res = -EINVAL;
# 1274|   		goto error_exit_free_mutex;

Error: CPPCHECK_WARNING (CWE-190): [#def961]
pipewire-1.4.2/spa/plugins/support/loop.c:1277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1275|   	}
# 1276|   	if ((res = spa_system_pollfd_create(impl->system, SPA_FD_CLOEXEC)) < 0) {
# 1277|-> 		spa_log_error(impl->log, "%p: can't create pollfd: %s",
# 1278|   				impl, spa_strerror(res));
# 1279|   		goto error_exit_free_mutex;

Error: CPPCHECK_WARNING (CWE-190): [#def962]
pipewire-1.4.2/spa/plugins/support/loop.c:1290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1288|   	if (impl->wakeup == NULL) {
# 1289|   		res = -errno;
# 1290|-> 		spa_log_error(impl->log, "%p: can't create wakeup event: %m", impl);
# 1291|   		goto error_exit_free_poll;
# 1292|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def963]
pipewire-1.4.2/spa/plugins/support/loop.c:1296: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1294|   	impl->head.t.idx = IDX_INVALID;
# 1295|   
# 1296|-> 	spa_log_debug(impl->log, "%p: initialized", impl);
# 1297|   
# 1298|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def964]
pipewire-1.4.2/spa/plugins/support/node-driver.c:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   static void set_timeout(struct impl *this, uint64_t next_time)
#  156|   {
#  157|-> 	spa_log_trace(this->log, "set timeout %"PRIu64, next_time);
#  158|   	this->timerspec.it_value.tv_sec = next_time / SPA_NSEC_PER_SEC;
#  159|   	this->timerspec.it_value.tv_nsec = next_time % SPA_NSEC_PER_SEC;

Error: CPPCHECK_WARNING (CWE-190): [#def965]
pipewire-1.4.2/spa/plugins/support/node-driver.c:171: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  169|   		return 0;
#  170|   	nsec = SPA_TIMESPEC_TO_NSEC(&now);
#  171|-> 	spa_log_trace(this->log, "%p now:%"PRIu64, this, nsec);
#  172|   	return nsec;
#  173|   }

Error: CPPCHECK_WARNING (CWE-190): [#def966]
pipewire-1.4.2/spa/plugins/support/node-driver.c:179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  177|   	this->next_time = gettime_nsec(this, this->timer_clockid);
#  178|   
#  179|-> 	spa_log_debug(this->log, "%p now:%"PRIu64, this, this->next_time);
#  180|   
#  181|   	if (this->following || !this->started) {

Error: CPPCHECK_WARNING (CWE-190): [#def967]
pipewire-1.4.2/spa/plugins/support/node-driver.c:240: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  238|   	if (SPA_ABS(err) > max_resync) {
#  239|   		/* Clock jump */
#  240|-> 		spa_log_info(log, "nsec err %"PRIi64" > max_resync %"PRIi64", resetting",
#  241|   				err, max_resync);
#  242|   		off->offset = offset;

Error: CPPCHECK_WARNING (CWE-190): [#def968]
pipewire-1.4.2/spa/plugins/support/node-driver.c:251: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  249|   	off->err += (SPA_ABS(err) - off->err) / n;
#  250|   
#  251|-> 	spa_log_trace(log, "clock offset %"PRIi64" err:%"PRIi64" abs-err:%"PRIi64,
#  252|   			off->offset, err, off->err);
#  253|   

Error: CPPCHECK_WARNING (CWE-190): [#def969]
pipewire-1.4.2/spa/plugins/support/node-driver.c:281: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  279|   	following = is_following(this);
#  280|   	if (following != this->following) {
#  281|-> 		spa_log_debug(this->log, "%p: reassign follower %d->%d", this, this->following, following);
#  282|   		this->following = following;
#  283|   		spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);

Error: CPPCHECK_WARNING (CWE-190): [#def970]
pipewire-1.4.2/spa/plugins/support/node-driver.c:336: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  334|   				this->timer_source.fd, &expirations)) < 0) {
#  335|   		if (res != -EAGAIN)
#  336|-> 			spa_log_error(this->log, "%p: timerfd error: %s",
#  337|   					this, spa_strerror(res));
#  338|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def971]
pipewire-1.4.2/spa/plugins/support/node-driver.c:383: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  381|   		if (fabs(err) > this->max_error) {
#  382|   			if (fabs(err) > this->max_resync) {
#  383|-> 				spa_log_warn(this->log, "err %f > max_resync %f, resetting",
#  384|   						err, this->max_resync);
#  385|   				spa_dll_set_bw(&this->dll, SPA_DLL_BW_MIN, duration, rate);

Error: CPPCHECK_WARNING (CWE-190): [#def972]
pipewire-1.4.2/spa/plugins/support/node-driver.c:401: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  399|   	if (SPA_UNLIKELY((this->next_time - this->base_time) > BW_PERIOD)) {
#  400|   		this->base_time = this->next_time;
#  401|-> 		spa_log_debug(this->log, "%p: rate:%f "
#  402|   			"bw:%f dur:%"PRIu64" max:%f drift:%f",
#  403|   				this, corr, this->dll.bw, duration,

Error: CPPCHECK_WARNING (CWE-190): [#def973]
pipewire-1.4.2/spa/plugins/support/node-driver.c:482: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  480|   
#  481|   		this->info.props = &SPA_DICT_INIT(items, 3);
#  482|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  483|   		this->info.change_mask = old;
#  484|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def974]
pipewire-1.4.2/spa/plugins/support/node-driver.c:525: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  523|   
#  524|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  525|-> 	spa_log_trace(this->log, "process %d", this->props.freewheel);
#  526|   
#  527|   	if (this->props.freewheel &&

Error: CPPCHECK_WARNING (CWE-190): [#def975]
pipewire-1.4.2/spa/plugins/support/node-driver.c:642: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  640|   
#  641|   	if (this->data_loop == NULL) {
#  642|-> 		spa_log_error(this->log, "a data_loop is needed");
#  643|   		return -EINVAL;
#  644|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def976]
pipewire-1.4.2/spa/plugins/support/node-driver.c:646: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  644|   	}
#  645|   	if (this->data_system == NULL) {
#  646|-> 		spa_log_error(this->log, "a data_system is needed");
#  647|   		return -EINVAL;
#  648|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def977]
pipewire-1.4.2/spa/plugins/support/node-driver.c:681: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  679|   			this->props.clock_id = clock_name_to_id(s);
#  680|   			if (this->props.clock_id == -1) {
#  681|-> 				spa_log_warn(this->log, "unknown clock id '%s'", s);
#  682|   				this->props.clock_id = DEFAULT_CLOCK_ID;
#  683|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def978]
pipewire-1.4.2/spa/plugins/support/node-driver.c:691: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  689|   
#  690|   			if (this->clock_fd == -1) {
#  691|-> 				spa_log_warn(this->log, "failed to open clock device '%s': %m", s);
#  692|   			} else {
#  693|   				this->props.clock_id = FD_TO_CLOCKID(this->clock_fd);

Error: CPPCHECK_WARNING (CWE-190): [#def979]
pipewire-1.4.2/spa/plugins/support/node-driver.c:698: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  696|   			int phc_index = get_phc_index(this->data_system, s);
#  697|   			if (phc_index < 0) {
#  698|-> 				spa_log_warn(this->log, "failed to get phc device index for interface '%s': %s",
#  699|   						s, spa_strerror(phc_index));
#  700|   			} else {

Error: CPPCHECK_WARNING (CWE-190): [#def980]
pipewire-1.4.2/spa/plugins/support/node-driver.c:705: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  703|   				this->clock_fd = open(dev, O_RDONLY);
#  704|   				if (this->clock_fd == -1) {
#  705|-> 					spa_log_warn(this->log, "failed to open clock device '%s' "
#  706|   							"for interface '%s': %m", dev, s);
#  707|   				} else {

Error: CPPCHECK_WARNING (CWE-190): [#def981]
pipewire-1.4.2/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): [#def982]
pipewire-1.4.2/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): [#def983]
pipewire-1.4.2/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_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);

Error: CPPCHECK_WARNING (CWE-190): [#def984]
pipewire-1.4.2/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): [#def985]
pipewire-1.4.2/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): [#def986]
pipewire-1.4.2/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): [#def987]
pipewire-1.4.2/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): [#def988]
pipewire-1.4.2/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): [#def989]
pipewire-1.4.2/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): [#def990]
pipewire-1.4.2/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): [#def991]
pipewire-1.4.2/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): [#def992]
pipewire-1.4.2/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): [#def993]
pipewire-1.4.2/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): [#def994]
pipewire-1.4.2/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): [#def995]
pipewire-1.4.2/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): [#def996]
pipewire-1.4.2/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): [#def997]
pipewire-1.4.2/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): [#def998]
pipewire-1.4.2/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): [#def999]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def1000]
pipewire-1.4.2/spa/plugins/videoconvert/videoadapter.c:783: error[uninitvar]: Uninitialized variable: mode
#  781|   		}
#  782|   
#  783|-> 		switch (mode) {
#  784|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  785|   			return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-457): [#def1001]
pipewire-1.4.2/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): [#def1002]
pipewire-1.4.2/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): [#def1003]
pipewire-1.4.2/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): [#def1004]
pipewire-1.4.2/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): [#def1005]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-369): [#def1006]
pipewire-1.4.2/src/examples/video-src-fixate.c:414: error[zerodiv]: Division by zero.
#  412|   			} else {
#  413|   				// Use the allocator to find the best modifier from the list
#  414|-> 				modifier = modifiers[rand()%n_modifiers];
#  415|   			}
#  416|   

Error: CPPCHECK_WARNING (CWE-190): [#def1007]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:119: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  117|   		return -EINVAL;
#  118|   
#  119|-> 	pw_proxy_notify(proxy, struct spa_device_methods, sync, 0, seq);
#  120|   	return 0;
#  121|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1008]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:160: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  158|   		return -EINVAL;
#  159|   
#  160|-> 	pw_proxy_notify(proxy, struct spa_device_methods, enum_params, 0,
#  161|   					seq, id, index, max, filter);
#  162|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1009]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:196: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  194|   		return -EINVAL;
#  195|   
#  196|-> 	pw_proxy_notify(proxy, struct spa_device_methods, set_param, 0,
#  197|   					id, flags, param);
#  198|   	return 0;

Error: CPPCHECK_WARNING (CWE-457): [#def1010]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:260: error[uninitvar]: Uninitialized variable: ipod
#  258|   		return -EINVAL;
#  259|   
#  260|-> 	if (ipod) {
#  261|   		struct spa_pod_parser p2;
#  262|   		struct spa_pod_frame f2;

Error: CPPCHECK_WARNING (CWE-190): [#def1011]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:285: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  283|   		infop = NULL;
#  284|   	}
#  285|-> 	pw_resource_notify(resource, struct spa_device_events, info, 0, infop);
#  286|   	return 0;
#  287|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1012]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:363: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  361|   	}
#  362|   
#  363|-> 	pw_resource_notify(resource, struct spa_device_events, result, 0, seq, res, type, result);
#  364|   	return 0;
#  365|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1013]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:392: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  390|   		return -EINVAL;
#  391|   
#  392|-> 	pw_resource_notify(resource, struct spa_device_events, event, 0, event);
#  393|   	return 0;
#  394|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1014]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:451: error[uninitvar]: Uninitialized variable: ipod
#  449|   		return -EINVAL;
#  450|   
#  451|-> 	if (ipod) {
#  452|   		struct spa_pod_parser p2;
#  453|   		struct spa_pod_frame f2;

Error: CPPCHECK_WARNING (CWE-190): [#def1015]
pipewire-1.4.2/src/modules/module-client-device/protocol-native.c:474: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  472|   	}
#  473|   
#  474|-> 	pw_resource_notify(resource, struct spa_device_events, object_info, 0, id, infop);
#  475|   	return 0;
#  476|   }

Error: CPPCHECK_WARNING (CWE-476): [#def1016]
pipewire-1.4.2/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): [#def1017]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:282: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  280|   		struct buffer *b = &mix->buffers[i];
#  281|   
#  282|-> 		spa_log_debug(impl->log, "%p: clear buffer %d", impl, i);
#  283|   		clear_buffer(impl, &b->buffer);
#  284|   		pw_memblock_unref(b->mem);

Error: CPPCHECK_WARNING (CWE-190): [#def1018]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:299: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  297|   	if (mix->n_buffers) {
#  298|   		/* this shouldn't happen */
#  299|-> 		spa_log_warn(impl->log, "%p: mix port-id:%u freeing leaked buffers", impl, mix->mix_id - 1u);
#  300|   	}
#  301|   

Error: CPPCHECK_WARNING (CWE-190): [#def1019]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:358: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  356|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  357|   			pw_log_debug("%p: %d param %u", impl, seq, result.index);
#  358|-> 			spa_node_emit_result(&impl->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  359|   			count++;
#  360|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1020]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:379: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  377|   		return param == NULL ? 0 : -EIO;
#  378|   
#  379|-> 	return pw_client_node_resource_set_param(impl->resource, id, flags, param);
#  380|   }
#  381|   

Error: CPPCHECK_WARNING (CWE-190): [#def1021]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  411|   		return data == NULL ? 0 : -EIO;
#  412|   
#  413|-> 	return pw_client_node_resource_set_io(impl->resource,
#  414|   				       id,
#  415|   				       memid,

Error: CPPCHECK_WARNING (CWE-190): [#def1022]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:434: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  432|   		return -EIO;
#  433|   
#  434|-> 	return pw_client_node_resource_command(impl->resource, command);
#  435|   }
#  436|   

Error: CPPCHECK_WARNING (CWE-190): [#def1023]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:440: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  438|   static void emit_port_info(struct impl *impl, struct port *port)
#  439|   {
#  440|-> 	spa_node_emit_port_info(&impl->hooks,
#  441|   				port->direction, port->id, &port->info);
#  442|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1024]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:508: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  506|   {
#  507|   	if (change_mask & PW_CLIENT_NODE_PORT_UPDATE_PARAMS) {
#  508|-> 		spa_log_debug(impl->log, "%p: port %u update %d params", impl, port->id, n_params);
#  509|   		update_params(&port->params, n_params, params);
#  510|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1025]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:527: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  525|   			port->info.n_params = 0;
#  526|   			port->info.params = NULL;
#  527|-> 			spa_node_emit_port_info(&impl->hooks, port->direction, port->id, info);
#  528|   		}
#  529|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1026]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:542: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  540|   clear_port(struct impl *impl, struct port *port)
#  541|   {
#  542|-> 	spa_log_debug(impl->log, "%p: clear port %p", impl, port);
#  543|   
#  544|   	do_update_port(impl, port,

Error: CPPCHECK_WARNING (CWE-190): [#def1027]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:555: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  553|   
#  554|   	if (!port->removed)
#  555|-> 		spa_node_emit_port_info(&impl->hooks, port->direction, port->id, NULL);
#  556|   }
#  557|   

Error: CPPCHECK_WARNING (CWE-190): [#def1028]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:570: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  568|   		return -EIO;
#  569|   
#  570|-> 	return pw_client_node_resource_add_port(impl->resource, direction, port_id, props);
#  571|   }
#  572|   

Error: CPPCHECK_WARNING (CWE-190): [#def1029]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:584: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  582|   		return -EIO;
#  583|   
#  584|-> 	return pw_client_node_resource_remove_port(impl->resource, direction, port_id);
#  585|   }
#  586|   

Error: CPPCHECK_WARNING (CWE-190): [#def1030]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:632: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  630|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  631|   			pw_log_debug("%p: %d param %u", impl, seq, result.index);
#  632|-> 			spa_node_emit_result(hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  633|   			count++;
#  634|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1031]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:686: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  684|   		return param == NULL ? 0 : -EIO;
#  685|   
#  686|-> 	return pw_client_node_resource_port_set_param(impl->resource,
#  687|   					       direction, port_id,
#  688|   					       id, flags,

Error: CPPCHECK_WARNING (CWE-190): [#def1032]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:739: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  737|   		return data == NULL ? 0 : -EIO;
#  738|   
#  739|-> 	return pw_client_node_resource_port_set_io(impl->resource,
#  740|   					    direction, port_id,
#  741|   					    mix_id,

Error: CPPCHECK_WARNING (CWE-190): [#def1033]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:781: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  779|   		return -ENOSPC;
#  780|   
#  781|-> 	spa_log_debug(impl->log, "%p: %s port %d.%d use buffers %p %u flags:%08x", impl,
#  782|   			direction == SPA_DIRECTION_INPUT ? "input" : "output",
#  783|   			port_id, mix_id, buffers, n_buffers, flags);

Error: CPPCHECK_WARNING (CWE-190): [#def1034]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:851: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  849|   		mb[i].offset = SPA_PTRDIFF(baseptr, mem->map->ptr);
#  850|   		mb[i].size = SPA_PTRDIFF(endptr, baseptr);
#  851|-> 		spa_log_debug(impl->log, "%p: buffer %d %d %d %d", impl, i, mb[i].mem_id,
#  852|   				mb[i].offset, mb[i].size);
#  853|   

Error: CPPCHECK_WARNING (CWE-190): [#def1035]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:881: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  879|   					flags |= PW_MEMBLOCK_FLAG_WRITABLE;
#  880|   
#  881|-> 				spa_log_debug(impl->log, "mem %d type:%d fd:%d", j, d->type, (int)d->fd);
#  882|   				m = pw_mempool_import(impl->client_pool,
#  883|   					flags, d->type, d->fd);

Error: CPPCHECK_WARNING (CWE-190): [#def1036]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:892: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  890|   			}
#  891|   			case SPA_DATA_MemPtr:
#  892|-> 				spa_log_debug(impl->log, "mem %d %zd", j, SPA_PTRDIFF(d->data, baseptr));
#  893|   				b->datas[j].data = SPA_INT_TO_PTR(SPA_PTRDIFF(d->data, baseptr));
#  894|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def1037]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:898: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  896|   				b->datas[j].type = SPA_ID_INVALID;
#  897|   				b->datas[j].data = NULL;
#  898|-> 				spa_log_error(impl->log, "invalid memory type %d", d->type);
#  899|   				break;
#  900|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def1038]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:905: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  903|   	mix->n_buffers = n_buffers;
#  904|   
#  905|-> 	return pw_client_node_resource_port_use_buffers(impl->resource,
#  906|   						 direction, port_id, mix_id, flags,
#  907|   						 n_buffers, mb);

Error: CPPCHECK_WARNING (CWE-190): [#def1039]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:947: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  945|   	/* this should not be called, we call the exported node
#  946|   	 * directly */
#  947|-> 	spa_log_warn(impl->log, "exported node activation");
#  948|   	spa_system_clock_gettime(impl->data_system, CLOCK_MONOTONIC, &ts);
#  949|   	n->rt.target.activation->status = PW_NODE_ACTIVATION_TRIGGERED;

Error: CPPCHECK_WARNING (CWE-190): [#def1040]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:989: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  987|   	}
#  988|   	if (change_mask & PW_CLIENT_NODE_UPDATE_INFO) {
#  989|-> 		spa_node_emit_info(&impl->hooks, info);
#  990|   	}
#  991|   	pw_log_debug("%p: got node update", impl);

Error: CPPCHECK_WARNING (CWE-190): [#def1041]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1008: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1006|   	bool remove;
# 1007|   
# 1008|-> 	spa_log_debug(impl->log, "%p: got port update change:%08x params:%d",
# 1009|   			impl, change_mask, n_params);
# 1010|   

Error: CPPCHECK_WARNING (CWE-190): [#def1042]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1046: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1044|   {
# 1045|   	struct impl *impl = data;
# 1046|-> 	spa_log_debug(impl->log, "%p: active:%d", impl, active);
# 1047|   	return pw_impl_node_set_active(impl->this.node, active);
# 1048|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1043]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1053: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1051|   {
# 1052|   	struct impl *impl = data;
# 1053|-> 	spa_node_emit_event(&impl->hooks, event);
# 1054|   	return 0;
# 1055|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1044]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1069: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1067|   	uint32_t i, j;
# 1068|   
# 1069|-> 	spa_log_debug(impl->log, "%p: %s port %d.%d buffers %p %u", impl,
# 1070|   			direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 1071|   			port_id, mix_id, buffers, n_buffers);

Error: CPPCHECK_WARNING (CWE-190): [#def1045]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1097: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1095|   		newbuf = buffers[i];
# 1096|   
# 1097|-> 		spa_log_debug(impl->log, "buffer %d n_datas:%d", i, newbuf->n_datas);
# 1098|   
# 1099|   		for (j = 0; j < b->buffer.n_datas; j++) {

Error: CPPCHECK_WARNING (CWE-190): [#def1046]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1106: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1104|   			if (d->type == SPA_DATA_MemFd &&
# 1105|   			    !SPA_FLAG_IS_SET(flags, SPA_DATA_FLAG_MAPPABLE)) {
# 1106|-> 				spa_log_debug(impl->log, "buffer:%d data:%d has non mappable MemFd, "
# 1107|   						"fixing to ensure backwards compatibility.",
# 1108|   						i, j);

Error: CPPCHECK_WARNING (CWE-190): [#def1047]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1121: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1119|   			b->datas[j].fd = d->fd;
# 1120|   
# 1121|-> 			spa_log_debug(impl->log, " data %d type:%d fl:%08x fd:%d, offs:%d max:%d",
# 1122|   					j, d->type, flags, (int) d->fd, d->mapoffset,
# 1123|   					d->maxsize);

Error: CPPCHECK_WARNING (CWE-190): [#def1048]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1148: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1146|   
# 1147|   	if (SPA_UNLIKELY(source->rmask & (SPA_IO_ERR | SPA_IO_HUP))) {
# 1148|-> 		spa_log_warn(impl->log, "%p: got error", impl);
# 1149|   		return;
# 1150|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1049]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1169: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1167|   		} else {
# 1168|   			spa_log_trace_fp(impl->log, "%p: got complete", impl);
# 1169|-> 			pw_impl_node_rt_emit_complete(node);
# 1170|   		}
# 1171|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1050]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1261: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1259|   	pw_log_error("%p: error seq:%d %d (%s)", impl, seq, res, message);
# 1260|   	result.message = message;
# 1261|-> 	spa_node_emit_result(&impl->hooks, seq, res, SPA_RESULT_TYPE_NODE_ERROR, &result);
# 1262|   }
# 1263|   

Error: CPPCHECK_WARNING (CWE-190): [#def1051]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1268: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1266|   	struct impl *impl = data;
# 1267|   	pw_log_debug("%p: got pong, emit result %d", impl, seq);
# 1268|-> 	spa_node_emit_result(&impl->hooks, seq, 0, 0, NULL);
# 1269|   }
# 1270|   

Error: CPPCHECK_WARNING (CWE-190): [#def1052]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1288: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1286|   		return;
# 1287|   
# 1288|-> 	pw_client_node_resource_set_activation(impl->resource,
# 1289|   					  peer->info.id,
# 1290|   					  peer->source.fd,

Error: CPPCHECK_WARNING (CWE-190): [#def1053]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1312: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1310|   
# 1311|   	if (impl->resource != NULL) {
# 1312|-> 		pw_client_node_resource_set_activation(impl->resource,
# 1313|   					  peer->info.id,
# 1314|   					  -1,

Error: CPPCHECK_WARNING (CWE-190): [#def1054]
pipewire-1.4.2/src/modules/module-client-node/client-node.c:1343: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1341|   	pw_resource_set_bound_id(impl->resource, node_id);
# 1342|   
# 1343|-> 	pw_client_node_resource_transport(impl->resource,
# 1344|   					  this->node->source.fd,
# 1345|   					  impl->data_source.fd,

Error: CPPCHECK_WARNING (CWE-190): [#def1055]
pipewire-1.4.2/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): [#def1056]
pipewire-1.4.2/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): [#def1057]
pipewire-1.4.2/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): [#def1058]
pipewire-1.4.2/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): [#def1059]
pipewire-1.4.2/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): [#def1060]
pipewire-1.4.2/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): [#def1061]
pipewire-1.4.2/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): [#def1062]
pipewire-1.4.2/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): [#def1063]
pipewire-1.4.2/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): [#def1064]
pipewire-1.4.2/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): [#def1065]
pipewire-1.4.2/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): [#def1066]
pipewire-1.4.2/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): [#def1067]
pipewire-1.4.2/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): [#def1068]
pipewire-1.4.2/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): [#def1069]
pipewire-1.4.2/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): [#def1070]
pipewire-1.4.2/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): [#def1071]
pipewire-1.4.2/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): [#def1072]
pipewire-1.4.2/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): [#def1073]
pipewire-1.4.2/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): [#def1074]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1075]
pipewire-1.4.2/src/modules/module-client-node/v0/client-node.c:178: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  176|   	m->flags = flags;
#  177|   
#  178|-> 	pw_client_node0_resource_add_mem(impl->node.resource,
#  179|   					m->id,
#  180|   					type,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1114]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1115]
pipewire-1.4.2/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): [#def1116]
pipewire-1.4.2/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): [#def1117]
pipewire-1.4.2/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): [#def1118]
pipewire-1.4.2/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): [#def1119]
pipewire-1.4.2/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): [#def1120]
pipewire-1.4.2/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): [#def1121]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1122]
pipewire-1.4.2/src/modules/module-protocol-native.c:1167: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1165|   		impl->source = NULL;
# 1166|   	}
# 1167|-> 	pw_proxy_notify(core_proxy,
# 1168|   			struct pw_core_events, error, 0, 0,
# 1169|   			this->recv_seq, res, "connection error");

Error: CPPCHECK_WARNING (CWE-190): [#def1123]
pipewire-1.4.2/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): [#def1124]
pipewire-1.4.2/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): [#def1125]
pipewire-1.4.2/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): [#def1126]
pipewire-1.4.2/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): [#def1127]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:316: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  314|   	parse_dict_struct(&prs, &f[1], &props);
#  315|   
#  316|-> 	return pw_proxy_notify(proxy, struct pw_core_events, info, 0, &info);
#  317|   }
#  318|   

Error: CPPCHECK_WARNING (CWE-457): [#def1128]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:331: error[uninitvar]: Uninitialized variable: id
#  329|   		return -EINVAL;
#  330|   
#  331|-> 	if (id == SPA_ID_INVALID)
#  332|   		return 0;
#  333|   

Error: CPPCHECK_WARNING (CWE-190): [#def1129]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  332|   		return 0;
#  333|   
#  334|-> 	return pw_proxy_notify(proxy, struct pw_core_events, done, 0, id, seq);
#  335|   }
#  336|   

Error: CPPCHECK_WARNING (CWE-190): [#def1130]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:349: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  347|   		return -EINVAL;
#  348|   
#  349|-> 	return pw_proxy_notify(proxy, struct pw_core_events, ping, 0, id, seq);
#  350|   }
#  351|   

Error: CPPCHECK_WARNING (CWE-190): [#def1131]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:368: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  366|   		return -EINVAL;
#  367|   
#  368|-> 	return pw_proxy_notify(proxy, struct pw_core_events, error, 0, id, seq, res, error);
#  369|   }
#  370|   

Error: CPPCHECK_WARNING (CWE-190): [#def1132]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  379|   		return -EINVAL;
#  380|   
#  381|-> 	return pw_proxy_notify(proxy, struct pw_core_events, remove_id, 0, id);
#  382|   }
#  383|   

Error: CPPCHECK_WARNING (CWE-190): [#def1133]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:399: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  397|   	/* old client / old/new server -> bound_id
#  398|   	 * new client / old server     -> bound_id + bound_props (in case it's using bound_props only) */
#  399|-> 	pw_proxy_notify(proxy, struct pw_core_events, bound_id, 0, id, global_id);
#  400|   	return pw_proxy_notify(proxy, struct pw_core_events, bound_props, 1, id, global_id, &props);
#  401|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1134]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:422: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  420|   
#  421|   	/* new client / new server -> bound_props + bound_id (in case it's not using bound_props yet) */
#  422|-> 	pw_proxy_notify(proxy, struct pw_core_events, bound_id, 0, id, global_id);
#  423|   	return pw_proxy_notify(proxy, struct pw_core_events, bound_props, 1, id, global_id, &props);
#  424|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1135]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:444: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  442|   	fd = pw_protocol_native_get_proxy_fd(proxy, idx);
#  443|   
#  444|-> 	return pw_proxy_notify(proxy, struct pw_core_events, add_mem, 0, id, type, fd, flags);
#  445|   }
#  446|   

Error: CPPCHECK_WARNING (CWE-190): [#def1136]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:458: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  456|   		return -EINVAL;
#  457|   
#  458|-> 	return pw_proxy_notify(proxy, struct pw_core_events, remove_mem, 0, id);
#  459|   }
#  460|   

Error: CPPCHECK_WARNING (CWE-190): [#def1137]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:616: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  614|   		return -EINVAL;
#  615|   
#  616|-> 	return pw_resource_notify(resource, struct pw_core_methods, hello, 0, version);
#  617|   }
#  618|   

Error: CPPCHECK_WARNING (CWE-190): [#def1138]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:631: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  629|   		return -EINVAL;
#  630|   
#  631|-> 	return pw_resource_notify(resource, struct pw_core_methods, sync, 0, id, seq);
#  632|   }
#  633|   

Error: CPPCHECK_WARNING (CWE-190): [#def1139]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:646: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  644|   		return -EINVAL;
#  645|   
#  646|-> 	return pw_resource_notify(resource, struct pw_core_methods, pong, 0, id, seq);
#  647|   }
#  648|   

Error: CPPCHECK_WARNING (CWE-190): [#def1140]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:665: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  663|   		return -EINVAL;
#  664|   
#  665|-> 	return pw_resource_notify(resource, struct pw_core_methods, error, 0, id, seq, res, error);
#  666|   }
#  667|   

Error: CPPCHECK_WARNING (CWE-190): [#def1141]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:680: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  678|   		return -EINVAL;
#  679|   
#  680|-> 	return pw_resource_notify(resource, struct pw_core_methods, get_registry, 0, version, new_id);
#  681|   }
#  682|   

Error: CPPCHECK_WARNING (CWE-190): [#def1142]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:707: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  705|   		return -EINVAL;
#  706|   
#  707|-> 	return pw_resource_notify(resource, struct pw_core_methods, create_object, 0, factory_name,
#  708|   								      type, version,
#  709|   								      &props, new_id);

Error: CPPCHECK_WARNING (CWE-190): [#def1143]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:730: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  728|   		goto no_resource;
#  729|   
#  730|-> 	return pw_resource_notify(resource, struct pw_core_methods, destroy, 0, r);
#  731|   
#  732|         no_resource:

Error: CPPCHECK_WARNING (CWE-190): [#def1144]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:797: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  795|   		return -EINVAL;
#  796|   
#  797|-> 	return pw_resource_notify(resource, struct pw_registry_methods, bind, 0, id, type, version, new_id);
#  798|   }
#  799|   

Error: CPPCHECK_WARNING (CWE-190): [#def1145]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:811: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  809|   		return -EINVAL;
#  810|   
#  811|-> 	return pw_resource_notify(resource, struct pw_registry_methods, destroy, 0, id);
#  812|   }
#  813|   

Error: CPPCHECK_WARNING (CWE-190): [#def1146]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:866: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  864|   	parse_dict_struct(&prs, &f[1], &props);
#  865|   
#  866|-> 	return pw_proxy_notify(proxy, struct pw_module_events, info, 0, &info);
#  867|   }
#  868|   

Error: CPPCHECK_WARNING (CWE-190): [#def1147]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:917: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  915|   	parse_params_struct(&prs, &f[1], info.params, info.n_params);
#  916|   
#  917|-> 	return pw_proxy_notify(proxy, struct pw_device_events, info, 0, &info);
#  918|   }
#  919|   

Error: CPPCHECK_WARNING (CWE-190): [#def1148]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:955: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  953|   		return -EINVAL;
#  954|   
#  955|-> 	return pw_proxy_notify(proxy, struct pw_device_events, param, 0,
#  956|   			seq, id, index, next, param);
#  957|   }

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

Error: CPPCHECK_WARNING (CWE-190): [#def1150]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:987: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  985|   		return -EINVAL;
#  986|   
#  987|-> 	return pw_resource_notify(resource, struct pw_device_methods, subscribe_params, 0,
#  988|   			ids, n_ids);
#  989|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1151]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1027: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1025|   		return -EINVAL;
# 1026|   
# 1027|-> 	return pw_resource_notify(resource, struct pw_device_methods, enum_params, 0,
# 1028|   			seq, id, index, num, filter);
# 1029|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1152]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1060: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1058|   		return -EINVAL;
# 1059|   
# 1060|-> 	return pw_resource_notify(resource, struct pw_device_methods, set_param, 0, id, flags, param);
# 1061|   }
# 1062|   

Error: CPPCHECK_WARNING (CWE-190): [#def1153]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1115: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1113|   	parse_dict_struct(&prs, &f[1], &props);
# 1114|   
# 1115|-> 	return pw_proxy_notify(proxy, struct pw_factory_events, info, 0, &info);
# 1116|   }
# 1117|   

Error: CPPCHECK_WARNING (CWE-190): [#def1154]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1178: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1176|   	parse_params_struct(&prs, &f[1], info.params, info.n_params);
# 1177|   
# 1178|-> 	return pw_proxy_notify(proxy, struct pw_node_events, info, 0, &info);
# 1179|   }
# 1180|   

Error: CPPCHECK_WARNING (CWE-190): [#def1155]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1216: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1214|   		return -EINVAL;
# 1215|   
# 1216|-> 	return pw_proxy_notify(proxy, struct pw_node_events, param, 0,
# 1217|   			seq, id, index, next, param);
# 1218|   }

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

Error: CPPCHECK_WARNING (CWE-190): [#def1157]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1248: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1246|   		return -EINVAL;
# 1247|   
# 1248|-> 	return pw_resource_notify(resource, struct pw_node_methods, subscribe_params, 0,
# 1249|   			ids, n_ids);
# 1250|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1158]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1288: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1286|   		return -EINVAL;
# 1287|   
# 1288|-> 	return pw_resource_notify(resource, struct pw_node_methods, enum_params, 0,
# 1289|   			seq, id, index, num, filter);
# 1290|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1159]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1321: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1319|   		return -EINVAL;
# 1320|   
# 1321|-> 	return pw_resource_notify(resource, struct pw_node_methods, set_param, 0, id, flags, param);
# 1322|   }
# 1323|   

Error: CPPCHECK_WARNING (CWE-457): [#def1160]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1346: error[uninitvar]: Uninitialized variable: command
# 1344|   		return -EINVAL;
# 1345|   
# 1346|-> 	if (command == NULL)
# 1347|   		return -EINVAL;
# 1348|   

Error: CPPCHECK_WARNING (CWE-190): [#def1161]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1349: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1347|   		return -EINVAL;
# 1348|   
# 1349|-> 	return pw_resource_notify(resource, struct pw_node_methods, send_command, 0, command);
# 1350|   }
# 1351|   

Error: CPPCHECK_WARNING (CWE-190): [#def1162]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1400|   	parse_params_struct(&prs, &f[1], info.params, info.n_params);
# 1401|   
# 1402|-> 	return pw_proxy_notify(proxy, struct pw_port_events, info, 0, &info);
# 1403|   }
# 1404|   

Error: CPPCHECK_WARNING (CWE-190): [#def1163]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1440: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1438|   		return -EINVAL;
# 1439|   
# 1440|-> 	return pw_proxy_notify(proxy, struct pw_port_events, param, 0,
# 1441|   			seq, id, index, next, param);
# 1442|   }

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

Error: CPPCHECK_WARNING (CWE-190): [#def1165]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1472: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1470|   		return -EINVAL;
# 1471|   
# 1472|-> 	return pw_resource_notify(resource, struct pw_port_methods, subscribe_params, 0,
# 1473|   			ids, n_ids);
# 1474|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1166]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1512: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1510|   		return -EINVAL;
# 1511|   
# 1512|-> 	return pw_resource_notify(resource, struct pw_port_methods, enum_params, 0,
# 1513|   			seq, id, index, num, filter);
# 1514|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1167]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1562: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1560|   	parse_dict_struct(&prs, &f[1], &props);
# 1561|   
# 1562|-> 	return pw_proxy_notify(proxy, struct pw_client_events, info, 0, &info);
# 1563|   }
# 1564|   

Error: CPPCHECK_WARNING (CWE-190): [#def1168]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1613: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1611|   	parse_permissions_struct(&prs, &f[1], n_permissions, permissions);
# 1612|   
# 1613|-> 	return pw_proxy_notify(proxy, struct pw_client_events, permissions, 0, index, n_permissions, permissions);
# 1614|   }
# 1615|   

Error: CPPCHECK_WARNING (CWE-190): [#def1169]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1643: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1641|   		return -EINVAL;
# 1642|   
# 1643|-> 	return pw_resource_notify(resource, struct pw_client_methods, error, 0, id, res, error);
# 1644|   }
# 1645|   

Error: CPPCHECK_WARNING (CWE-190): [#def1170]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1688: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1686|   	parse_dict_struct(&prs, &f[1], &props);
# 1687|   
# 1688|-> 	return pw_resource_notify(resource, struct pw_client_methods, update_properties, 0,
# 1689|   			&props);
# 1690|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1171]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1704: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1702|   		return -EINVAL;
# 1703|   
# 1704|-> 	return pw_resource_notify(resource, struct pw_client_methods, get_permissions, 0, index, num);
# 1705|   }
# 1706|   

Error: CPPCHECK_WARNING (CWE-190): [#def1172]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1740: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1738|   	parse_permissions_struct(&prs, &f[0], n_permissions, permissions);
# 1739|   
# 1740|-> 	return pw_resource_notify(resource, struct pw_client_methods, update_permissions, 0,
# 1741|   			n_permissions, permissions);
# 1742|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1173]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1804: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1802|   	parse_dict_struct(&prs, &f[1], &props);
# 1803|   
# 1804|-> 	return pw_proxy_notify(proxy, struct pw_link_events, info, 0, &info);
# 1805|   }
# 1806|   

Error: CPPCHECK_WARNING (CWE-190): [#def1174]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1827: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1825|   	parse_dict_struct(&prs, &f[1], &props);
# 1826|   
# 1827|-> 	return pw_proxy_notify(proxy, struct pw_registry_events,
# 1828|   			global, 0, id, permissions, type, version, &props);
# 1829|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1175]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1842: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1840|   		return -EINVAL;
# 1841|   
# 1842|-> 	return pw_proxy_notify(proxy, struct pw_registry_events, global_remove, 0, id);
# 1843|   }
# 1844|   

Error: CPPCHECK_WARNING (CWE-190): [#def1176]
pipewire-1.4.2/src/modules/module-protocol-native/protocol-native.c:1935: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1933|   	close_fd = pw_protocol_native_get_resource_fd(resource, close_idx);
# 1934|   
# 1935|-> 	return pw_resource_notify(resource, struct pw_security_context_methods, create, 0,
# 1936|   			listen_fd, close_fd, &props);
# 1937|   }

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

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

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

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

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

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

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

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

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

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

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

Error: CPPCHECK_WARNING (CWE-457): [#def1189]
pipewire-1.4.2/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): [#def1190]
pipewire-1.4.2/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): [#def1191]
pipewire-1.4.2/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): [#def1192]
pipewire-1.4.2/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): [#def1193]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def1194]
pipewire-1.4.2/src/modules/module-protocol-pulse/collect.c:461: error[uninitvar]: Uninitialized variable: dir
#  459|   				SPA_PARAM_ROUTE_name, SPA_POD_String(&name)) < 0)
#  460|   			continue;
#  461|-> 		if (dir != direction)
#  462|   			continue;
#  463|   		if (spa_streq(name, port_name))

Error: CPPCHECK_WARNING (CWE-457): [#def1195]
pipewire-1.4.2/src/modules/module-protocol-pulse/collect.c:524: error[uninitvar]: Uninitialized variable: iid
#  522|   			continue;
#  523|   
#  524|-> 		if (iid != SPA_PROP_bluetoothAudioCodec)
#  525|   			continue;
#  526|   

Error: CPPCHECK_WARNING (CWE-457): [#def1196]
pipewire-1.4.2/src/modules/module-protocol-pulse/collect.c:583: error[uninitvar]: Uninitialized variable: id
#  581|   
#  582|   		for (j = 0; j < n_codecs; ++j) {
#  583|-> 			if (codecs[j].id == id)
#  584|   				*active = j;
#  585|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def1197]
pipewire-1.4.2/src/modules/module-protocol-pulse/manager.c:390: error[uninitvar]: Uninitialized variable: device
#  388|   			return;
#  389|   
#  390|-> 		if ((dev = find_device(m, o->this.id, device)) != NULL) {
#  391|   			dev->changed++;
#  392|   			core_sync(o->manager);

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

Error: CPPCHECK_WARNING (CWE-401): [#def1200]
pipewire-1.4.2/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): [#def1201]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def1202]
pipewire-1.4.2/src/modules/module-pulse-tunnel.c:854: warning[uninitvar]: Uninitialized variable: vols
#  852|   	spa_pod_builder_prop(&b, SPA_PROP_channelVolumes, 0);
#  853|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
#  854|-> 			impl->volume.channels, vols);
#  855|   	spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
#  856|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,

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

Error: COMPILER_WARNING (CWE-252): [#def1204]
pipewire-1.4.2/src/modules/module-raop/rtsp-client.c: scope_hint: In function ‘handle_connect’
pipewire-1.4.2/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): [#def1205]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def1206]
pipewire-1.4.2/src/modules/module-rt.c:734: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: this
#  732|   
#  733|   	this = calloc(1, sizeof(*this));
#  734|-> 	this->impl = impl;
#  735|   	this->start = start_routine;
#  736|   	this->arg = arg;

Error: CPPCHECK_WARNING (CWE-190): [#def1207]
pipewire-1.4.2/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): [#def1208]
pipewire-1.4.2/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): [#def1209]
pipewire-1.4.2/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): [#def1210]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1211]
pipewire-1.4.2/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): [#def1212]
pipewire-1.4.2/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): [#def1213]
pipewire-1.4.2/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): [#def1214]
pipewire-1.4.2/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): [#def1215]
pipewire-1.4.2/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): [#def1216]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1217]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1218]
pipewire-1.4.2/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): [#def1219]
pipewire-1.4.2/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): [#def1220]
pipewire-1.4.2/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): [#def1221]
pipewire-1.4.2/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): [#def1222]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1223]
pipewire-1.4.2/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): [#def1224]
pipewire-1.4.2/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): [#def1225]
pipewire-1.4.2/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): [#def1226]
pipewire-1.4.2/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): [#def1227]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1228]
pipewire-1.4.2/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): [#def1229]
pipewire-1.4.2/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): [#def1230]
pipewire-1.4.2/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): [#def1231]
pipewire-1.4.2/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): [#def1232]
pipewire-1.4.2/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): [#def1233]
pipewire-1.4.2/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): [#def1234]
pipewire-1.4.2/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): [#def1235]
pipewire-1.4.2/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): [#def1236]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1237]
pipewire-1.4.2/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): [#def1238]
pipewire-1.4.2/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): [#def1239]
pipewire-1.4.2/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): [#def1240]
pipewire-1.4.2/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): [#def1241]
pipewire-1.4.2/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): [#def1242]
pipewire-1.4.2/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): [#def1243]
pipewire-1.4.2/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): [#def1244]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1245]
pipewire-1.4.2/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): [#def1246]
pipewire-1.4.2/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): [#def1247]
pipewire-1.4.2/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): [#def1248]
pipewire-1.4.2/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): [#def1249]
pipewire-1.4.2/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): [#def1250]
pipewire-1.4.2/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): [#def1251]
pipewire-1.4.2/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): [#def1252]
pipewire-1.4.2/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): [#def1253]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1254]
pipewire-1.4.2/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): [#def1255]
pipewire-1.4.2/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): [#def1256]
pipewire-1.4.2/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): [#def1257]
pipewire-1.4.2/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): [#def1258]
pipewire-1.4.2/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): [#def1259]
pipewire-1.4.2/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): [#def1260]
pipewire-1.4.2/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): [#def1261]
pipewire-1.4.2/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): [#def1262]
pipewire-1.4.2/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): [#def1263]
pipewire-1.4.2/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): [#def1264]
pipewire-1.4.2/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): [#def1265]
pipewire-1.4.2/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): [#def1266]
pipewire-1.4.2/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): [#def1267]
pipewire-1.4.2/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): [#def1268]
pipewire-1.4.2/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): [#def1269]
pipewire-1.4.2/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): [#def1270]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:1287: error[uninitvar]: Uninitialized variable: ctype
# 1285|   		return -EINVAL;
# 1286|   
# 1287|-> 	if (ctype != SPA_TYPE_Id)
# 1288|   		return -EINVAL;
# 1289|   

Error: CPPCHECK_WARNING (CWE-190): [#def1271]
pipewire-1.4.2/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): [#def1272]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:1307: error[uninitvar]: Uninitialized variable: ctype
# 1305|   		return -EINVAL;
# 1306|   
# 1307|-> 	if (ctype != SPA_TYPE_Id)
# 1308|   		return -EINVAL;
# 1309|   

Error: CPPCHECK_WARNING (CWE-190): [#def1273]
pipewire-1.4.2/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): [#def1274]
pipewire-1.4.2/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): [#def1275]
pipewire-1.4.2/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): [#def1276]
pipewire-1.4.2/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): [#def1277]
pipewire-1.4.2/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): [#def1278]
pipewire-1.4.2/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): [#def1279]
pipewire-1.4.2/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): [#def1280]
pipewire-1.4.2/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): [#def1281]
pipewire-1.4.2/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): [#def1282]
pipewire-1.4.2/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): [#def1283]
pipewire-1.4.2/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): [#def1284]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:1809: error[uninitvar]: Uninitialized variable: ctype
# 1807|   		return -EINVAL;
# 1808|   
# 1809|-> 	if (ctype != SPA_TYPE_Id)
# 1810|   		return -EINVAL;
# 1811|   

Error: CPPCHECK_WARNING (CWE-190): [#def1285]
pipewire-1.4.2/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): [#def1286]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:1829: error[uninitvar]: Uninitialized variable: ctype
# 1827|   		return -EINVAL;
# 1828|   
# 1829|-> 	if (ctype != SPA_TYPE_Id)
# 1830|   		return -EINVAL;
# 1831|   

Error: CPPCHECK_WARNING (CWE-190): [#def1287]
pipewire-1.4.2/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): [#def1288]
pipewire-1.4.2/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): [#def1289]
pipewire-1.4.2/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): [#def1290]
pipewire-1.4.2/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): [#def1291]
pipewire-1.4.2/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): [#def1292]
pipewire-1.4.2/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): [#def1293]
pipewire-1.4.2/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): [#def1294]
pipewire-1.4.2/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): [#def1295]
pipewire-1.4.2/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): [#def1296]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:2323: error[uninitvar]: Uninitialized variable: ctype
# 2321|   		return -EINVAL;
# 2322|   
# 2323|-> 	if (ctype != SPA_TYPE_Id)
# 2324|   		return -EINVAL;
# 2325|   

Error: CPPCHECK_WARNING (CWE-190): [#def1297]
pipewire-1.4.2/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): [#def1298]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:2343: error[uninitvar]: Uninitialized variable: ctype
# 2341|   		return -EINVAL;
# 2342|   
# 2343|-> 	if (ctype != SPA_TYPE_Id)
# 2344|   		return -EINVAL;
# 2345|   

Error: CPPCHECK_WARNING (CWE-190): [#def1299]
pipewire-1.4.2/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): [#def1300]
pipewire-1.4.2/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): [#def1301]
pipewire-1.4.2/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): [#def1302]
pipewire-1.4.2/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): [#def1303]
pipewire-1.4.2/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): [#def1304]
pipewire-1.4.2/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): [#def1305]
pipewire-1.4.2/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): [#def1306]
pipewire-1.4.2/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): [#def1307]
pipewire-1.4.2/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): [#def1308]
pipewire-1.4.2/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): [#def1309]
pipewire-1.4.2/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): [#def1310]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:2845: error[uninitvar]: Uninitialized variable: ctype
# 2843|   		return -EINVAL;
# 2844|   
# 2845|-> 	if (ctype != SPA_TYPE_Id)
# 2846|   		return -EINVAL;
# 2847|   

Error: CPPCHECK_WARNING (CWE-190): [#def1311]
pipewire-1.4.2/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): [#def1312]
pipewire-1.4.2/src/modules/module-session-manager/protocol-native.c:2865: error[uninitvar]: Uninitialized variable: ctype
# 2863|   		return -EINVAL;
# 2864|   
# 2865|-> 	if (ctype != SPA_TYPE_Id)
# 2866|   		return -EINVAL;
# 2867|   

Error: CPPCHECK_WARNING (CWE-190): [#def1313]
pipewire-1.4.2/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): [#def1314]
pipewire-1.4.2/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): [#def1315]
pipewire-1.4.2/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): [#def1316]
pipewire-1.4.2/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): [#def1317]
pipewire-1.4.2/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): [#def1318]
pipewire-1.4.2/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): [#def1319]
pipewire-1.4.2/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): [#def1320]
pipewire-1.4.2/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): [#def1321]
pipewire-1.4.2/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): [#def1322]
pipewire-1.4.2/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): [#def1323]
pipewire-1.4.2/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): [#def1324]
pipewire-1.4.2/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): [#def1325]
pipewire-1.4.2/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): [#def1326]
pipewire-1.4.2/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): [#def1327]
pipewire-1.4.2/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): [#def1328]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1329]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def1330]
pipewire-1.4.2/src/pipewire/buffers.c:247: error[uninitvar]: Uninitialized variable: type
#  245|   		}
#  246|   
#  247|-> 		pw_log_debug("%p: enable meta %s size:%d", result,
#  248|   				spa_debug_type_find_name(spa_type_meta_type, type), size);
#  249|   

Error: CPPCHECK_WARNING (CWE-190): [#def1331]
pipewire-1.4.2/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): [#def1332]
pipewire-1.4.2/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): [#def1333]
pipewire-1.4.2/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): [#def1334]
pipewire-1.4.2/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): [#def1335]
pipewire-1.4.2/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): [#def1336]
pipewire-1.4.2/src/pipewire/context.c:537: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  535|   
#  536|   	pw_log_debug("%p: destroy", context);
#  537|-> 	pw_context_emit_destroy(context);
#  538|   
#  539|   	spa_list_consume(core, &context->core_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1337]
pipewire-1.4.2/src/pipewire/context.c:570: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  568|   
#  569|   	pw_log_debug("%p: free", context);
#  570|-> 	pw_context_emit_free(context);
#  571|   
#  572|   	for (i = 0; i < impl->n_data_loops; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def1338]
pipewire-1.4.2/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): [#def1339]
pipewire-1.4.2/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): [#def1340]
pipewire-1.4.2/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): [#def1341]
pipewire-1.4.2/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): [#def1342]
pipewire-1.4.2/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): [#def1343]
pipewire-1.4.2/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): [#def1344]
pipewire-1.4.2/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): [#def1345]
pipewire-1.4.2/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): [#def1346]
pipewire-1.4.2/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): [#def1347]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1348]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1349]
pipewire-1.4.2/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): [#def1350]
pipewire-1.4.2/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): [#def1351]
pipewire-1.4.2/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): [#def1352]
pipewire-1.4.2/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): [#def1353]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1354]
pipewire-1.4.2/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): [#def1355]
pipewire-1.4.2/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): [#def1356]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1357]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1358]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1359]
pipewire-1.4.2/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): [#def1360]
pipewire-1.4.2/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): [#def1361]
pipewire-1.4.2/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): [#def1362]
pipewire-1.4.2/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): [#def1363]
pipewire-1.4.2/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): [#def1364]
pipewire-1.4.2/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): [#def1365]
pipewire-1.4.2/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): [#def1366]
pipewire-1.4.2/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): [#def1367]
pipewire-1.4.2/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): [#def1368]
pipewire-1.4.2/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): [#def1369]
pipewire-1.4.2/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): [#def1370]
pipewire-1.4.2/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): [#def1371]
pipewire-1.4.2/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): [#def1372]
pipewire-1.4.2/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): [#def1373]
pipewire-1.4.2/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): [#def1374]
pipewire-1.4.2/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): [#def1375]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1376]
pipewire-1.4.2/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): [#def1377]
pipewire-1.4.2/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): [#def1378]
pipewire-1.4.2/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): [#def1379]
pipewire-1.4.2/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): [#def1380]
pipewire-1.4.2/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): [#def1381]
pipewire-1.4.2/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): [#def1382]
pipewire-1.4.2/src/pipewire/filter.c:416: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  414|   
#  415|   		filter->state = state;
#  416|-> 		pw_filter_emit_state_changed(filter, old, state, error);
#  417|   	}
#  418|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def1383]
pipewire-1.4.2/src/pipewire/filter.c:455: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  453|   		spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
#  454|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  455|-> 			spa_node_emit_result(&d->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  456|   			count++;
#  457|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1384]
pipewire-1.4.2/src/pipewire/filter.c:478: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  476|   	struct pw_filter *filter = &impl->this;
#  477|   	if (impl->in_emit_param_changed++ == 0)
#  478|-> 		pw_filter_emit_param_changed(filter, port, id, param);
#  479|   	impl->in_emit_param_changed--;
#  480|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1385]
pipewire-1.4.2/src/pipewire/filter.c:495: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  493|   	pw_log_debug("%p: io %d %p/%zd", impl, id, data, size);
#  494|   
#  495|-> 	pw_filter_emit_io_changed(&impl->this, NULL, id, data, size);
#  496|   
#  497|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1386]
pipewire-1.4.2/src/pipewire/filter.c:548: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  546|   			}
#  547|   		}
#  548|-> 		spa_node_emit_info(&d->hooks, &d->info);
#  549|   	}
#  550|   	d->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1387]
pipewire-1.4.2/src/pipewire/filter.c:568: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  566|   			}
#  567|   		}
#  568|-> 		spa_node_emit_port_info(&d->hooks, p->direction, p->id, &p->info);
#  569|   	}
#  570|   	p->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1388]
pipewire-1.4.2/src/pipewire/filter.c:625: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  623|   	}
#  624|   
#  625|-> 	pw_filter_emit_io_changed(&impl->this, port->user_data, id, data, size);
#  626|   
#  627|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1389]
pipewire-1.4.2/src/pipewire/filter.c:749: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  747|   
#  748|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_ADDED))
#  749|-> 			pw_filter_emit_remove_buffer(&impl->this, port->user_data, &b->this);
#  750|   
#  751|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_MAPPED)) {

Error: CPPCHECK_WARNING (CWE-190): [#def1390]
pipewire-1.4.2/src/pipewire/filter.c:956: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  954|   
#  955|   		SPA_FLAG_SET(b->flags, BUFFER_FLAG_ADDED);
#  956|-> 		pw_filter_emit_add_buffer(filter, port->user_data, &b->this);
#  957|   	}
#  958|   

Error: CPPCHECK_WARNING (CWE-190): [#def1391]
pipewire-1.4.2/src/pipewire/filter.c:994: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  992|   	struct pw_filter *filter = &impl->this;
#  993|   	pw_log_trace("%p: drained", filter);
#  994|-> 	pw_filter_emit_drained(filter);
#  995|   	SPA_ATOMIC_DEC(impl->pending_drain);
#  996|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1392]
pipewire-1.4.2/src/pipewire/filter.c:1136: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1134|   	 * do a pw_filter_set_error() */
# 1135|   	errno = -res;
# 1136|-> 	pw_filter_emit_state_changed(filter, filter->state,
# 1137|   			PW_FILTER_STATE_ERROR, message);
# 1138|   	errno = old_errno;

Error: CPPCHECK_WARNING (CWE-190): [#def1393]
pipewire-1.4.2/src/pipewire/filter.c:1387: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1385|   {
# 1386|   	spa_list_remove(&port->link);
# 1387|-> 	spa_node_emit_port_info(&impl->hooks, port->direction, port->id, NULL);
# 1388|   	pw_map_remove(&impl->ports[port->direction], port->id);
# 1389|   	clear_buffers(port);

Error: CPPCHECK_WARNING (CWE-190): [#def1394]
pipewire-1.4.2/src/pipewire/filter.c:1405: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1403|   	pw_log_debug("%p: destroy", filter);
# 1404|   
# 1405|-> 	pw_filter_emit_destroy(filter);
# 1406|   
# 1407|   	if (!impl->disconnecting)

Error: CPPCHECK_WARNING (CWE-190): [#def1395]
pipewire-1.4.2/src/pipewire/filter.c:2113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2111|   	struct filter *impl = user_data;
# 2112|   	const struct spa_event *event = data;
# 2113|-> 	spa_node_emit_event(&impl->hooks, event);
# 2114|   	return 0;
# 2115|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1396]
pipewire-1.4.2/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): [#def1397]
pipewire-1.4.2/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): [#def1398]
pipewire-1.4.2/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): [#def1399]
pipewire-1.4.2/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): [#def1400]
pipewire-1.4.2/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): [#def1401]
pipewire-1.4.2/src/pipewire/global.c:337: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  335|   	pw_map_insert_at(&client->objects, id, NULL);
#  336|   	if (client->core_resource)
#  337|-> 		pw_core_resource_remove_id(client->core_resource, id);
#  338|   	return res;
#  339|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1402]
pipewire-1.4.2/src/pipewire/global.c:355: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  353|   			global, client, global->id, old_permissions, new_permissions);
#  354|   
#  355|-> 	pw_global_emit_permissions_changed(global, client, old_permissions, new_permissions);
#  356|   
#  357|   	spa_list_for_each(resource, &context->registry_resource_list, link) {

Error: CPPCHECK_WARNING (CWE-190): [#def1403]
pipewire-1.4.2/src/pipewire/global.c:364: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  362|   			pw_log_debug("client %p: resource %p hide global %d",
#  363|   					client, resource, global->id);
#  364|-> 			pw_registry_resource_global_remove(resource, global->id);
#  365|   		}
#  366|   		else if (do_show) {

Error: CPPCHECK_WARNING (CWE-190): [#def1404]
pipewire-1.4.2/src/pipewire/global.c:369: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  367|   			pw_log_debug("client %p: resource %p show global %d serial:%"PRIu64,
#  368|   					client, resource, global->id, global->serial);
#  369|-> 			pw_registry_resource_global(resource,
#  370|   						    global->id,
#  371|   						    new_permissions,

Error: CPPCHECK_WARNING (CWE-190): [#def1405]
pipewire-1.4.2/src/pipewire/global.c:408: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  406|   
#  407|   	pw_log_debug("%p: destroy %u", global, global->id);
#  408|-> 	pw_global_emit_destroy(global);
#  409|   
#  410|   	spa_list_consume(resource, &global->resource_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1406]
pipewire-1.4.2/src/pipewire/global.c:416: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  414|   
#  415|   	pw_log_debug("%p: free", global);
#  416|-> 	pw_global_emit_free(global);
#  417|   
#  418|   	pw_map_remove(&context->globals, global->id);

Error: CPPCHECK_WARNING (CWE-190): [#def1407]
pipewire-1.4.2/src/pipewire/impl-client.c:221: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  219|   	client->info.change_mask |= PW_CLIENT_CHANGE_MASK_PROPS;
#  220|   
#  221|-> 	pw_impl_client_emit_info_changed(client, &client->info);
#  222|   
#  223|   	if (client->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1408]
pipewire-1.4.2/src/pipewire/impl-client.c:225: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  223|   	if (client->global)
#  224|   		spa_list_for_each(resource, &client->global->resource_list, link)
#  225|-> 			pw_client_resource_info(resource, &client->info);
#  226|   
#  227|   	client->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1409]
pipewire-1.4.2/src/pipewire/impl-client.c:258: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  256|   	current = client->context->current_client;
#  257|   	client->context->current_client = NULL;
#  258|-> 	pw_context_emit_check_access(client->context, client);
#  259|   	client->context->current_client = current;
#  260|   

Error: CPPCHECK_WARNING (CWE-190): [#def1410]
pipewire-1.4.2/src/pipewire/impl-client.c:304: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  302|   		num = len - index;
#  303|   
#  304|-> 	pw_client_resource_permissions(resource, index,
#  305|   			num, pw_array_get_unchecked(&impl->permissions, index, struct pw_permission));
#  306|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1411]
pipewire-1.4.2/src/pipewire/impl-client.c:370: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  368|   
#  369|   	this->info.change_mask = PW_CLIENT_CHANGE_MASK_ALL;
#  370|-> 	pw_client_resource_info(resource, &this->info);
#  371|   	this->info.change_mask = 0;
#  372|   

Error: CPPCHECK_WARNING (CWE-190): [#def1412]
pipewire-1.4.2/src/pipewire/impl-client.c:387: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  385|   	pw_log_debug("%p: added block %d", client, block->id);
#  386|   	if (client->core_resource) {
#  387|-> 		pw_core_resource_add_mem(client->core_resource,
#  388|   				block->id, block->type, block->fd,
#  389|   				block->flags & (PW_MEMBLOCK_FLAG_READWRITE | PW_MEMBLOCK_FLAG_UNMAPPABLE));

Error: CPPCHECK_WARNING (CWE-190): [#def1413]
pipewire-1.4.2/src/pipewire/impl-client.c:399: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  397|   	pw_log_debug("%p: removed block %d", client, block->id);
#  398|   	if (client->core_resource)
#  399|-> 		pw_core_resource_remove_mem(client->core_resource, block->id);
#  400|   }
#  401|   

Error: CPPCHECK_WARNING (CWE-190): [#def1414]
pipewire-1.4.2/src/pipewire/impl-client.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   	pw_global_update_keys(client->global, client->info.props, keys);
#  564|   
#  565|-> 	pw_impl_client_emit_initialized(client);
#  566|   
#  567|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1415]
pipewire-1.4.2/src/pipewire/impl-client.c:642: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  640|   	assert(client->destroyed);
#  641|   
#  642|-> 	pw_impl_client_emit_free(client);
#  643|   
#  644|   	spa_hook_list_clean(&client->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1416]
pipewire-1.4.2/src/pipewire/impl-client.c:672: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  670|   	client->destroyed = true;
#  671|   
#  672|-> 	pw_impl_client_emit_destroy(client);
#  673|   
#  674|   	spa_hook_remove(&impl->context_listener);

Error: CPPCHECK_WARNING (CWE-190): [#def1417]
pipewire-1.4.2/src/pipewire/impl-client.c:798: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  796|   		pw_log_debug("%p: busy %d", client, busy);
#  797|   		client->busy = busy;
#  798|-> 		pw_impl_client_emit_busy_changed(client, busy);
#  799|   	}
#  800|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1418]
pipewire-1.4.2/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): [#def1419]
pipewire-1.4.2/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): [#def1420]
pipewire-1.4.2/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): [#def1421]
pipewire-1.4.2/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): [#def1422]
pipewire-1.4.2/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): [#def1423]
pipewire-1.4.2/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): [#def1424]
pipewire-1.4.2/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): [#def1425]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1426]
pipewire-1.4.2/src/pipewire/impl-core.c:445: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  443|   {
#  444|   	pw_log_debug("%p: destroy", core);
#  445|-> 	pw_impl_core_emit_destroy(core);
#  446|   
#  447|   	if (core->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def1427]
pipewire-1.4.2/src/pipewire/impl-core.c:455: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  453|   	}
#  454|   
#  455|-> 	pw_impl_core_emit_free(core);
#  456|   	pw_log_debug("%p: free", core);
#  457|   

Error: CPPCHECK_WARNING (CWE-190): [#def1428]
pipewire-1.4.2/src/pipewire/impl-core.c:516: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  514|   	else {
#  515|   		this->info.change_mask = PW_CORE_CHANGE_MASK_ALL;
#  516|-> 		pw_core_resource_info(resource, &this->info);
#  517|   		this->info.change_mask = 0;
#  518|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1429]
pipewire-1.4.2/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): [#def1430]
pipewire-1.4.2/src/pipewire/impl-core.c:610: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  608|   	pw_global_update_keys(core->global, core->info.props, keys);
#  609|   
#  610|-> 	pw_impl_core_emit_initialized(core);
#  611|   
#  612|   	pw_global_add_listener(core->global, &core->global_listener, &global_events, core);

Error: CPPCHECK_WARNING (CWE-190): [#def1431]
pipewire-1.4.2/src/pipewire/impl-device.c:216: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  214|   
#  215|   	pw_log_debug("%p: destroy", device);
#  216|-> 	pw_impl_device_emit_destroy(device);
#  217|   
#  218|   	spa_list_consume(od, &device->object_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1432]
pipewire-1.4.2/src/pipewire/impl-device.c:232: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  230|   	}
#  231|   	pw_log_debug("%p: free", device);
#  232|-> 	pw_impl_device_emit_free(device);
#  233|   
#  234|   	pw_param_clear(&impl->param_list, SPA_ID_INVALID);

Error: CPPCHECK_WARNING (CWE-190): [#def1433]
pipewire-1.4.2/src/pipewire/impl-device.c:403: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  401|   {
#  402|   	struct resource_data *d = data;
#  403|-> 	pw_device_resource_param(d->resource, seq, id, index, next, param);
#  404|   	return 0;
#  405|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1434]
pipewire-1.4.2/src/pipewire/impl-device.c:557: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  555|   
#  556|   	this->info.change_mask = PW_DEVICE_CHANGE_MASK_ALL;
#  557|-> 	pw_device_resource_info(resource, &this->info);
#  558|   	this->info.change_mask = 0;
#  559|   

Error: CPPCHECK_WARNING (CWE-190): [#def1435]
pipewire-1.4.2/src/pipewire/impl-device.c:624: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  622|   	pw_global_update_keys(device->global, device->info.props, keys);
#  623|   
#  624|-> 	pw_impl_device_emit_initialized(device);
#  625|   
#  626|   	pw_global_add_listener(device->global, &device->global_listener, &global_events, device);

Error: CPPCHECK_WARNING (CWE-190): [#def1436]
pipewire-1.4.2/src/pipewire/impl-device.c:669: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  667|   	struct pw_resource *resource;
#  668|   
#  669|-> 	pw_impl_device_emit_info_changed(device, &device->info);
#  670|   
#  671|   	if (device->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1437]
pipewire-1.4.2/src/pipewire/impl-device.c:673: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  671|   	if (device->global)
#  672|   		spa_list_for_each(resource, &device->global->resource_list, link)
#  673|-> 			pw_device_resource_info(resource, &device->info);
#  674|   
#  675|   	device->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1438]
pipewire-1.4.2/src/pipewire/impl-device.c:725: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  723|   
#  724|   		pw_log_debug("%p: resource %p notify param %d", device, resource, id);
#  725|-> 		pw_device_resource_param(resource, seq, id, index, next, param);
#  726|   	}
#  727|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1439]
pipewire-1.4.2/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): [#def1440]
pipewire-1.4.2/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): [#def1441]
pipewire-1.4.2/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): [#def1442]
pipewire-1.4.2/src/pipewire/impl-factory.c:152: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  150|   	if (factory->global)
#  151|   		spa_list_for_each(resource, &factory->global->resource_list, link)
#  152|-> 			pw_factory_resource_info(resource, &factory->info);
#  153|   	factory->info.change_mask = 0;
#  154|   

Error: CPPCHECK_WARNING (CWE-190): [#def1443]
pipewire-1.4.2/src/pipewire/impl-factory.c:199: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  197|   	pw_global_update_keys(factory->global, factory->info.props, keys);
#  198|   
#  199|-> 	pw_impl_factory_emit_initialized(factory);
#  200|   
#  201|   	pw_global_add_listener(factory->global, &factory->global_listener, &global_events, factory);

Error: CPPCHECK_WARNING (CWE-190): [#def1444]
pipewire-1.4.2/src/pipewire/impl-factory.c:255: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  253|   {
#  254|   	void *res = NULL;
#  255|-> 	spa_callbacks_call_res(&factory->impl,
#  256|   			struct pw_impl_factory_implementation,
#  257|   			res, create_object, 0,

Error: CPPCHECK_WARNING (CWE-190): [#def1445]
pipewire-1.4.2/src/pipewire/impl-link.c:67: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   65|   		return;
#   66|   
#   67|-> 	pw_impl_link_emit_info_changed(link, &link->info);
#   68|   
#   69|   	if (link->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1446]
pipewire-1.4.2/src/pipewire/impl-link.c:71: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   69|   	if (link->global)
#   70|   		spa_list_for_each(resource, &link->global->resource_list, link)
#   71|-> 			pw_link_resource_info(resource, &link->info);
#   72|   
#   73|   	link->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1447]
pipewire-1.4.2/src/pipewire/impl-link.c:137: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  135|   	}
#  136|   
#  137|-> 	pw_impl_link_emit_state_changed(link, old, state, error);
#  138|   
#  139|   	link->info.change_mask |= PW_LINK_CHANGE_MASK_STATE;

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def1450]
pipewire-1.4.2/src/pipewire/impl-link.c:868: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  866|   
#  867|   	this->info.change_mask = PW_LINK_CHANGE_MASK_ALL;
#  868|-> 	pw_link_resource_info(resource, &this->info);
#  869|   	this->info.change_mask = 0;
#  870|   

Error: CPPCHECK_WARNING (CWE-190): [#def1451]
pipewire-1.4.2/src/pipewire/impl-link.c:1404: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1402|   			output->flags, input->flags, impl->async);
# 1403|   
# 1404|-> 	pw_impl_port_emit_link_added(output, this);
# 1405|   	pw_impl_port_emit_link_added(input, this);
# 1406|   

Error: CPPCHECK_WARNING (CWE-190): [#def1452]
pipewire-1.4.2/src/pipewire/impl-link.c:1405: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1403|   
# 1404|   	pw_impl_port_emit_link_added(output, this);
# 1405|-> 	pw_impl_port_emit_link_added(input, this);
# 1406|   
# 1407|   	try_link_controls(impl, output, input);

Error: CPPCHECK_WARNING (CWE-190): [#def1453]
pipewire-1.4.2/src/pipewire/impl-link.c:1522: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1520|   	pw_global_update_keys(link->global, link->info.props, keys);
# 1521|   
# 1522|-> 	pw_impl_link_emit_initialized(link);
# 1523|   
# 1524|   	pw_global_add_listener(link->global, &link->global_listener, &global_events, link);

Error: CPPCHECK_WARNING (CWE-190): [#def1454]
pipewire-1.4.2/src/pipewire/impl-link.c:1546: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1544|   
# 1545|   	link->destroyed = true;
# 1546|-> 	pw_impl_link_emit_destroy(link);
# 1547|   
# 1548|   	pw_impl_link_deactivate(link);

Error: CPPCHECK_WARNING (CWE-190): [#def1455]
pipewire-1.4.2/src/pipewire/impl-link.c:1570: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1568|   
# 1569|   	pw_log_debug("%p: free", impl);
# 1570|-> 	pw_impl_link_emit_free(link);
# 1571|   
# 1572|   	pw_work_queue_cancel(impl->work, link, SPA_ID_INVALID);

Error: CPPCHECK_WARNING (CWE-190): [#def1456]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1457]
pipewire-1.4.2/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): [#def1458]
pipewire-1.4.2/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): [#def1459]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1460]
pipewire-1.4.2/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): [#def1461]
pipewire-1.4.2/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): [#def1462]
pipewire-1.4.2/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): [#def1463]
pipewire-1.4.2/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): [#def1464]
pipewire-1.4.2/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): [#def1465]
pipewire-1.4.2/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): [#def1466]
pipewire-1.4.2/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): [#def1467]
pipewire-1.4.2/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): [#def1468]
pipewire-1.4.2/src/pipewire/impl-module.c:367: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  365|   	if (module->global)
#  366|   		spa_list_for_each(resource, &module->global->resource_list, link)
#  367|-> 			pw_module_resource_info(resource, &module->info);
#  368|   	module->info.change_mask = 0;
#  369|   

Error: CPPCHECK_WARNING (CWE-190): [#def1469]
pipewire-1.4.2/src/pipewire/impl-node.c:356: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  354|   		return;
#  355|   
#  356|-> 	pw_impl_node_emit_info_changed(node, &node->info);
#  357|   
#  358|   	if (node->global && node->info.change_mask != 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def1470]
pipewire-1.4.2/src/pipewire/impl-node.c:361: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  359|   		struct pw_resource *resource;
#  360|   		spa_list_for_each(resource, &node->global->resource_list, link)
#  361|-> 			pw_node_resource_info(resource, &node->info);
#  362|   	}
#  363|   

Error: CPPCHECK_WARNING (CWE-190): [#def1471]
pipewire-1.4.2/src/pipewire/impl-node.c:390: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  388|   
#  389|   		pw_log_debug("%p: resource %p notify param %d", node, resource, id);
#  390|-> 		pw_node_resource_param(resource, seq, id, index, next, param);
#  391|   	}
#  392|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1472]
pipewire-1.4.2/src/pipewire/impl-node.c:479: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  477|   		     pw_node_state_as_string(old), pw_node_state_as_string(state));
#  478|   	}
#  479|-> 	pw_impl_node_emit_state_changed(node, old, state, error);
#  480|   
#  481|   	if (emit_pending_request_process) {

Error: CPPCHECK_WARNING (CWE-190): [#def1473]
pipewire-1.4.2/src/pipewire/impl-node.c:562: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  560|   	struct resource_data *d = data;
#  561|   	pw_log_debug("%p: resource %p reply param %d", d->node, d->resource, seq);
#  562|-> 	pw_node_resource_param(d->resource, seq, id, index, next, param);
#  563|   	return 0;
#  564|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1474]
pipewire-1.4.2/src/pipewire/impl-node.c:737: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  735|   
#  736|   	this->info.change_mask = PW_NODE_CHANGE_MASK_ALL;
#  737|-> 	pw_node_resource_info(resource, &this->info);
#  738|   	this->info.change_mask = 0;
#  739|   

Error: CPPCHECK_WARNING (CWE-190): [#def1475]
pipewire-1.4.2/src/pipewire/impl-node.c:874: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  872|   			do_add_target, SPA_ID_INVALID, &node, sizeof(void *), true, t);
#  873|   	if (t->node)
#  874|-> 		pw_impl_node_emit_peer_added(node, t->node);
#  875|   
#  876|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1476]
pipewire-1.4.2/src/pipewire/impl-node.c:910: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  908|   			do_remove_target, SPA_ID_INVALID, &node, sizeof(void *), true, t);
#  909|   	if (t->node)
#  910|-> 		pw_impl_node_emit_peer_removed(node, t->node);
#  911|   
#  912|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1477]
pipewire-1.4.2/src/pipewire/impl-node.c:1016: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1014|   {
# 1015|   	pw_log_debug("%p initialized", this);
# 1016|-> 	pw_impl_node_emit_initialized(this);
# 1017|   	node_update_state(this, PW_NODE_STATE_SUSPENDED, 0, NULL);
# 1018|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1478]
pipewire-1.4.2/src/pipewire/impl-node.c:1080: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1078|   	node->from_driver_peer = pw_node_peer_ref(driver, node);
# 1079|   
# 1080|-> 	pw_impl_node_emit_driver_changed(node, old, driver);
# 1081|   
# 1082|   	if (no_driver) {

Error: CPPCHECK_WARNING (CWE-190): [#def1479]
pipewire-1.4.2/src/pipewire/impl-node.c:1092: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1090|   
# 1091|   	node->info.change_mask |= PW_NODE_CHANGE_MASK_PROPS;
# 1092|-> 	pw_impl_node_emit_info_changed(driver, &node->info);
# 1093|   
# 1094|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1480]
pipewire-1.4.2/src/pipewire/impl-node.c:1531: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1529|   		a->signal_time = this->driver_start;
# 1530|   		calculate_stats(this, a);
# 1531|-> 		pw_impl_node_rt_emit_complete(this);
# 1532|   	}
# 1533|   

Error: CPPCHECK_WARNING (CWE-190): [#def1481]
pipewire-1.4.2/src/pipewire/impl-node.c:1535: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1533|   
# 1534|   	if (SPA_UNLIKELY(status & SPA_STATUS_DRAINED))
# 1535|-> 		pw_impl_node_rt_emit_drained(this);
# 1536|   
# 1537|   	return status;

Error: CPPCHECK_WARNING (CWE-190): [#def1482]
pipewire-1.4.2/src/pipewire/impl-node.c:1904: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1902|   	        pw_work_queue_complete(impl->work, &impl->this, SPA_RESULT_ASYNC_SEQ(seq), res);
# 1903|   
# 1904|-> 	pw_impl_node_emit_result(node, seq, res, type, result);
# 1905|   }
# 1906|   

Error: CPPCHECK_WARNING (CWE-190): [#def1483]
pipewire-1.4.2/src/pipewire/impl-node.c:1956: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1954|   		break;
# 1955|   	}
# 1956|-> 	pw_impl_node_emit_event(node, event);
# 1957|   }
# 1958|   

Error: CPPCHECK_WARNING (CWE-190): [#def1484]
pipewire-1.4.2/src/pipewire/impl-node.c:2042: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2040|   	if (SPA_UNLIKELY(a->position.state == SPA_IO_POSITION_STATE_STARTING)) {
# 2041|   		if (!all_ready && --a->sync_left == 0) {
# 2042|-> 			pw_impl_node_rt_emit_timeout(node);
# 2043|   			debug_sync_timeout(node, nsec);
# 2044|   			all_ready = true;

Error: CPPCHECK_WARNING (CWE-190): [#def1485]
pipewire-1.4.2/src/pipewire/impl-node.c:2103: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2101|   				/* otherwise, something was wrong and we debug */
# 2102|   				debug_xrun_graph(node, nsec, old_status);
# 2103|-> 				pw_impl_node_rt_emit_incomplete(driver);
# 2104|   			}
# 2105|   			SPA_FLAG_SET(cl->flags, SPA_IO_CLOCK_FLAG_XRUN_RECOVER);

Error: CPPCHECK_WARNING (CWE-190): [#def1486]
pipewire-1.4.2/src/pipewire/impl-node.c:2204: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2202|   
# 2203|   	a->position.clock.cycle++;
# 2204|-> 	pw_impl_node_rt_emit_start(node);
# 2205|   
# 2206|   	/* now signal all the nodes we drive */

Error: CPPCHECK_WARNING (CWE-190): [#def1487]
pipewire-1.4.2/src/pipewire/impl-node.c:2252: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2250|   	}
# 2251|   
# 2252|-> 	pw_impl_node_rt_emit_xrun(this);
# 2253|   
# 2254|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1488]
pipewire-1.4.2/src/pipewire/impl-node.c:2407: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2405|   	suspend_node(node);
# 2406|   
# 2407|-> 	pw_impl_node_emit_destroy(node);
# 2408|   
# 2409|   	pw_log_debug("%p: driver node %p", impl, node->driver_node);

Error: CPPCHECK_WARNING (CWE-190): [#def1489]
pipewire-1.4.2/src/pipewire/impl-node.c:2450: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2448|   
# 2449|   	pw_log_debug("%p: free", node);
# 2450|-> 	pw_impl_node_emit_free(node);
# 2451|   
# 2452|   	spa_hook_list_clean(&node->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1490]
pipewire-1.4.2/src/pipewire/impl-node.c:2762: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2760|   
# 2761|   	if (old != state)
# 2762|-> 		pw_impl_node_emit_state_request(node, state);
# 2763|   
# 2764|   	switch (state) {

Error: CPPCHECK_WARNING (CWE-190): [#def1491]
pipewire-1.4.2/src/pipewire/impl-node.c:2837: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2835|   
# 2836|   		node->active = active;
# 2837|-> 		pw_impl_node_emit_active_changed(node, active);
# 2838|   
# 2839|   		if (node->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def1492]
pipewire-1.4.2/src/pipewire/impl-port.c:69: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   67|   		return;
#   68|   
#   69|-> 	pw_impl_port_emit_info_changed(port, &port->info);
#   70|   	if (port->node)
#   71|   		pw_impl_node_emit_port_info_changed(port->node, port, &port->info);

Error: CPPCHECK_WARNING (CWE-190): [#def1493]
pipewire-1.4.2/src/pipewire/impl-port.c:71: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   69|   	pw_impl_port_emit_info_changed(port, &port->info);
#   70|   	if (port->node)
#   71|-> 		pw_impl_node_emit_port_info_changed(port->node, port, &port->info);
#   72|   
#   73|   	if (port->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1494]
pipewire-1.4.2/src/pipewire/impl-port.c:75: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   73|   	if (port->global)
#   74|   		spa_list_for_each(resource, &port->global->resource_list, link)
#   75|-> 			pw_port_resource_info(resource, &port->info);
#   76|   
#   77|   	port->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1495]
pipewire-1.4.2/src/pipewire/impl-port.c:114: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  112|   		pw_impl_port_state_as_string(state), error);
#  113|   
#  114|-> 	pw_impl_port_emit_state_changed(port, old, state, error);
#  115|   
#  116|   	if (state == PW_IMPL_PORT_STATE_ERROR && port->global) {

Error: CPPCHECK_WARNING (CWE-190): [#def1496]
pipewire-1.4.2/src/pipewire/impl-port.c:180: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  178|   		goto next;
#  179|   
#  180|-> 	spa_node_emit_result(&impl->mix_hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  181|   
#  182|   	if (++count != max)

Error: CPPCHECK_WARNING (CWE-190): [#def1497]
pipewire-1.4.2/src/pipewire/impl-port.c:363: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  361|   	mix->p = port;
#  362|   
#  363|-> 	if ((res = pw_impl_port_call_init_mix(port, mix)) < 0)
#  364|   		goto error_remove_port;
#  365|   

Error: CPPCHECK_WARNING (CWE-190): [#def1498]
pipewire-1.4.2/src/pipewire/impl-port.c:414: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  412|   			port->n_mix, port->port_id, mix->port.port_id);
#  413|   
#  414|-> 	res = pw_impl_port_call_release_mix(port, mix);
#  415|   
#  416|   	if (port->destroying)

Error: CPPCHECK_WARNING (CWE-190): [#def1499]
pipewire-1.4.2/src/pipewire/impl-port.c:476: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  474|   
#  475|   		pw_log_debug("%p: resource %p notify param %d", port, resource, id);
#  476|-> 		pw_port_resource_param(resource, seq, id, index, next, param);
#  477|   	}
#  478|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1500]
pipewire-1.4.2/src/pipewire/impl-port.c:1001: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  999|   	pw_log_debug("%p: resource %p reply param %u %u %u", d->port,
# 1000|   			resource, id, index, next);
# 1001|-> 	pw_port_resource_param(resource, seq, id, index, next, param);
# 1002|   	return 0;
# 1003|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1501]
pipewire-1.4.2/src/pipewire/impl-port.c:1093: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1091|   
# 1092|   	this->info.change_mask = PW_PORT_CHANGE_MASK_ALL;
# 1093|-> 	pw_port_resource_info(resource, &this->info);
# 1094|   	this->info.change_mask = 0;
# 1095|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1502]
pipewire-1.4.2/src/pipewire/impl-port.c:1163: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1161|   	pw_global_update_keys(port->global, &port->properties->dict, keys);
# 1162|   
# 1163|-> 	pw_impl_port_emit_initialized(port);
# 1164|   
# 1165|   	return pw_global_register(port->global);

Error: CPPCHECK_WARNING (CWE-190): [#def1503]
pipewire-1.4.2/src/pipewire/impl-port.c:1202: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1200|   	port->node = node;
# 1201|   
# 1202|-> 	pw_impl_node_emit_port_init(node, port);
# 1203|   
# 1204|   	check_params(port);

Error: CPPCHECK_WARNING (CWE-190): [#def1504]
pipewire-1.4.2/src/pipewire/impl-port.c:1350: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1348|   		pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_CONFIGURE, 0, NULL);
# 1349|   
# 1350|-> 	pw_impl_node_emit_port_added(node, port);
# 1351|   	emit_info_changed(port);
# 1352|   

Error: CPPCHECK_WARNING (CWE-190): [#def1505]
pipewire-1.4.2/src/pipewire/impl-port.c:1411: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1409|   
# 1410|   	spa_list_remove(&port->link);
# 1411|-> 	pw_impl_node_emit_port_removed(node, port);
# 1412|   	port->node = NULL;
# 1413|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1506]
pipewire-1.4.2/src/pipewire/impl-port.c:1423: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1421|   
# 1422|   	port->destroying = true;
# 1423|-> 	pw_impl_port_emit_destroy(port);
# 1424|   
# 1425|   	pw_impl_port_unlink(port);

Error: CPPCHECK_WARNING (CWE-190): [#def1507]
pipewire-1.4.2/src/pipewire/impl-port.c:1441: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1439|   
# 1440|   	pw_log_debug("%p: free", port);
# 1441|-> 	pw_impl_port_emit_free(port);
# 1442|   
# 1443|   	spa_hook_list_clean(&port->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1508]
pipewire-1.4.2/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): [#def1509]
pipewire-1.4.2/src/pipewire/log.c:244: error[memleak]: Memory leak: pattern
#  242|   	memcpy(pattern->pattern, str, len);
#  243|   	spa_list_append(list, &pattern->link);
#  244|-> 	return 0;
#  245|   }
#  246|   

Error: CPPCHECK_WARNING (CWE-190): [#def1510]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1511]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1512]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1513]
pipewire-1.4.2/src/pipewire/mem.c:613: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  611|   
#  612|   	if (!SPA_FLAG_IS_SET(flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  613|-> 		pw_mempool_emit_added(impl, &b->this);
#  614|   
#  615|   	return &b->this;

Error: CPPCHECK_WARNING (CWE-190): [#def1514]
pipewire-1.4.2/src/pipewire/mem.c:683: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  681|   
#  682|   	if (!SPA_FLAG_IS_SET(flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  683|-> 		pw_mempool_emit_added(impl, &b->this);
#  684|   
#  685|   	return &b->this;

Error: CPPCHECK_WARNING (CWE-190): [#def1515]
pipewire-1.4.2/src/pipewire/mem.c:840: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  838|   
#  839|   	if (!SPA_FLAG_IS_SET(block->flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  840|-> 		pw_mempool_emit_removed(impl, block);
#  841|   
#  842|   	if (b->owner) {

Error: CPPCHECK_WARNING (CWE-190): [#def1516]
pipewire-1.4.2/src/pipewire/mem.c:847: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  845|   	}
#  846|   
#  847|-> 	memblock_emit_invalidated(b);
#  848|   
#  849|   	spa_list_consume(mm, &b->memmaps, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1517]
pipewire-1.4.2/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): [#def1518]
pipewire-1.4.2/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): [#def1519]
pipewire-1.4.2/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): [#def1520]
pipewire-1.4.2/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): [#def1521]
pipewire-1.4.2/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): [#def1522]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1523]
pipewire-1.4.2/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): [#def1524]
pipewire-1.4.2/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): [#def1525]
pipewire-1.4.2/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): [#def1526]
pipewire-1.4.2/src/pipewire/private.h:330: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  328|   			resource, id, seq, res, spa_strerror(res), buffer);
#  329|   	if (resource)
#  330|-> 		pw_core_resource_error(resource, id, seq, res, buffer);
#  331|   	else
#  332|   		pw_log_error("id:%d seq:%d res:%d (%s) msg:\"%s\"",

Error: CPPCHECK_WARNING (CWE-190): [#def1527]
pipewire-1.4.2/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): [#def1528]
pipewire-1.4.2/src/pipewire/protocol.c:139: error[memleak]: Memory leak: impl
#  137|   			marshal->type, marshal->version, protocol->name);
#  138|   
#  139|-> 	return 0;
#  140|   }
#  141|   

Error: CPPCHECK_WARNING (CWE-190): [#def1529]
pipewire-1.4.2/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): [#def1530]
pipewire-1.4.2/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): [#def1531]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1532]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1533]
pipewire-1.4.2/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): [#def1534]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1535]
pipewire-1.4.2/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): [#def1536]
pipewire-1.4.2/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): [#def1537]
pipewire-1.4.2/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): [#def1538]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-190): [#def1539]
pipewire-1.4.2/src/pipewire/stream.c:409: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  407|   
#  408|   		stream->state = state;
#  409|-> 		pw_stream_emit_state_changed(stream, old, state, error);
#  410|   	}
#  411|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def1540]
pipewire-1.4.2/src/pipewire/stream.c:460: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  458|   	struct pw_stream *stream = &impl->this;
#  459|   	pw_log_trace_fp("%p: drained", stream);
#  460|-> 	pw_stream_emit_drained(stream);
#  461|   	SPA_ATOMIC_DEC(impl->pending_drain);
#  462|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1541]
pipewire-1.4.2/src/pipewire/stream.c:507: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  505|   			spa_debug_type_find_name(spa_type_io, id), data, size);
#  506|   
#  507|-> 	pw_stream_emit_io_changed(stream, id, data, size);
#  508|   
#  509|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1542]
pipewire-1.4.2/src/pipewire/stream.c:547: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  545|   		spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
#  546|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  547|-> 			spa_node_emit_result(&d->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  548|   			count++;
#  549|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1543]
pipewire-1.4.2/src/pipewire/stream.c:569: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  567|   	struct pw_stream *stream = &impl->this;
#  568|   	if (impl->in_emit_param_changed++ == 0)
#  569|-> 		pw_stream_emit_param_changed(stream, id, param);
#  570|   	impl->in_emit_param_changed--;
#  571|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1544]
pipewire-1.4.2/src/pipewire/stream.c:588: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  586|   			}
#  587|   		}
#  588|-> 		spa_node_emit_info(&d->hooks, &d->info);
#  589|   	}
#  590|   	d->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1545]
pipewire-1.4.2/src/pipewire/stream.c:608: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  606|   			}
#  607|   		}
#  608|-> 		spa_node_emit_port_info(&d->hooks, d->direction, 0, &d->port_info);
#  609|   	}
#  610|   	d->port_info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1546]
pipewire-1.4.2/src/pipewire/stream.c:764: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  762|   		break;
#  763|   	}
#  764|-> 	pw_stream_emit_io_changed(stream, id, data, size);
#  765|   
#  766|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1547]
pipewire-1.4.2/src/pipewire/stream.c:832: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  830|   
#  831|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_ADDED))
#  832|-> 			pw_stream_emit_remove_buffer(stream, &b->this);
#  833|   
#  834|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_MAPPED)) {

Error: CPPCHECK_WARNING (CWE-190): [#def1548]
pipewire-1.4.2/src/pipewire/stream.c:1014: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1012|   		SPA_FLAG_SET(b->flags, BUFFER_FLAG_ADDED);
# 1013|   
# 1014|-> 		pw_stream_emit_add_buffer(stream, &b->this);
# 1015|   	}
# 1016|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1549]
pipewire-1.4.2/src/pipewire/stream.c:1179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1177|   	 * do a pw_stream_set_error() */
# 1178|   	errno = -res;
# 1179|-> 	pw_stream_emit_state_changed(stream, stream->state,
# 1180|   			PW_STREAM_STATE_ERROR, message);
# 1181|   	errno = old_errno;

Error: CPPCHECK_WARNING (CWE-457): [#def1550]
pipewire-1.4.2/src/pipewire/stream.c:1230: error[uninitvar]: Uninitialized variable: iid
# 1228|   			return -EINVAL;
# 1229|   
# 1230|-> 		c = find_control(stream, iid);
# 1231|   		if (c != NULL)
# 1232|   			return 0;

Error: CPPCHECK_WARNING (CWE-476): [#def1551]
pipewire-1.4.2/src/pipewire/stream.c:1235: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1233|   
# 1234|   		c = calloc(1, sizeof(*c) + SPA_POD_SIZE(param));
# 1235|-> 		c->info = SPA_PTROFF(c, sizeof(*c), struct spa_pod);
# 1236|   		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1237|   		c->control.n_values = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def1552]
pipewire-1.4.2/src/pipewire/stream.c:1236: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1234|   		c = calloc(1, sizeof(*c) + SPA_POD_SIZE(param));
# 1235|   		c->info = SPA_PTROFF(c, sizeof(*c), struct spa_pod);
# 1236|-> 		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1237|   		c->control.n_values = 0;
# 1238|   		c->control.max_values = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def1553]
pipewire-1.4.2/src/pipewire/stream.c:1237: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1235|   		c->info = SPA_PTROFF(c, sizeof(*c), struct spa_pod);
# 1236|   		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1237|-> 		c->control.n_values = 0;
# 1238|   		c->control.max_values = 0;
# 1239|   		c->control.values = c->values;

Error: CPPCHECK_WARNING (CWE-476): [#def1554]
pipewire-1.4.2/src/pipewire/stream.c:1238: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1236|   		memcpy(c->info, param, SPA_POD_SIZE(param));
# 1237|   		c->control.n_values = 0;
# 1238|-> 		c->control.max_values = 0;
# 1239|   		c->control.values = c->values;
# 1240|   

Error: CPPCHECK_WARNING (CWE-476): [#def1555]
pipewire-1.4.2/src/pipewire/stream.c:1239: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
# 1237|   		c->control.n_values = 0;
# 1238|   		c->control.max_values = 0;
# 1239|-> 		c->control.values = c->values;
# 1240|   
# 1241|   		if (spa_pod_parse_object(c->info,

Error: CPPCHECK_WARNING (CWE-457): [#def1556]
pipewire-1.4.2/src/pipewire/stream.c:1250: error[uninitvar]: Uninitialized variable: type
# 1248|   		}
# 1249|   
# 1250|-> 		pod = spa_pod_get_values(type, &n_vals, &choice);
# 1251|   		if (n_vals == 0) {
# 1252|   			free(c);

Error: CPPCHECK_WARNING (CWE-758): [#def1557]
pipewire-1.4.2/src/pipewire/stream.c:1373: warning[objectIndex]: The address of variable 'value_f' might be accessed at non-zero index.
# 1371|   					prop->key, c->control.name, n_values);
# 1372|   			for (i = 0; i < n_values; i++)
# 1373|-> 				pw_log_debug("%p:  value %d %f", stream, i, values[i]);
# 1374|   
# 1375|   			pw_stream_emit_control_info(stream, prop->key, &c->control);

Error: CPPCHECK_WARNING (CWE-190): [#def1558]
pipewire-1.4.2/src/pipewire/stream.c:1375: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1373|   				pw_log_debug("%p:  value %d %f", stream, i, values[i]);
# 1374|   
# 1375|-> 			pw_stream_emit_control_info(stream, prop->key, &c->control);
# 1376|   		}
# 1377|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def1559]
pipewire-1.4.2/src/pipewire/stream.c:1701: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1699|   	pw_log_debug("%p: destroy", stream);
# 1700|   
# 1701|-> 	pw_stream_emit_destroy(stream);
# 1702|   
# 1703|   	if (!impl->disconnecting)

Error: CPPCHECK_WARNING (CWE-190): [#def1560]
pipewire-1.4.2/src/pipewire/stream.c:2632: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2630|   	struct stream *impl = user_data;
# 2631|   	const struct spa_event *event = data;
# 2632|-> 	spa_node_emit_event(&impl->hooks, event);
# 2633|   	return 0;
# 2634|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1561]
pipewire-1.4.2/src/pipewire/thread-loop.c:244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  242|   void pw_thread_loop_destroy(struct pw_thread_loop *loop)
#  243|   {
#  244|-> 	pw_thread_loop_events_destroy(loop);
#  245|   
#  246|   	pw_thread_loop_stop(loop);

Error: CPPCHECK_WARNING (CWE-476): [#def1562]
pipewire-1.4.2/src/tools/pw-cli.c:2204: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: line
# 2202|   		line = strdup("quit");
# 2203|   
# 2204|-> 	if (line[0] != '\0') {
# 2205|   #ifdef HAVE_READLINE
# 2206|   		add_history(line);

Error: COMPILER_WARNING (CWE-252): [#def1563]
pipewire-1.4.2/src/tools/pw-container.c: scope_hint: In function ‘main’
pipewire-1.4.2/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): [#def1564]
pipewire-1.4.2/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): [#def1565]
pipewire-1.4.2/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): [#def1566]
pipewire-1.4.2/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): [#def1567]
pipewire-1.4.2/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): [#def1568]
pipewire-1.4.2/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): [#def1569]
pipewire-1.4.2/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): [#def1570]
pipewire-1.4.2/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): [#def1571]
pipewire-1.4.2/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): [#def1572]
pipewire-1.4.2/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): [#def1573]
pipewire-1.4.2/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): [#def1574]
pipewire-1.4.2/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): [#def1575]
pipewire-1.4.2/src/tools/pw-link.c:705: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  703|   
#  704|   	obj = calloc(1, sizeof(*obj));
#  705|-> 	obj->type = t;
#  706|   	obj->id = id;
#  707|   	obj->props = pw_properties_new_dict(props);

Error: CPPCHECK_WARNING (CWE-476): [#def1576]
pipewire-1.4.2/src/tools/pw-link.c:706: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  704|   	obj = calloc(1, sizeof(*obj));
#  705|   	obj->type = t;
#  706|-> 	obj->id = id;
#  707|   	obj->props = pw_properties_new_dict(props);
#  708|   	obj->data = extra;

Error: CPPCHECK_WARNING (CWE-476): [#def1577]
pipewire-1.4.2/src/tools/pw-link.c:707: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  705|   	obj->type = t;
#  706|   	obj->id = id;
#  707|-> 	obj->props = pw_properties_new_dict(props);
#  708|   	obj->data = extra;
#  709|   	spa_list_append(&d->objects, &obj->link);

Error: CPPCHECK_WARNING (CWE-476): [#def1578]
pipewire-1.4.2/src/tools/pw-link.c:708: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: obj
#  706|   	obj->id = id;
#  707|   	obj->props = pw_properties_new_dict(props);
#  708|-> 	obj->data = extra;
#  709|   	spa_list_append(&d->objects, &obj->link);
#  710|   

Error: CPPCHECK_WARNING (CWE-401): [#def1579]
pipewire-1.4.2/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): [#def1580]
pipewire-1.4.2/src/tools/pw-profiler.c:187: error[nullPointer]: Null pointer dereference
#  185|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  186|   				"\"xrun_count\": %u },\n",
#  187|-> 				driver_id, name, driver.prev_signal, driver.signal,
#  188|   				driver.awake, driver.finish, status_to_string(driver.status),
#  189|   				driver.latency.num, driver.latency.denom,

Error: CPPCHECK_WARNING (CWE-476): [#def1581]
pipewire-1.4.2/src/tools/pw-profiler.c:187: error[nullPointer]: Null pointer dereference: name
#  185|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  186|   				"\"xrun_count\": %u },\n",
#  187|-> 				driver_id, name, driver.prev_signal, driver.signal,
#  188|   				driver.awake, driver.finish, status_to_string(driver.status),
#  189|   				driver.latency.num, driver.latency.denom,

Error: CPPCHECK_WARNING (CWE-476): [#def1582]
pipewire-1.4.2/src/tools/pw-profiler.c:257: error[nullPointer]: Null pointer dereference
#  255|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  256|   				"\"xrun_count\": %u },\n",
#  257|-> 				id, name, m.prev_signal, m.signal,
#  258|   				m.awake, m.finish, status_to_string(m.status),
#  259|   				m.latency.num, m.latency.denom,

Error: CPPCHECK_WARNING (CWE-476): [#def1583]
pipewire-1.4.2/src/tools/pw-profiler.c:257: error[nullPointer]: Null pointer dereference: name
#  255|   				"\"finish\": %"PRIu64", \"status\": \"%s\", \"latency\": \"%u/%u\", "
#  256|   				"\"xrun_count\": %u },\n",
#  257|-> 				id, name, m.prev_signal, m.signal,
#  258|   				m.awake, m.finish, status_to_string(m.status),
#  259|   				m.latency.num, m.latency.denom,

Error: CPPCHECK_WARNING (CWE-401): [#def1584]
pipewire-1.4.2/test/pwtest.c:179: error[memleak]: Memory leak: cpid
#  177|   	spa_list_append(&ctx->cleanup_pids, &cpid->link);
#  178|   
#  179|-> 	return 0;
#  180|   }
#  181|   

Error: CPPCHECK_WARNING (CWE-476): [#def1585]
pipewire-1.4.2/test/pwtest.c:482: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  480|   
#  481|   	t = calloc(1, sizeof *t);
#  482|-> 	t->result = PWTEST_SYSTEM_ERROR;
#  483|   	t->name = funcname;
#  484|   	t->func = func;

Error: CPPCHECK_WARNING (CWE-476): [#def1586]
pipewire-1.4.2/test/pwtest.c:483: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  481|   	t = calloc(1, sizeof *t);
#  482|   	t->result = PWTEST_SYSTEM_ERROR;
#  483|-> 	t->name = funcname;
#  484|   	t->func = func;
#  485|   	t->args.range.min = 0;

Error: CPPCHECK_WARNING (CWE-476): [#def1587]
pipewire-1.4.2/test/pwtest.c:484: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  482|   	t->result = PWTEST_SYSTEM_ERROR;
#  483|   	t->name = funcname;
#  484|-> 	t->func = func;
#  485|   	t->args.range.min = 0;
#  486|   	t->args.range.max = 1;

Error: CPPCHECK_WARNING (CWE-476): [#def1588]
pipewire-1.4.2/test/pwtest.c:485: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  483|   	t->name = funcname;
#  484|   	t->func = func;
#  485|-> 	t->args.range.min = 0;
#  486|   	t->args.range.max = 1;
#  487|   	t->args.env = pw_properties_new("PWTEST", "1", NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def1589]
pipewire-1.4.2/test/pwtest.c:486: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  484|   	t->func = func;
#  485|   	t->args.range.min = 0;
#  486|-> 	t->args.range.max = 1;
#  487|   	t->args.env = pw_properties_new("PWTEST", "1", NULL);
#  488|   	t->env = pw_properties_new(NULL, NULL);

Error: CPPCHECK_WARNING (CWE-476): [#def1590]
pipewire-1.4.2/test/pwtest.c:487: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  485|   	t->args.range.min = 0;
#  486|   	t->args.range.max = 1;
#  487|-> 	t->args.env = pw_properties_new("PWTEST", "1", NULL);
#  488|   	t->env = pw_properties_new(NULL, NULL);
#  489|   	for (size_t i = 0; i < SPA_N_ELEMENTS(t->logs); i++)

Error: CPPCHECK_WARNING (CWE-476): [#def1591]
pipewire-1.4.2/test/pwtest.c:488: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: t
#  486|   	t->args.range.max = 1;
#  487|   	t->args.env = pw_properties_new("PWTEST", "1", NULL);
#  488|-> 	t->env = pw_properties_new(NULL, NULL);
#  489|   	for (size_t i = 0; i < SPA_N_ELEMENTS(t->logs); i++)
#  490|   		pw_array_init(&t->logs[i], 1024);

Error: CPPCHECK_WARNING (CWE-476): [#def1592]
pipewire-1.4.2/test/pwtest.c:545: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  543|   	struct pwtest_suite *c = calloc(1, sizeof *c);
#  544|   
#  545|-> 	c->decl = decl;
#  546|   	spa_list_init(&c->tests);
#  547|   	spa_list_append(&ctx->suites, &c->link);

Error: CPPCHECK_WARNING (CWE-401): [#def1593]
pipewire-1.4.2/test/pwtest.c:548: error[memleak]: Memory leak: c
#  546|   	spa_list_init(&c->tests);
#  547|   	spa_list_append(&ctx->suites, &c->link);
#  548|-> }
#  549|   
#  550|   static void free_test(struct pwtest_test *t)

Error: CPPCHECK_WARNING (CWE-570): [#def1594]
pipewire-1.4.2/test/pwtest.c:576: error[comparePointers]: Comparing pointers that point to different objects
#  574|   	const struct pwtest_suite_decl *c;
#  575|   
#  576|-> 	for (c = &__start_pwtest_suite_section; c < &__stop_pwtest_suite_section; c++) {
#  577|   		if (suite_filter == NULL || fnmatch(suite_filter, c->name, 0) == 0)
#  578|   			add_suite(ctx, c);

Error: CPPCHECK_WARNING (CWE-476): [#def1595]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def1596]
pipewire-1.4.2/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): [#def1597]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def1598]
pipewire-1.4.2/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): [#def1599]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def1600]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def1601]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-476): [#def1602]
pipewire-1.4.2/test/test-logger.c:588: warning[nullPointerOutOfResources]: If resource allocation fails, then there is a possible null pointer dereference: fp
#  586|   	mark_line_found = false;
#  587|   	fp = fopen(fname, "re");
#  588|-> 	while (fgets(buffer, sizeof(buffer), fp) != NULL) {
#  589|   		if (strstr(buffer, token)) {
#  590|   			mark_line_found = true;

Error: CPPCHECK_WARNING (CWE-476): [#def1603]
pipewire-1.4.2/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): [#def1604]
pipewire-1.4.2/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): [#def1605]
pipewire-1.4.2/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: CPPCHECK_WARNING (CWE-457): [#def1606]
pipewire-1.4.2/test/test-spa-pod.c:870: warning[uninitvar]: Uninitialized variable: media_type
#  868|   		SPA_FORMAT_VIDEO_framerate,	SPA_POD_PodChoice(&Vframerate)) == 5);
#  869|   
#  870|-> 	spa_assert_se(media_type == SPA_MEDIA_TYPE_video);
#  871|   	spa_assert_se(media_subtype == SPA_MEDIA_SUBTYPE_raw);
#  872|   

Error: CPPCHECK_WARNING (CWE-476): [#def1607]
pipewire-1.4.2/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): [#def1608]
pipewire-1.4.2/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): [#def1609]
pipewire-1.4.2/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): [#def1610]
pipewire-1.4.2/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): [#def1611]
pipewire-1.4.2/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): [#def1612]
pipewire-1.4.2/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.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-67.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepipewire-1.4.2-1.fc43
store-results-to/tmp/tmplb4d0ucm/pipewire-1.4.2-1.fc43.tar.xz
time-created2025-04-25 15:05:28
time-finished2025-04-25 15:20:09
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmplb4d0ucm/pipewire-1.4.2-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmplb4d0ucm/pipewire-1.4.2-1.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9