pipewire-1.2.6-1.fc42

List of Findings

Error: CPPCHECK_WARNING (CWE-457): [#def1]
pipewire-1.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def5]
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-jack/jack/control.h:33: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-jack/src/control.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-jack/jack/jslist.h: scope_hint: In function ‘jack_slist_append’
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-jack/jack/jslist.h:229:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘jack_slist_alloc()’
#  227|   
#  228|       new_list = jack_slist_alloc ();
#  229|->     new_list->data = data;
#  230|   
#  231|       if (list) {

Error: CPPCHECK_WARNING (CWE-457): [#def6]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def7]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def8]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def9]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def10]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def11]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def12]
pipewire-1.2.6-build/pipewire-1.2.6/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-775): [#def13]
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-v4l2/src/v4l2-func.c:37:23: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(path,  oflag)’
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-v4l2/src/v4l2-func.c: scope_hint: In function ‘open’
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-v4l2/src/v4l2-func.c:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-v4l2/src/v4l2-func.c: scope_hint: In function ‘open’
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-v4l2/src/v4l2-func.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/pipewire-v4l2/src/v4l2-func.c: scope_hint: In function ‘open’
#   35|   static inline bool needs_mode(int flags)
#   36|   {
#   37|-> 	return (flags & O_CREAT) || ((flags & O_TMPFILE) == O_TMPFILE);
#   38|   }
#   39|   

Error: CPPCHECK_WARNING (CWE-190): [#def14]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/log.h:44: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   42|   	va_list args;
#   43|   	va_start(args, fmt);
#   44|-> 	spa_log_logtv(c->log, c->level, c->topic, c->file, c->line, c->func, fmt, args);
#   45|   	va_end(args);
#   46|   }

Error: CPPCHECK_WARNING (CWE-190): [#def15]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/monitor/utils.h:54: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   52|   	int res;
#   53|   
#   54|-> 	spa_device_add_listener(device, &listener, &device_events, &data);
#   55|   	res = spa_device_enum_params(device, 0, id, *index, 1, filter);
#   56|   	spa_hook_remove(&listener);

Error: CPPCHECK_WARNING (CWE-190): [#def16]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/monitor/utils.h:55: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   53|   
#   54|   	spa_device_add_listener(device, &listener, &device_events, &data);
#   55|-> 	res = spa_device_enum_params(device, 0, id, *index, 1, filter);
#   56|   	spa_hook_remove(&listener);
#   57|   

Error: CPPCHECK_WARNING (CWE-190): [#def17]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:56: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   54|   	int res;
#   55|   
#   56|-> 	res = spa_node_add_listener(node, &listener, &node_events, &data);
#   57|   	if (res >= 0) {
#   58|   		res = spa_node_enum_params(node, 0, id, *index, 1, filter);

Error: CPPCHECK_WARNING (CWE-190): [#def18]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:58: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   56|   	res = spa_node_add_listener(node, &listener, &node_events, &data);
#   57|   	if (res >= 0) {
#   58|-> 		res = spa_node_enum_params(node, 0, id, *index, 1, filter);
#   59|   		spa_hook_remove(&listener);
#   60|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def19]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:90: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   88|   	int res;
#   89|   
#   90|-> 	res = spa_node_add_listener(node, &listener, &node_events, &data);
#   91|   	if (res >= 0) {
#   92|   		res = spa_node_port_enum_params(node, 0, direction, port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def20]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   	res = spa_node_add_listener(node, &listener, &node_events, &data);
#   91|   	if (res >= 0) {
#   92|-> 		res = spa_node_port_enum_params(node, 0, direction, port_id,
#   93|   				id, *index, 1, filter);
#   94|   		spa_hook_remove(&listener);

Error: CPPCHECK_WARNING (CWE-190): [#def21]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  125|   		res = -ENOSPC;
#  126|   		if (offset <= builder->size)
#  127|-> 			spa_callbacks_call_res(&builder->callbacks,
#  128|   					struct spa_pod_builder_callbacks, res,
#  129|   					overflow, 0, offset + size);

Error: GCC_ANALYZER_WARNING (CWE-688): [#def22]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:20: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_raw’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:132:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c: scope_hint: In function ‘spa_pod_builder_raw’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/system.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:16: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2549:17: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c: scope_hint: In function ‘spa_pod_builder_raw’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/system.h:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:434:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:435:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:435:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h: scope_hint: In function ‘spa_pod_builder_raw’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:22:85: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:439:58: note: in expansion of macro ‘SPA_POD_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:9: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  130|   	}
#  131|   	if (res == 0 && data)
#  132|-> 		memcpy(SPA_PTROFF(builder->data, offset, void), data, size);
#  133|   
#  134|   	builder->state.offset += size;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def23]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native/protocol-native.c:8: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:579: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.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native/protocol-native.c:1878:9: note: in expansion of macro ‘spa_pod_builder_add_struct’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native/protocol-native.c:1878:9: note: in expansion of macro ‘spa_pod_builder_add_struct’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native/protocol-native.c:1878:9: note: in expansion of macro ‘spa_pod_builder_add_struct’
#  577|   		case SPA_TYPE_Object:
#  578|   		{
#  579|-> 			uint32_t key = va_arg(args, uint32_t);
#  580|   			if (key == 0)
#  581|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def24]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:587: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’
#  585|   		case SPA_TYPE_Sequence:
#  586|   		{
#  587|-> 			uint32_t offset = va_arg(args, uint32_t);
#  588|   			uint32_t type = va_arg(args, uint32_t);
#  589|   			if (type == 0)

Error: GCC_ANALYZER_WARNING (CWE-686): [#def25]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/control/mixer.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:588: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.2.6-build/pipewire-1.2.6/spa/plugins/control/mixer.c:295:26: note: in expansion of macro ‘spa_pod_builder_add_object’
#  586|   		{
#  587|   			uint32_t offset = va_arg(args, uint32_t);
#  588|-> 			uint32_t type = va_arg(args, uint32_t);
#  589|   			if (type == 0)
#  590|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-685): [#def26]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:588:34: warning[-Wanalyzer-va-list-exhausted]: ‘args’ has no more arguments (1 consumed)
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:120:9: note: in expansion of macro ‘spa_list_for_each_safe_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:423:9: note: in expansion of macro ‘spa_list_for_each_safe’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/buffer/buffer.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/buffer/alloc.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:120:9: note: in expansion of macro ‘spa_list_for_each_safe_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:423:9: note: in expansion of macro ‘spa_list_for_each_safe’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
#  586|   		{
#  587|   			uint32_t offset = va_arg(args, uint32_t);
#  588|-> 			uint32_t type = va_arg(args, uint32_t);
#  589|   			if (type == 0)
#  590|   				goto exit;

Error: GCC_ANALYZER_WARNING (CWE-686): [#def27]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:597:29: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘const char *’ but received ‘int’ for variadic argument 1 of ‘args’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:120:9: note: in expansion of macro ‘spa_list_for_each_safe_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:423:9: note: in expansion of macro ‘spa_list_for_each_safe’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:120:9: note: in expansion of macro ‘spa_list_for_each_safe_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:423:9: note: in expansion of macro ‘spa_list_for_each_safe’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h: scope_hint: In function ‘spa_pod_builder_addv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:50: note: in definition of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:115:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084:9: note: in expansion of macro ‘spa_node_emit_event’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2085:25: note: in expansion of macro ‘spa_pod_builder_add_object’
#  595|   			break;
#  596|   		}
#  597|-> 		if ((format = va_arg(args, const char *)) == NULL)
#  598|   			break;
#  599|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def28]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/dynamic.h: scope_hint: In function ‘spa_pod_dynamic_builder_overflow’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/dynamic.h:34:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘old_data’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c: scope_hint: In function ‘spa_pod_dynamic_builder_overflow’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2549:17: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c: scope_hint: In function ‘spa_pod_dynamic_builder_overflow’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:434:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:435:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:435:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h: scope_hint: In function ‘spa_pod_dynamic_builder_overflow’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:22:85: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:439:58: note: in expansion of macro ‘SPA_POD_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
#   32|   		return -errno;
#   33|   	if (old_data == d->data && new_data != old_data && old_size > 0)
#   34|-> 		memcpy(new_data, old_data, old_size);
#   35|   	d->b.data = new_data;
#   36|   	d->b.size = new_size;

Error: CPPCHECK_WARNING (CWE-476): [#def29]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:47: warning[nullPointer]: Possible null pointer dereference: (struct spa_pod*)(pod)
#   45|   				      const struct spa_pod *pod)
#   46|   {
#   47|-> 	spa_pod_parser_init(parser, pod, SPA_POD_SIZE(pod));
#   48|   }
#   49|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def30]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native/protocol-native.c:9: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:459: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.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:364:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native/protocol-native.c: scope_hint: In function ‘spa_pod_parser_getv’
#  457|   
#  458|   		if (f && ftype == SPA_TYPE_Object) {
#  459|-> 			uint32_t key = va_arg(args, uint32_t);
#  460|   			const struct spa_pod_object *object;
#  461|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def31]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c:7: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:459: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.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c:458:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:364:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c:458:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c:458:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c:458:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/protocol-native.c:458:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
#  457|   
#  458|   		if (f && ftype == SPA_TYPE_Object) {
#  459|-> 			uint32_t key = va_arg(args, uint32_t);
#  460|   			const struct spa_pod_object *object;
#  461|   

Error: GCC_ANALYZER_WARNING (CWE-686): [#def32]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/audio/format-utils.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:24: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:470:29: warning[-Wanalyzer-va-arg-type-mismatch]: ‘va_arg’ expected ‘const char *’ but received ‘int’ for variadic argument 1 of ‘args’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/audio/format-utils.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:556:9: note: in expansion of macro ‘spa_pod_parser_get_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/format-utils.h:24:16: note: in expansion of macro ‘spa_pod_parse_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h: scope_hint: In function ‘spa_pod_parser_getv’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:556:9: note: in expansion of macro ‘spa_pod_parser_get_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/format-utils.h:24:16: note: in expansion of macro ‘spa_pod_parse_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:556:9: note: in expansion of macro ‘spa_pod_parser_get_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/format-utils.h:24:16: note: in expansion of macro ‘spa_pod_parse_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:556:9: note: in expansion of macro ‘spa_pod_parser_get_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/format-utils.h:24:16: note: in expansion of macro ‘spa_pod_parse_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/parser.h:556:9: note: in expansion of macro ‘spa_pod_parser_get_object’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/format-utils.h:24:16: note: in expansion of macro ‘spa_pod_parse_object’
#  468|   		}
#  469|   
#  470|-> 		if ((format = va_arg(args, char *)) == NULL)
#  471|   			break;
#  472|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def33]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:20:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:22:85: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:88:30: note: in expansion of macro ‘SPA_POD_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c: scope_hint: In function ‘spa_pod_filter’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:434:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:435:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:435:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h: scope_hint: In function ‘spa_pod_filter’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:22:85: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:439:58: note: in expansion of macro ‘SPA_POD_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:127:25: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:22:85: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:88:30: note: in expansion of macro ‘SPA_POD_SIZE’
#   18|    */
#   19|   
#   20|-> #define SPA_POD_BODY_SIZE(pod)			(((struct spa_pod*)(pod))->size)
#   21|   #define SPA_POD_TYPE(pod)			(((struct spa_pod*)(pod))->type)
#   22|   #define SPA_POD_SIZE(pod)			((uint64_t)sizeof(struct spa_pod) + SPA_POD_BODY_SIZE(pod))

Error: GCC_ANALYZER_WARNING (CWE-476): [#def34]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/pod.h:21:74: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pod’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/collect.c: scope_hint: In function ‘spa_pod_fixate’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/collect.c: scope_hint: In function ‘spa_pod_fixate’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/collect.c: scope_hint: In function ‘spa_pod_fixate’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/param.h:21: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/param/props.h:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/collect.c:5: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:212:51: note: in definition of macro ‘SPA_CONTAINER_OF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:92:22: note: in expansion of macro ‘spa_list_first’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/collect.c:261:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/builder.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/collect.c:261:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
#   19|   
#   20|   #define SPA_POD_BODY_SIZE(pod)			(((struct spa_pod*)(pod))->size)
#   21|-> #define SPA_POD_TYPE(pod)			(((struct spa_pod*)(pod))->type)
#   22|   #define SPA_POD_SIZE(pod)			((uint64_t)sizeof(struct spa_pod) + SPA_POD_BODY_SIZE(pod))
#   23|   #define SPA_POD_CONTENTS_SIZE(type,pod)		(SPA_POD_SIZE(pod)-sizeof(type))

Error: CPPCHECK_WARNING (CWE-190): [#def35]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/dbus.h:133: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  131|   {
#  132|   	struct spa_dbus_connection *res = NULL;
#  133|-> 	spa_interface_call_res(&dbus->iface,
#  134|                           struct spa_dbus_methods, res,
#  135|   			get_connection, 0, type);

Error: CPPCHECK_WARNING (CWE-190): [#def36]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/i18n.h:61: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   59|   	const char *res = msgid;
#   60|   	if (SPA_LIKELY(i18n != NULL))
#   61|-> 		spa_interface_call_res(&i18n->iface,
#   62|   	                        struct spa_i18n_methods, res,
#   63|   				text, 0, msgid);

Error: CPPCHECK_WARNING (CWE-190): [#def37]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/i18n.h:73: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   71|   	const char *res = n == 1 ? msgid : msgid_plural;
#   72|   	if (SPA_LIKELY(i18n != NULL))
#   73|-> 		spa_interface_call_res(&i18n->iface,
#   74|   	                        struct spa_i18n_methods, res,
#   75|   				ntext, 0, msgid, msgid_plural, n);

Error: CPPCHECK_WARNING (CWE-190): [#def38]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin-loader.h:56: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   54|   	struct spa_handle *res = NULL;
#   55|   	if (SPA_LIKELY(loader != NULL))
#   56|-> 		spa_interface_call_res(&loader->iface,
#   57|   				struct spa_plugin_loader_methods, res,
#   58|   				load, 0, factory_name, info);

Error: CPPCHECK_WARNING (CWE-190): [#def39]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin-loader.h:67: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   65|   	int res = -1;
#   66|   	if (SPA_LIKELY(loader != NULL))
#   67|-> 		spa_interface_call_res(&loader->iface,
#   68|   				struct spa_plugin_loader_methods, res,
#   69|   				unload, 0, handle);

Error: CPPCHECK_WARNING (CWE-190): [#def40]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/thread.h:65: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   63|   {
#   64|   	struct spa_thread *res = NULL;
#   65|-> 	spa_interface_call_res(&o->iface,
#   66|   			struct spa_thread_utils_methods, res, create, 0,
#   67|   			props, start_routine, arg);

Error: CPPCHECK_WARNING (CWE-190): [#def41]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/thread.h:77: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   75|   {
#   76|   	int res = -ENOTSUP;
#   77|-> 	spa_interface_call_res(&o->iface,
#   78|   			struct spa_thread_utils_methods, res, join, 0,
#   79|   			thread, retval);

Error: CPPCHECK_WARNING (CWE-190): [#def42]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/thread.h:89: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   87|   {
#   88|   	int res = -ENOTSUP;
#   89|-> 	spa_interface_call_res(&o->iface,
#   90|   			struct spa_thread_utils_methods, res, get_rt_range, 0,
#   91|   			props, min, max);

Error: CPPCHECK_WARNING (CWE-190): [#def43]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/thread.h:101: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   99|   {
#  100|   	int res = -ENOTSUP;
#  101|-> 	spa_interface_call_res(&o->iface,
#  102|   			struct spa_thread_utils_methods, res, acquire_rt, 0,
#  103|   			thread, priority);

Error: CPPCHECK_WARNING (CWE-190): [#def44]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/thread.h:113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  111|   {
#  112|   	int res = -ENOTSUP;
#  113|-> 	spa_interface_call_res(&o->iface,
#  114|   			struct spa_thread_utils_methods, res, drop_rt, 0, thread);
#  115|   	return res;

Error: GCC_ANALYZER_WARNING (CWE-415): [#def45]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:16: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h: scope_hint: In function ‘_spa_autofree_cleanup_func’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:86:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘*(void **)p’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:13: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:161:17: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:72:46: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:72:46: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:72:46: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:72:46: note: in expansion of macro ‘spa_aprintf’
#   84|   {
#   85|   	int save_errno = errno;
#   86|-> 	free(*(void **) p);
#   87|   	errno = save_errno;
#   88|   }

Error: GCC_ANALYZER_WARNING (CWE-688): [#def46]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h: scope_hint: In function ‘spa_hook_list_append’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:408:27: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘hook’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:409:22: note: in expansion of macro ‘spa_memzero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:366:9: note: in expansion of macro ‘spa_zero’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:409:22: note: in expansion of macro ‘spa_memzero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:366:9: note: in expansion of macro ‘spa_zero’
<built-in>: note: argument 1 of ‘__builtin_memset’ must be non-null
#  406|   #endif
#  407|   
#  408|-> #define spa_memzero(x,l) (memset((x), 0, (l)))
#  409|   #define spa_zero(x) (spa_memzero(&(x), sizeof(x)))
#  410|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def47]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/log.h:16: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:10: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c: scope_hint: In function ‘emit_port_info’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:161:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘port’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:424:17: note: in expansion of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:113:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:123:17: note: in expansion of macro ‘spa_node_emit_port_info’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:539:16: note: in expansion of macro ‘GET_PORT’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:113:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:123:17: note: in expansion of macro ‘spa_node_emit_port_info’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:120:9: note: in expansion of macro ‘spa_list_for_each_safe_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:423:9: note: in expansion of macro ‘spa_list_for_each_safe’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:113:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:123:17: note: in expansion of macro ‘spa_node_emit_port_info’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:424:17: note: in expansion of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:113:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:123:17: note: in expansion of macro ‘spa_node_emit_port_info’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:424:17: note: in expansion of macro ‘spa_callbacks_call’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:109:17: note: in expansion of macro ‘spa_hook_list_call_simple’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/utils.h:113:49: note: in expansion of macro ‘spa_node_emit’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:123:17: note: in expansion of macro ‘spa_node_emit_port_info’
#  159|   	bool _res = SPA_CALLBACK_CHECK(_f,method,vers);				\
#  160|   	if (SPA_LIKELY(_res))							\
#  161|-> 		_f->method((callbacks)->data, ## __VA_ARGS__);			\
#  162|   	_res;									\
#  163|   })

Error: GCC_ANALYZER_WARNING (CWE-457): [#def48]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/cmd.c:6: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h: scope_hint: In function ‘spa_json_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h:85:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*iter.cur’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h: scope_hint: In function ‘spa_json_next’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/cmd.c: scope_hint: In function ‘spa_json_next’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h: scope_hint: In function ‘spa_json_next’
#   83|   	uint64_t array_stack[8] = {0};		/* array context flags of depths 1...512 */
#   84|   
#   85|-> 	*value = iter->cur;
#   86|   
#   87|   	if (iter->state & SPA_JSON_ERROR_FLAG)

Error: GCC_ANALYZER_WARNING (CWE-476): [#def49]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h:91:52: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘value’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h: scope_hint: In function ‘spa_json_next’
#   89|   
#   90|   	for (; iter->cur < iter->end; iter->cur++) {
#   91|-> 		unsigned char cur = (unsigned char)*iter->cur;
#   92|   		uint32_t flag;
#   93|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def50]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h: scope_hint: In function ‘spa_json_enter_container’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h:365:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘value’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/json.h: scope_hint: In function ‘spa_json_enter_container’
#  363|   	if ((len = spa_json_next(iter, &value)) <= 0)
#  364|   		return len;
#  365|-> 	if (*value != type)
#  366|   		return -1;
#  367|   	spa_json_enter(iter, sub);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def51]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:43:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘e’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c: scope_hint: In function ‘utils_list’
#   41|   static inline void spa_list_insert(struct spa_list *list, struct spa_list *elem)
#   42|   {
#   43|-> 	elem->prev = list;
#   44|   	elem->next = list->next;
#   45|   	list->next = elem;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def52]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘t’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c: scope_hint: In function ‘free_tunnel’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/result.h:22: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:20: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:88:15: note: in expansion of macro ‘spa_list_is_empty’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def53]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘cpid’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c: scope_hint: In function ‘free_cleanup_pids’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1219:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1224:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1226:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1240:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1246:17: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:767:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1045:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:209:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c: scope_hint: In function ‘free_cleanup_pids’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:209:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def54]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘e’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c: scope_hint: In function ‘utils_list’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:219:9: note: in expansion of macro ‘pwtest_comparison_bool_’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:265:9: note: in expansion of macro ‘pwtest_bool_false’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest-implementation.h:89:37: note: in definition of macro ‘pwtest_comparison_ptr_’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:266:9: note: in expansion of macro ‘pwtest_ptr_eq’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:69:9: note: in expansion of macro ‘SPA_CONTAINER_OF’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:266:23: note: in expansion of macro ‘spa_list_last’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:293:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c: scope_hint: In function ‘utils_list’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-utils.c:293:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def55]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘g’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c: scope_hint: In function ‘unload_module’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:291:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c: scope_hint: In function ‘unload_module’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:291:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def56]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘pattern’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.c: scope_hint: In function ‘pw_log_deinit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.c:496:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.c: scope_hint: In function ‘pw_log_deinit’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.c:496:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def57]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘s’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-device-restore.c: scope_hint: In function ‘remove_subscribe’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-device-restore.c:479:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-device-restore.c: scope_hint: In function ‘remove_subscribe’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-device-restore.c:479:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-416): [#def58]
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:61:13: warning[-Wanalyzer-use-after-free]: use after ‘free’ of ‘t’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c: scope_hint: In function ‘free_tunnel’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c: scope_hint: In function ‘free_tunnel’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
#   59|   static inline void spa_list_remove(struct spa_list *elem)
#   60|   {
#   61|-> 	elem->prev->next = elem->next;
#   62|   	elem->next->prev = elem->prev;
#   63|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def59]
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:36: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h: scope_hint: In function ‘spa_vscnprintf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:221:27: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buffer’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1219:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1224:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1226:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:38: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1240:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1246:17: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:41: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
#  219|   	r = vsnprintf(buffer, size, format, args);
#  220|   	if (SPA_UNLIKELY(r < 0))
#  221|-> 		buffer[0] = '\0';
#  222|   	if (SPA_LIKELY(r < (ssize_t)size))
#  223|   		return r;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def60]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp-tool.c: scope_hint: In function ‘main’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp-tool.c:738:41: warning[-Wanalyzer-malloc-leak]: leak of ‘data.properties’
#  736|   			break;
#  737|   		case 'p':
#  738|-> 			data.properties = strdup(optarg);
#  739|   			break;
#  740|                   default:

Error: CPPCHECK_WARNING (CWE-457): [#def61]
pipewire-1.2.6-build/pipewire-1.2.6/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-401): [#def62]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-mixer.c:4313: error[memleakOnRealloc]: Common realloc mistake: 'db_values' nulled but not freed upon failure
# 4311|                   if (prev_step + 1 - min_step == n) {
# 4312|                       n *= 2;
# 4313|->                     db_values = pa_xrenew(long, db_values, n);
# 4314|                   }
# 4315|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def63]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c: scope_hint: In function ‘ucm_get_devices’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:585:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘d’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:242:9: note: in expansion of macro ‘pa_log_levelv_meta’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:242:9: note: in expansion of macro ‘pa_log_levelv_meta’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:583:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:583:33: note: in expansion of macro ‘pa_xnew0’
#  583|           pa_alsa_ucm_device *d = pa_xnew0(pa_alsa_ucm_device, 1);
#  584|   
#  585|->         d->proplist = pa_proplist_new();
#  586|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(dev_list[i]));
#  587|           pa_proplist_sets(d->proplist, PA_ALSA_PROP_UCM_DESCRIPTION, pa_strna(dev_list[i + 1]));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def64]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c: scope_hint: In function ‘ucm_get_modifiers’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:690:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘m’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:242:9: note: in expansion of macro ‘pa_log_levelv_meta’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:242:9: note: in expansion of macro ‘pa_log_levelv_meta’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:689:13: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:689:13: note: in expansion of macro ‘pa_xnew0’
#  688|   
#  689|           m = pa_xnew0(pa_alsa_ucm_modifier, 1);
#  690|->         m->proplist = pa_proplist_new();
#  691|   
#  692|           pa_proplist_sets(m->proplist, PA_ALSA_PROP_UCM_NAME, mod_list[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def65]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c: scope_hint: In function ‘pa_alsa_ucm_get_verb.part.0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:973:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘verb’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:972:12: note: in expansion of macro ‘pa_xnew0’
#  971|   
#  972|       verb = pa_xnew0(pa_alsa_ucm_verb, 1);
#  973|->     verb->proplist = pa_proplist_new();
#  974|   
#  975|       pa_proplist_sets(verb->proplist, PA_ALSA_PROP_UCM_NAME, pa_strnull(verb_name));

Error: CPPCHECK_WARNING (CWE-457): [#def66]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:1143: 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
# 1141|   
# 1142|       /* Sort by alphabetical order so as to have a deterministic naming scheme */
# 1143|->     qsort(&sorted[0], num, sizeof(pa_alsa_ucm_device *), pa_alsa_ucm_device_cmp);
# 1144|   
# 1145|       for (i = 0; i < num; i++) {

Error: CPPCHECK_WARNING (CWE-457): [#def67]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:1175: 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
# 1173|   
# 1174|       /* Sort by alphabetical order to match devset_name() */
# 1175|->     qsort(&sorted[0], num, sizeof(pa_alsa_ucm_device *), pa_alsa_ucm_device_cmp);
# 1176|   
# 1177|       for (i = 0; i < num; i++) {

Error: CPPCHECK_WARNING (CWE-476): [#def68]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:1983: warning[nullPointer]: Possible null pointer dereference: c
# 1981|           char *verb_cmp, *c;
# 1982|           c = verb_cmp = pa_xstrdup(verb_name);
# 1983|->         while (*c) {
# 1984|               if (*c == '_') *c = ' ';
# 1985|               c++;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def69]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c: scope_hint: In function ‘pa_alsa_get_supported_rates’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1509:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:334:40: note: in definition of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1505:17: note: in expansion of macro ‘pa_xnew’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1505:17: note: in expansion of macro ‘pa_xnew’
# 1507|           for (i = 0, j = 0; i < PA_ELEMENTSOF(all_rates); i++) {
# 1508|               if (supported[i])
# 1509|->                 rates[j++] = all_rates[i];
# 1510|           }
# 1511|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def70]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1512:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:334:40: note: in definition of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1505:17: note: in expansion of macro ‘pa_xnew’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1505:17: note: in expansion of macro ‘pa_xnew’
# 1510|           }
# 1511|   
# 1512|->         rates[j] = 0;
# 1513|       } else {
# 1514|           rates = pa_xnew(unsigned int, 2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def71]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1516:18: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘rates’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1514:17: note: in expansion of macro ‘pa_xnew’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1514:17: note: in expansion of macro ‘pa_xnew’
# 1514|           rates = pa_xnew(unsigned int, 2);
# 1515|   
# 1516|->         rates[0] = fallback_rate;
# 1517|           if ((ret = snd_pcm_hw_params_set_rate_near(pcm, hwparams, &rates[0], NULL)) < 0) {
# 1518|               pa_log_debug("snd_pcm_hw_params_set_rate_near() failed: %s", pa_alsa_strerror(ret));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def72]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c: scope_hint: In function ‘pa_alsa_get_supported_formats’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1588:30: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘formats’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:334:40: note: in definition of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1584:19: note: in expansion of macro ‘pa_xnew’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1584:19: note: in expansion of macro ‘pa_xnew’
# 1586|           for (i = 0, j = 0; i < PA_ELEMENTSOF(all_formats); i++) {
# 1587|               if (supported[i])
# 1588|->                 formats[j++] = all_formats[i];
# 1589|           }
# 1590|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def73]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1591:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘formats’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:334:40: note: in definition of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1584:19: note: in expansion of macro ‘pa_xnew’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1584:19: note: in expansion of macro ‘pa_xnew’
# 1589|           }
# 1590|   
# 1591|->         formats[j] = PA_SAMPLE_MAX;
# 1592|       } else {
# 1593|           formats = pa_xnew(pa_sample_format_t, 2);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def74]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1595:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘formats’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1593:19: note: in expansion of macro ‘pa_xnew’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:335:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1593:19: note: in expansion of macro ‘pa_xnew’
# 1593|           formats = pa_xnew(pa_sample_format_t, 2);
# 1594|   
# 1595|->         formats[0] = fallback_format;
# 1596|           if ((ret = snd_pcm_hw_params_set_format(pcm, hwparams, format_trans_to_pcm[formats[0]])) < 0) {
# 1597|               pa_log_debug("snd_pcm_hw_params_set_format() failed: %s", pa_alsa_strerror(ret));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def75]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c: scope_hint: In function ‘mixer_class_event’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1741:25: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘_helem’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1740:26: note: in expansion of macro ‘pa_xmalloc’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1740:26: note: in expansion of macro ‘pa_xmalloc’
# 1739|               if (!new_melem) {
# 1740|                   _helem = pa_xmalloc(sizeof(snd_hctl_elem_t *));
# 1741|->                 *_helem = helem;
# 1742|                   /* Put the hctl pointer as our private data - it will be useful for callbacks */
# 1743|                   if ((err = snd_mixer_elem_new(&new_melem, SND_MIXER_ELEM_PULSEAUDIO, 0, _helem, mixer_melem_free)) < 0) {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def76]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1764:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 1762|                       return 0;
# 1763|                   }
# 1764|->                 *_helem = helem;
# 1765|               }
# 1766|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def77]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:82: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.h:28: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:26: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h: scope_hint: In function ‘pa_alsa_open_mixer_by_name’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:34: warning[-Wanalyzer-malloc-leak]: leak of ‘pa_alsa_create_mixer(mixers,  dev,  m, (int)probe)’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1856:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:266:21: note: in expansion of macro ‘PA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1857:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1857:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c: scope_hint: In function ‘pa_alsa_open_mixer_by_name’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1795:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:266:21: note: in expansion of macro ‘PA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1796:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1796:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1840:10: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1846:28: note: in expansion of macro ‘pa_xstrdup’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
#   32|   #define pa_array_first(a)	((a)->data)
#   33|   #define pa_array_end(a)		(void*)((uint8_t*)(a)->data + (int)(a)->size)
#   34|-> #define pa_array_check(a,p)	((void*)((uint8_t*)p + (int)sizeof(*p)) <= pa_array_end(a))
#   35|   
#   36|   #define pa_array_for_each(pos, array)					\

Error: GCC_ANALYZER_WARNING (CWE-476): [#def78]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:55:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘d’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c: scope_hint: In function ‘pa_dynarray_new’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:242:9: note: in expansion of macro ‘pa_log_levelv_meta’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:242:9: note: in expansion of macro ‘pa_log_levelv_meta’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:164:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:583:33: note: in expansion of macro ‘pa_xnew0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:85: included_from: Included from here.
#   53|   {
#   54|   	arr->data = NULL;
#   55|-> 	arr->size = arr->alloc = 0;
#   56|   	arr->extend = extend;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def79]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:55:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘m’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c: scope_hint: In function ‘pa_hashmap_new’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:84: included_from: Included from here.
#   53|   {
#   54|   	arr->data = NULL;
#   55|-> 	arr->size = arr->alloc = 0;
#   56|   	arr->extend = extend;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:55:32: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c: scope_hint: In function ‘pa_proplist_new’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:87: included_from: Included from here.
#   53|   {
#   54|   	arr->data = NULL;
#   55|-> 	arr->size = arr->alloc = 0;
#   56|   	arr->extend = extend;
#   57|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def81]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h: scope_hint: In function ‘pa_array_ensure_size’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:81:20: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:5: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
#   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): [#def82]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:222:9: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
/usr/include/unistd.h:287:12: note: argument 1 of ‘access’ must be non-null
#  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): [#def83]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:222:9: warning[-Wanalyzer-null-argument]: use of NULL ‘base’ where non-null expected
/usr/include/unistd.h:287:12: note: argument 1 of ‘access’ must be non-null
#  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): [#def84]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c: scope_hint: In function ‘try_path’
pipewire-1.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
/usr/include/bits/sigstksz.h:24: included_from: Included from here.
/usr/include/signal.h:328: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:38: included_from: Included from here.
/usr/include/unistd.h:287:12: note: argument 1 of ‘access’ must be non-null
#  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): [#def85]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c: scope_hint: In function ‘parse_line’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:286:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘state.section’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:119:13: note: in expansion of macro ‘pa_streq’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:162:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:266:21: note: in expansion of macro ‘PA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:163:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:163:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:282:26: note: in expansion of macro ‘pa_memzero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:165:5: note: in expansion of macro ‘pa_zero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:177:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:86:9: note: in expansion of macro ‘pa_startswith’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:86:9: note: in expansion of macro ‘pa_startswith’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:162:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:266:21: note: in expansion of macro ‘PA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:163:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:163:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:282:26: note: in expansion of macro ‘pa_memzero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:165:5: note: in expansion of macro ‘pa_zero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:167:21: note: in expansion of macro ‘pa_fopen_cloexec’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:177:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:86:9: note: in expansion of macro ‘pa_startswith’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:86:9: note: in expansion of macro ‘pa_startswith’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:109:9: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:117:26: note: in expansion of macro ‘pa_xstrndup’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:119:13: note: in expansion of macro ‘pa_streq’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:23: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 1 of ‘strcmp’ must be non-null
#  284|   #define PA_ELEMENTSOF(x) (sizeof(x)/sizeof((x)[0]))
#  285|   
#  286|-> #define pa_streq(a,b) (!strcmp((a),(b)))
#  287|   #define pa_strneq(a,b,n) (!strncmp((a),(b),(n)))
#  288|   #define pa_strnull(s)	((s) ? (s) : "null")

Error: GCC_ANALYZER_WARNING (CWE-476): [#def86]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h: scope_hint: In function ‘pa_strbuf_new’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:365:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:364:24: note: in expansion of macro ‘pa_xnew0’
#  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): [#def87]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h: scope_hint: In function ‘pa_strbuf_printf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:374:15: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*sb.f’ where non-null expected
/usr/include/alsa/asoundlib.h:32: included_from: Included from here.
/usr/include/stdio.h:372:12: note: argument 1 of ‘vfprintf’ must be non-null
#  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): [#def88]
pipewire-1.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c: scope_hint: In function ‘dump_supported_rates’
/usr/include/stdio.h: scope_hint: In function ‘dump_supported_rates’
/usr/include/stdio.h:184:12: note: argument 1 of ‘fclose’ must be non-null
#  391|   {
#  392|   	char *ptr;
#  393|-> 	fclose(sb->f);
#  394|   	ptr = sb->ptr;
#  395|   	free(sb);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def89]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:431:12: warning[-Wanalyzer-malloc-leak]: leak of ‘try_path(fname,  _strp)’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c: scope_hint: In function ‘get_data_path’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:21: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:279:5: note: in expansion of macro ‘SPA_FOR_EACH_ELEMENT_VAR’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:280:35: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:280:35: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c:280:35: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
#  429|   static inline bool pa_is_path_absolute(const char *fn)
#  430|   {
#  431|->     return *fn == PA_PATH_SEP_CHAR;
#  432|   }
#  433|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def90]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:431:12: warning[-Wanalyzer-malloc-leak]: leak of ‘try_path(fname,  data_dir)’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c: scope_hint: In function ‘get_data_path’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
#  429|   static inline bool pa_is_path_absolute(const char *fn)
#  430|   {
#  431|->     return *fn == PA_PATH_SEP_CHAR;
#  432|   }
#  433|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def91]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:431:12: warning[-Wanalyzer-malloc-leak]: leak of ‘try_path(fname,  e)’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.c: scope_hint: In function ‘get_data_path’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:437:16: note: in expansion of macro ‘pa_xstrdup’
#  429|   static inline bool pa_is_path_absolute(const char *fn)
#  430|   {
#  431|->     return *fn == PA_PATH_SEP_CHAR;
#  432|   }
#  433|   

Error: CPPCHECK_WARNING (CWE-401): [#def92]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:508: error[memleakOnRealloc]: Common realloc mistake: 't' nulled but not freed upon failure
#  506|           if (i >= n) {
#  507|               n *= 2;
#  508|->             t = pa_xrenew(char*, t, n);
#  509|           }
#  510|       }

Error: CPPCHECK_WARNING (CWE-476): [#def93]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:585: warning[nullPointer]: Possible null pointer dereference: s
#  583|   {
#  584|       char *e, *l = NULL;
#  585|->     s += strspn(s, PA_WHITESPACE);
#  586|       for (e = s; *e; e++)
#  587|           if (!strchr(PA_WHITESPACE, *e))

Error: GCC_ANALYZER_WARNING (CWE-688): [#def94]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h: scope_hint: In function ‘pa_readlink’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:669:18: warning[-Wanalyzer-null-argument]: use of NULL ‘p’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-util.c:1406:5: note: in expansion of macro ‘pa_assert’
/usr/include/alsa/asoundlib.h:31: included_from: Included from here.
/usr/include/unistd.h:838:16: note: argument 1 of ‘readlink’ must be non-null
#  667|               return NULL;
#  668|   
#  669|->         if ((n = readlink(p, c, l-1)) < 0) {
#  670|               pa_xfree(c);
#  671|               return NULL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def95]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c: scope_hint: In function ‘pa_config_parse’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:187:14: warning[-Wanalyzer-malloc-leak]: leak of ‘state.proplist’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:162:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:266:21: note: in expansion of macro ‘PA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:163:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:163:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:282:26: note: in expansion of macro ‘pa_memzero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:165:5: note: in expansion of macro ‘pa_zero’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:251:33: note: in expansion of macro ‘pa_logl’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c:177:5: note: in expansion of macro ‘pa_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/conf-parser.c: scope_hint: In function ‘pa_config_parse’
#  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-476): [#def96]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/dynarray.h:59:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c: scope_hint: In function ‘device_add_hw_mute_jack’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:2487:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/compat.h:266:21: note: in expansion of macro ‘PA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:2488:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:2488:5: note: in expansion of macro ‘pa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h: scope_hint: In function ‘device_add_hw_mute_jack’
/usr/include/alsa/asoundlib.h:39: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-ucm.c:28: included_from: Included from here.
#   57|   {
#   58|   	pa_dynarray_item *item = pa_array_add(&array->array, sizeof(*item));
#   59|-> 	item->ptr = p;
#   60|   }
#   61|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def97]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h: scope_hint: In function ‘pa_hashmap_find’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:85:25: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:146:26: note: in expansion of macro ‘pa_array_first’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h: scope_hint: In function ‘pa_hashmap_find’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c: scope_hint: In function ‘pa_hashmap_find’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:74:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h: scope_hint: In function ‘pa_hashmap_find’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:85:25: note: read of 8 bytes from after the end of the region
#   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): [#def98]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h: scope_hint: In function ‘pa_hashmap_put’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:105:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:146:26: note: in expansion of macro ‘pa_array_first’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c:1611:5: note: in expansion of macro ‘PA_HASHMAP_FOREACH’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h: scope_hint: In function ‘pa_hashmap_put’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/acp.c: scope_hint: In function ‘pa_hashmap_put’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:84:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:74:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:74:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/hashmap.h:74:9: note: in expansion of macro ‘pa_array_for_each’
/usr/include/alsa/asoundlib.h:39: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/alsa-mixer.h:24: included_from: Included from here.
#  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-688): [#def99]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h: scope_hint: In function ‘pa_proplist_item_find’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:54:21: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*item.key’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
/usr/include/alsa/asoundlib.h:35: included_from: Included from here.
/usr/include/string.h:156:12: note: argument 2 of ‘strcmp’ must be non-null
#   52|   	pa_proplist_item *item;
#   53|   	pa_array_for_each(item, &p->array) {
#   54|-> 		if (strcmp(key, item->key) == 0)
#   55|   			return item;
#   56|   	}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def100]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:54:37: warning[-Wanalyzer-out-of-bounds]: heap-based buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:54:37: note: read of 8 bytes from after the end of the region
#   52|   	pa_proplist_item *item;
#   53|   	pa_array_for_each(item, &p->array) {
#   54|-> 		if (strcmp(key, item->key) == 0)
#   55|   			return item;
#   56|   	}

Error: GCC_ANALYZER_WARNING (CWE-476): [#def101]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h: scope_hint: In function ‘pa_proplist_sets’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:98:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘item’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:34:76: note: in expansion of macro ‘pa_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
#   96|           else
#   97|                   item = pa_array_add(&p->array, sizeof(*item));
#   98|-> 	item->key = strdup(key);
#   99|   	item->value = strdup(value);
#  100|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def102]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:98:19: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:98:19: note: write of 8 bytes to beyond the end of the region
#   96|           else
#   97|                   item = pa_array_add(&p->array, sizeof(*item));
#   98|-> 	item->key = strdup(key);
#   99|   	item->value = strdup(value);
#  100|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-122): [#def103]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:99:21: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/array.h:38:14: note: in expansion of macro ‘pa_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:53:9: note: in expansion of macro ‘pa_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:99:21: note: write of 8 bytes to beyond the end of the region
#   97|                   item = pa_array_add(&p->array, sizeof(*item));
#   98|   	item->key = strdup(key);
#   99|-> 	item->value = strdup(value);
#  100|   	return 0;
#  101|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def104]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h: scope_hint: In function ‘pa_proplist_new_dict’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:174:33: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
#  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): [#def105]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:174:33: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:174:33: note: write of 8 bytes to beyond the end of the region
#  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): [#def106]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:175:35: warning[-Wanalyzer-out-of-bounds]: heap-based buffer overflow
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:172:17: note: in expansion of macro ‘acp_dict_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/acp/proplist.h:175:35: note: write of 8 bytes to beyond the end of the region
#  173|   			it = pa_array_add(&p->array, sizeof(*it));
#  174|   			it->key = strdup(item->key);
#  175|-> 			it->value = strdup(item->value);
#  176|   		}
#  177|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def107]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:105: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  103|   	int i;
#  104|   	for (i = 0; i < this->n_pfds; i++) {
#  105|-> 		spa_loop_remove_source(this->loop, &this->sources[i]);
#  106|   	}
#  107|   	this->n_pfds = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def108]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:124: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  122|   		this->sources[i].mask = this->pfds[i].events;
#  123|   		this->sources[i].rmask = 0;
#  124|-> 		spa_loop_add_source(this->loop, &this->sources[i]);
#  125|   	}
#  126|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def109]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:213: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  211|   	info.props = &SPA_DICT_INIT(items, n_items);
#  212|   
#  213|-> 	spa_device_emit_object_info(&this->hooks, dev->index, &info);
#  214|   
#  215|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def110]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:260: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  258|   			}
#  259|   		}
#  260|-> 		spa_device_emit_info(&this->hooks, &this->info);
#  261|   		this->info.change_mask = old;
#  262|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def111]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:308: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  306|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  307|   
#  308|-> 	spa_device_emit_result(&this->hooks, seq, 0, 0, NULL);
#  309|   
#  310|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def112]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:598: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  596|   		goto next;
#  597|   
#  598|-> 	spa_device_emit_result(&this->hooks, seq, 0,
#  599|   			SPA_RESULT_TYPE_DEVICE_PARAMS, &result);
#  600|   

Error: CPPCHECK_WARNING (CWE-190): [#def113]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:615: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  613|   	struct spa_pod_frame f[1];
#  614|   
#  615|-> 	spa_log_info(this->log, "device %s latency changed", dev->name);
#  616|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
#  617|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def114]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:630: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  628|   	event = spa_pod_builder_pop(&b, &f[0]);
#  629|   
#  630|-> 	spa_device_emit_event(&this->hooks, event);
#  631|   }
#  632|   

Error: CPPCHECK_WARNING (CWE-190): [#def115]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:641: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  639|   	struct spa_pod_frame f[1];
#  640|   
#  641|-> 	spa_log_info(this->log, "device %s codecs changed", dev->name);
#  642|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
#  643|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def116]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:657: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  655|   	event = spa_pod_builder_pop(&b, &f[0]);
#  656|   
#  657|-> 	spa_device_emit_event(&this->hooks, event);
#  658|   }
#  659|   

Error: CPPCHECK_WARNING (CWE-190): [#def117]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:781: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  779|   				SPA_PARAM_PROFILE_name, SPA_POD_OPT_String(&name),
#  780|   				SPA_PARAM_PROFILE_save, SPA_POD_OPT_Bool(&save))) < 0) {
#  781|-> 			spa_log_warn(this->log, "can't parse profile");
#  782|   			spa_debug_log_pod(this->log, SPA_LOG_LEVEL_DEBUG, 0, NULL, param);
#  783|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def118]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:786: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  784|   		}
#  785|   		if (idx == SPA_ID_INVALID && name == NULL) {
#  786|-> 			spa_log_warn(this->log, "profile needs name or index");
#  787|   			return -EINVAL;
#  788|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def119]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:792: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  790|   			idx = find_profile_by_name(this->card, name);
#  791|   		if (idx == SPA_ID_INVALID) {
#  792|-> 			spa_log_warn(this->log, "unknown profile %s", name);
#  793|   			return -EINVAL;
#  794|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def120]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:817: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  815|   				SPA_PARAM_ROUTE_props, SPA_POD_OPT_Pod(&props),
#  816|   				SPA_PARAM_ROUTE_save, SPA_POD_OPT_Bool(&save))) < 0) {
#  817|-> 			spa_log_warn(this->log, "can't parse route");
#  818|   			spa_debug_log_pod(this->log, SPA_LOG_LEVEL_DEBUG, 0, NULL, param);
#  819|   			return res;

Error: CPPCHECK_WARNING (CWE-457): [#def121]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:821: error[uninitvar]: Uninitialized variable: device
#  819|   			return res;
#  820|   		}
#  821|-> 		if (device >= this->card->n_devices)
#  822|   			return -EINVAL;
#  823|   		if (idx == SPA_ID_INVALID && name == NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def122]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:858: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  856|   {
#  857|   	struct impl *this = data;
#  858|-> 	spa_log_info(this->log, "card properties changed");
#  859|   }
#  860|   

Error: CPPCHECK_WARNING (CWE-190): [#def123]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:879: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  877|   	uint32_t i;
#  878|   
#  879|-> 	spa_log_info(this->log, "card profile changed from %s to %s",
#  880|   			op->name, np->name);
#  881|   

Error: CPPCHECK_WARNING (CWE-190): [#def124]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:886: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  884|   		if (has_device(np, index))
#  885|   			continue;
#  886|-> 		spa_device_emit_object_info(&this->hooks, index, NULL);
#  887|   	}
#  888|   	for (i = 0; i < np->n_devices; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def125]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:906: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  904|   	struct acp_card_profile *p = card->profiles[index];
#  905|   
#  906|-> 	spa_log_info(this->log, "card profile %s available %s -> %s", p->name,
#  907|   			acp_available_str(old), acp_available_str(available));
#  908|   

Error: CPPCHECK_WARNING (CWE-190): [#def126]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:926: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  924|   	struct acp_port *np = card->ports[new_index];
#  925|   
#  926|-> 	spa_log_info(this->log, "card port changed from %s to %s",
#  927|   			op->name, np->name);
#  928|   

Error: CPPCHECK_WARNING (CWE-190): [#def127]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:940: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  938|   	struct acp_port *p = card->ports[index];
#  939|   
#  940|-> 	spa_log_info(this->log, "card port %s available %s -> %s", p->name,
#  941|   			acp_available_str(old), acp_available_str(available));
#  942|   

Error: CPPCHECK_WARNING (CWE-190): [#def128]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:974: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  972|   	float soft_volume[n_volume];
#  973|   
#  974|-> 	spa_log_info(this->log, "device %s volume changed", dev->name);
#  975|   	this->info.change_mask |= SPA_DEVICE_CHANGE_MASK_PARAMS;
#  976|   	this->params[IDX_Route].user++;

Error: CPPCHECK_WARNING (CWE-190): [#def129]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:1000: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  998|   	event = spa_pod_builder_pop(&b, &f[0]);
#  999|   
# 1000|-> 	spa_device_emit_event(&this->hooks, event);
# 1001|   }
# 1002|   

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

Error: CPPCHECK_WARNING (CWE-190): [#def131]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:1031: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1029|   	event = spa_pod_builder_pop(&b, &f[0]);
# 1030|   
# 1031|-> 	spa_device_emit_event(&this->hooks, event);
# 1032|   }
# 1033|   

Error: CPPCHECK_WARNING (CWE-190): [#def132]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-acp-device.c:1067: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1065|   {
# 1066|   	struct spa_log *log = data;
# 1067|-> 	spa_log_logv(log, (enum spa_log_level)level, file, line, func, fmt, arg);
# 1068|   }
# 1069|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def133]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c:40:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c:540:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c:541:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c:541:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/log.h:16: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/log.h: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c:40:9: note: read of 59 bytes from after the end of ‘default_device’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-device.c:40:9: note: valid subscripts for ‘default_device’ are ‘[0]’ to ‘[4]’
#   38|   static void reset_props(struct props *props)
#   39|   {
#   40|-> 	strncpy(props->device, default_device, 64);
#   41|   	props->card_nr = 0;
#   42|   }

Error: CPPCHECK_WARNING (CWE-457): [#def134]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-compress-offload-sink.c:636: error[uninitvar]: Uninitialized variable: &now
#  634|   	    return res;
#  635|   	}
#  636|-> 	this->next_driver_time = SPA_TIMESPEC_TO_NSEC(&now);
#  637|   
#  638|   	if (this->following)

Error: CPPCHECK_WARNING (CWE-190): [#def135]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def136]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def137]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def138]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def139]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def140]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def141]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def142]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def143]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def144]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def145]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def146]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def147]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def148]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def149]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def150]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def151]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def152]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def153]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-device.c:487: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  485|   			idx = find_profile_by_name(name);
#  486|   		if (idx == SPA_ID_INVALID) {
#  487|-> 			spa_log_warn(this->log, "unknown profile %s", name);
#  488|   			return -EINVAL;
#  489|   		}

Error: GCC_ANALYZER_WARNING (CWE-126): [#def154]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c:28:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c:869:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c:870:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c:870:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c:28:9: note: read of 59 bytes from after the end of ‘default_device’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-sink.c:28:9: note: valid subscripts for ‘default_device’ are ‘[0]’ to ‘[4]’
#   26|   static void reset_props(struct props *props)
#   27|   {
#   28|-> 	strncpy(props->device, default_device, 64);
#   29|   	props->use_chmap = DEFAULT_USE_CHMAP;
#   30|   }

Error: GCC_ANALYZER_WARNING (CWE-126): [#def155]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c:29:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c:819:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c:820:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c:820:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c:29:9: note: read of 59 bytes from after the end of ‘default_device’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm-source.c:29:9: note: valid subscripts for ‘default_device’ are ‘[0]’ to ‘[4]’
#   27|   static void reset_props(struct props *props)
#   28|   {
#   29|-> 	strncpy(props->device, default_device, 64);
#   30|   	props->use_chmap = DEFAULT_USE_CHMAP;
#   31|   }

Error: CPPCHECK_WARNING (CWE-457): [#def156]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-pcm.c:3349: error[uninitvar]: Uninitialized variable: &now
# 3347|   	if (spa_system_clock_gettime(state->data_system, CLOCK_MONOTONIC, &now) < 0)
# 3348|   		return 0;
# 3349|-> 	return SPA_TIMESPEC_TO_NSEC(&now);
# 3350|   }
# 3351|   

Error: CPPCHECK_WARNING (CWE-457): [#def157]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-seq.c:925: error[uninitvar]: Uninitialized variable: &now
#  923|   	state->queue_corr = 1.0;
#  924|   	spa_dll_init(&state->dll);
#  925|-> 	state->next_time = SPA_TIMESPEC_TO_NSEC(&now);
#  926|   	if (state->following) {
#  927|   		set_timeout(state, 0);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def158]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c: scope_hint: In function ‘check_pcm_device_availability’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:412:40: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir(&path)’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:22: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/type.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:371:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
/usr/include/alsa/asoundlib.h:39: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:105:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:106:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:105:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
#  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): [#def159]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:424:47: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "re")’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:371:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:105:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:106:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:105:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:371:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:222:13: note: in expansion of macro ‘SPA_LIKELY’
#  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): [#def160]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:424:47: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "re")’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:114:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:113:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:371:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:105:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:71:9: note: in definition of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:106:9: note: in expansion of macro ‘spa_clear_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/cleanup.h:105:1: note: in expansion of macro ‘SPA_DEFINE_AUTOPTR_CLEANUP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:371:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:222:13: note: in expansion of macro ‘SPA_LIKELY’
#  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): [#def161]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c: scope_hint: In function ‘check_access’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/alsa/alsa-udev.c:691:52: warning[-Wanalyzer-malloc-leak]: leak of ‘opendir("/dev/snd")’
#  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: CPPCHECK_WARNING (CWE-190): [#def162]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  149|   		f2 = f1;
#  150|   	}
#  151|-> 	return spa_node_enum_params(this->convert, seq, id, start, num, f2);
#  152|   }
#  153|   

Error: CPPCHECK_WARNING (CWE-190): [#def163]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:177: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  175|   	result.index = result.next;
#  176|   
#  177|-> 	spa_log_debug(this->log, "%p: %d id:%u", this, seq, id);
#  178|   
#  179|   	spa_pod_builder_reset(&b.b, &state);

Error: CPPCHECK_WARNING (CWE-190): [#def164]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:229: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  227|   		return res;
#  228|   
#  229|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  230|   	count++;
#  231|   

Error: CPPCHECK_WARNING (CWE-190): [#def165]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:244: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  242|   	size_t rate_match_size;
#  243|   
#  244|-> 	spa_log_debug(this->log, "%p: controls", this);
#  245|   
#  246|   	spa_zero(this->io_rate_match);

Error: CPPCHECK_WARNING (CWE-190): [#def166]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:257: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  255|   	}
#  256|   
#  257|-> 	if ((res = spa_node_port_set_io(this->follower,
#  258|   			this->direction, 0,
#  259|   			SPA_IO_RateMatch,

Error: CPPCHECK_WARNING (CWE-190): [#def167]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:261: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  259|   			SPA_IO_RateMatch,
#  260|   			rate_match, rate_match_size)) < 0) {
#  261|-> 		spa_log_debug(this->log, "%p: set RateMatch on follower disabled %d %s", this,
#  262|   			res, spa_strerror(res));
#  263|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def168]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:264: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  262|   			res, spa_strerror(res));
#  263|   	}
#  264|-> 	else if ((res = spa_node_port_set_io(this->convert,
#  265|   			SPA_DIRECTION_REVERSE(this->direction), 0,
#  266|   			SPA_IO_RateMatch,

Error: CPPCHECK_WARNING (CWE-190): [#def169]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:268: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  266|   			SPA_IO_RateMatch,
#  267|   			rate_match, rate_match_size)) < 0) {
#  268|-> 		spa_log_warn(this->log, "%p: set RateMatch on convert failed %d %s", this,
#  269|   			res, spa_strerror(res));
#  270|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def170]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:287: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  285|   		this->io_buffers = SPA_IO_BUFFERS_INIT;
#  286|   
#  287|-> 	if ((res = spa_node_port_set_io(this->follower,
#  288|   			this->direction, 0,
#  289|   			SPA_IO_Buffers, data, size)) < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def171]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  288|   			this->direction, 0,
#  289|   			SPA_IO_Buffers, data, size)) < 0) {
#  290|-> 		spa_log_warn(this->log, "%p: set Buffers on follower failed %d %s", this,
#  291|   			res, spa_strerror(res));
#  292|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def172]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:294: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  292|   		return res;
#  293|   	}
#  294|-> 	else if ((res = spa_node_port_set_io(this->convert,
#  295|   			SPA_DIRECTION_REVERSE(this->direction), 0,
#  296|   			SPA_IO_Buffers, data, size)) < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def173]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:297: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  295|   			SPA_DIRECTION_REVERSE(this->direction), 0,
#  296|   			SPA_IO_Buffers, data, size)) < 0) {
#  297|-> 		spa_log_warn(this->log, "%p: set Buffers on convert failed %d %s", this,
#  298|   			res, spa_strerror(res));
#  299|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def174]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:309: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  307|   	uint64_t old = full ? this->info.change_mask : 0;
#  308|   
#  309|-> 	spa_log_debug(this->log, "%p: info full:%d change:%08"PRIx64,
#  310|   			this, full, this->info.change_mask);
#  311|   

Error: CPPCHECK_WARNING (CWE-190): [#def175]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:332: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  330|   					this->params[i].flags ^= SPA_PARAM_INFO_SERIAL;
#  331|   					this->params[i].user = 0;
#  332|-> 					spa_log_debug(this->log, "param %d flags:%08x",
#  333|   							i, this->params[i].flags);
#  334|   				}

Error: CPPCHECK_WARNING (CWE-190): [#def176]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:337: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  335|   			}
#  336|   		}
#  337|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  338|   		this->info.change_mask = old;
#  339|   		spa_zero(this->info.props);

Error: CPPCHECK_WARNING (CWE-190): [#def177]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:353: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  351|   	int res, count = 0;
#  352|   
#  353|-> 	spa_log_error(this->log, "params %s: %d:%d (%s) %s",
#  354|   			spa_debug_type_find_name(spa_type_param, id),
#  355|   			direction, port_id, debug, err ? spa_strerror(err) : "no matching params");

Error: CPPCHECK_WARNING (CWE-190): [#def178]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:360: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  358|   
#  359|   	if (filter) {
#  360|-> 		spa_log_error(this->log, "with this filter:");
#  361|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, filter);
#  362|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def179]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:363: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  361|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, filter);
#  362|   	} else {
#  363|-> 		spa_log_error(this->log, "there was no filter");
#  364|   	}
#  365|   

Error: CPPCHECK_WARNING (CWE-190): [#def180]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:375: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  373|   		if (res != 1) {
#  374|   			if (res < 0)
#  375|-> 				spa_log_error(this->log, "  error: %s", spa_strerror(res));
#  376|   			break;
#  377|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def181]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:378: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  376|   			break;
#  377|   		}
#  378|-> 		spa_log_error(this->log, "unmatched %s %d:", debug, count);
#  379|   		spa_debug_log_pod(this->log, SPA_LOG_LEVEL_ERROR, 2, NULL, param);
#  380|   		count++;

Error: CPPCHECK_WARNING (CWE-190): [#def182]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:383: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  381|   	}
#  382|   	if (count == 0)
#  383|-> 		spa_log_error(this->log, "could not get any %s", debug);
#  384|   
#  385|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def183]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:401: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  399|   	uint64_t follower_flags, conv_flags;
#  400|   
#  401|-> 	spa_log_debug(this->log, "%p: n_buffers:%d", this, this->n_buffers);
#  402|   
#  403|   	if (this->n_buffers > 0)

Error: CPPCHECK_WARNING (CWE-190): [#def184]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:463: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  461|   		buffers = SPA_MAX(2u, buffers);
#  462|   
#  463|-> 	spa_log_debug(this->log, "%p: buffers:%d, blocks:%d, size:%d, stride:%d align:%d %d:%d",
#  464|   			this, buffers, blocks, size, stride, align, follower_alloc, conv_alloc);
#  465|   

Error: CPPCHECK_WARNING (CWE-190): [#def185]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:484: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  482|   	this->n_buffers = buffers;
#  483|   
#  484|-> 	if ((res = spa_node_port_use_buffers(this->convert,
#  485|   		       SPA_DIRECTION_REVERSE(this->direction), 0,
#  486|   		       conv_alloc ? SPA_NODE_BUFFERS_FLAG_ALLOC : 0,

Error: CPPCHECK_WARNING (CWE-190): [#def186]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:490: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  488|   		return res;
#  489|   
#  490|-> 	if ((res = spa_node_port_use_buffers(this->follower,
#  491|   		       this->direction, 0,
#  492|   		       follower_alloc ? SPA_NODE_BUFFERS_FLAG_ALLOC : 0,

Error: CPPCHECK_WARNING (CWE-190): [#def187]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:513: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  511|   	int res;
#  512|   
#  513|-> 	spa_log_debug(this->log, "%p: configure format:", this);
#  514|   
#  515|   	if (format == NULL && !this->have_format)

Error: CPPCHECK_WARNING (CWE-190): [#def188]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:528: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  526|   	}
#  527|   
#  528|-> 	if ((res = spa_node_port_set_param(this->follower,
#  529|   					   this->direction, 0,
#  530|   					   SPA_PARAM_Format, flags,

Error: CPPCHECK_WARNING (CWE-190): [#def189]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:551: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  549|   
#  550|   	if (this->target != this->follower) {
#  551|-> 		if ((res = spa_node_port_set_param(this->convert,
#  552|   					   SPA_DIRECTION_REVERSE(this->direction), 0,
#  553|   					   SPA_PARAM_Format, flags,

Error: CPPCHECK_WARNING (CWE-190): [#def190]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:575: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  573|   	spa_pod_builder_init(&b, buffer, sizeof(buffer));
#  574|   
#  575|-> 	spa_log_debug(this->log, "%p: configure convert %p", this, this->target);
#  576|   
#  577|   	param = spa_pod_builder_add_object(&b,

Error: CPPCHECK_WARNING (CWE-190): [#def191]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:582: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  580|   		SPA_PARAM_PORT_CONFIG_mode,		SPA_POD_Id(mode));
#  581|   
#  582|-> 	return spa_node_set_param(this->convert, SPA_PARAM_PortConfig, 0, param);
#  583|   }
#  584|   

Error: CPPCHECK_WARNING (CWE-190): [#def192]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:599: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  597|   	int res;
#  598|   
#  599|-> 	spa_log_debug(this->log, "%p: %d:%d", this, direction, port_id);
#  600|   
#  601|   	if (this->target == this->follower)

Error: CPPCHECK_WARNING (CWE-190): [#def193]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:617: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  615|   			break;
#  616|   	}
#  617|-> 	if ((res = spa_node_port_set_param(dst,
#  618|   					SPA_DIRECTION_REVERSE(direction), 0,
#  619|   					SPA_PARAM_Latency, 0, param)) < 0)

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

Error: CPPCHECK_WARNING (CWE-190): [#def195]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:658: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  656|   			break;
#  657|   	}
#  658|-> 	return spa_node_port_set_param(dst, SPA_DIRECTION_REVERSE(direction), 0,
#  659|   					SPA_PARAM_Tag, 0, param);
#  660|   }

Error: CPPCHECK_WARNING (CWE-190): [#def196]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:669: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  667|   	struct spa_hook l;
#  668|   
#  669|-> 	spa_log_debug(this->log, "%p: passthrough mode %d", this, passthrough);
#  670|   
#  671|   	if (this->passthrough != passthrough) {

Error: CPPCHECK_WARNING (CWE-190): [#def197]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:679: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  677|   			this->follower_removing = true;
#  678|   			spa_zero(l);
#  679|-> 			spa_node_add_listener(this->follower, &l, &follower_node_events, this);
#  680|   			spa_hook_remove(&l);
#  681|   			this->follower_removing = false;

Error: CPPCHECK_WARNING (CWE-190): [#def198]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:696: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  694|   			/* add follower ports */
#  695|   			spa_zero(l);
#  696|-> 			spa_node_add_listener(this->follower, &l, &follower_node_events, this);
#  697|   			spa_hook_remove(&l);
#  698|   		} else {

Error: CPPCHECK_WARNING (CWE-190): [#def199]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:712: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  710|   	emit_node_info(this, false);
#  711|   
#  712|-> 	spa_log_debug(this->log, "%p: passthrough mode %d", this, passthrough);
#  713|   
#  714|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def200]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:724: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  722|   	struct spa_audio_info info = { 0 };
#  723|   
#  724|-> 	spa_log_debug(this->log, "%p: set param %d", this, id);
#  725|   
#  726|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def201]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:751: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  749|   
#  750|   		if (this->started) {
#  751|-> 			spa_log_error(this->log, "was started");
#  752|   			return -EIO;
#  753|   		}

Error: CPPCHECK_WARNING (CWE-457): [#def202]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:778: error[uninitvar]: Uninitialized variable: mode
#  776|   		}
#  777|   
#  778|-> 		switch (mode) {
#  779|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  780|   			return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-190): [#def203]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:795: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  793|   
#  794|   		if (this->target != this->follower) {
#  795|-> 			if ((res = spa_node_set_param(this->target, id, flags, param)) < 0)
#  796|   				return res;
#  797|   

Error: CPPCHECK_WARNING (CWE-190): [#def204]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:806: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  804|   	{
#  805|   		int in_set_param = ++this->in_set_param;
#  806|-> 		res = spa_node_set_param(this->follower, id, flags, param);
#  807|   		if (this->target != this->follower && this->in_set_param == in_set_param)
#  808|   			res2 = spa_node_set_param(this->target, id, flags, param);

Error: CPPCHECK_WARNING (CWE-190): [#def205]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:808: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  806|   		res = spa_node_set_param(this->follower, id, flags, param);
#  807|   		if (this->target != this->follower && this->in_set_param == in_set_param)
#  808|-> 			res2 = spa_node_set_param(this->target, id, flags, param);
#  809|   		if (res < 0 && res2 < 0)
#  810|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def206]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:815: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  813|   	}
#  814|   	case SPA_PARAM_ProcessLatency:
#  815|-> 		res = spa_node_set_param(this->follower, id, flags, param);
#  816|   		break;
#  817|   	default:

Error: CPPCHECK_WARNING (CWE-190): [#def207]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:840: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  838|   
#  839|   	if (this->target)
#  840|-> 		res = spa_node_set_io(this->target, id, data, size);
#  841|   
#  842|   	if (this->target != this->follower)

Error: CPPCHECK_WARNING (CWE-190): [#def208]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:843: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  841|   
#  842|   	if (this->target != this->follower)
#  843|-> 		res = spa_node_set_io(this->follower, id, data, size);
#  844|   
#  845|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def209]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:890: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  888|   	int res;
#  889|   
#  890|-> 	spa_log_debug(this->log, "%p: have_format:%d recheck:%d", this, this->have_format,
#  891|   			this->recheck_format);
#  892|   

Error: CPPCHECK_WARNING (CWE-190): [#def210]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:900: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  898|   	spa_pod_builder_init(&b, buffer, sizeof(buffer));
#  899|   
#  900|-> 	spa_node_send_command(this->follower,
#  901|   			&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_ParamBegin));
#  902|   

Error: CPPCHECK_WARNING (CWE-190): [#def211]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:945: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  943|   
#  944|   done:
#  945|-> 	spa_node_send_command(this->follower,
#  946|   			&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_ParamEnd));
#  947|   

Error: CPPCHECK_WARNING (CWE-190): [#def212]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:959: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  957|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  958|   
#  959|-> 	spa_log_debug(this->log, "%p: command %d", this, SPA_NODE_COMMAND_ID(command));
#  960|   
#  961|   	switch (SPA_NODE_COMMAND_ID(command)) {

Error: CPPCHECK_WARNING (CWE-190): [#def213]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:963: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  961|   	switch (SPA_NODE_COMMAND_ID(command)) {
#  962|   	case SPA_NODE_COMMAND_Start:
#  963|-> 		spa_log_debug(this->log, "%p: starting %d", this, this->started);
#  964|   		if (this->target != this->follower) {
#  965|   			if (this->started)

Error: CPPCHECK_WARNING (CWE-190): [#def214]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:974: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  972|   		break;
#  973|   	case SPA_NODE_COMMAND_Suspend:
#  974|-> 		spa_log_debug(this->log, "%p: suspending", this);
#  975|   		break;
#  976|   	case SPA_NODE_COMMAND_Pause:

Error: CPPCHECK_WARNING (CWE-190): [#def215]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:977: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  975|   		break;
#  976|   	case SPA_NODE_COMMAND_Pause:
#  977|-> 		spa_log_debug(this->log, "%p: pausing", this);
#  978|   		break;
#  979|   	case SPA_NODE_COMMAND_Flush:

Error: CPPCHECK_WARNING (CWE-190): [#def216]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:980: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  978|   		break;
#  979|   	case SPA_NODE_COMMAND_Flush:
#  980|-> 		spa_log_debug(this->log, "%p: flushing", this);
#  981|   		this->io_buffers.status = SPA_STATUS_OK;
#  982|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def217]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:987: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  985|   	}
#  986|   
#  987|-> 	if ((res = spa_node_send_command(this->target, command)) < 0) {
#  988|   		spa_log_error(this->log, "%p: can't send command %d: %s",
#  989|   				this, SPA_NODE_COMMAND_ID(command),

Error: CPPCHECK_WARNING (CWE-190): [#def218]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:988: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  986|   
#  987|   	if ((res = spa_node_send_command(this->target, command)) < 0) {
#  988|-> 		spa_log_error(this->log, "%p: can't send command %d: %s",
#  989|   				this, SPA_NODE_COMMAND_ID(command),
#  990|   				spa_strerror(res));

Error: CPPCHECK_WARNING (CWE-190): [#def219]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:994: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  992|   
#  993|   	if (res >= 0 && this->target != this->follower) {
#  994|-> 		if ((res = spa_node_send_command(this->follower, command)) < 0) {
#  995|   			spa_log_error(this->log, "%p: can't send command %d: %s",
#  996|   					this, SPA_NODE_COMMAND_ID(command),

Error: CPPCHECK_WARNING (CWE-190): [#def220]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:995: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  993|   	if (res >= 0 && this->target != this->follower) {
#  994|   		if ((res = spa_node_send_command(this->follower, command)) < 0) {
#  995|-> 			spa_log_error(this->log, "%p: can't send command %d: %s",
#  996|   					this, SPA_NODE_COMMAND_ID(command),
#  997|   					spa_strerror(res));

Error: CPPCHECK_WARNING (CWE-190): [#def221]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1003: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1001|   	case SPA_NODE_COMMAND_Start:
# 1002|   		if (res < 0) {
# 1003|-> 			spa_log_debug(this->log, "%p: start failed", this);
# 1004|   			this->ready = false;
# 1005|   			configure_format(this, 0, NULL);

Error: CPPCHECK_WARNING (CWE-190): [#def222]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1008: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1006|   		} else {
# 1007|   			this->started = true;
# 1008|-> 			spa_log_debug(this->log, "%p: started", this);
# 1009|   		}
# 1010|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def223]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1016: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1014|   		this->warned = false;
# 1015|   		this->ready = false;
# 1016|-> 		spa_log_debug(this->log, "%p: suspended", this);
# 1017|   		break;
# 1018|   	case SPA_NODE_COMMAND_Pause:

Error: CPPCHECK_WARNING (CWE-190): [#def224]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1022: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1020|   		this->warned = false;
# 1021|   		this->ready = false;
# 1022|-> 		spa_log_debug(this->log, "%p: paused", this);
# 1023|   		break;
# 1024|   	case SPA_NODE_COMMAND_Flush:

Error: CPPCHECK_WARNING (CWE-190): [#def225]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1025: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1023|   		break;
# 1024|   	case SPA_NODE_COMMAND_Flush:
# 1025|-> 		spa_log_debug(this->log, "%p: flushed", this);
# 1026|   		break;
# 1027|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def226]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1036: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1034|   	uint32_t i;
# 1035|   
# 1036|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64, this,
# 1037|   			info->change_mask);
# 1038|   

Error: CPPCHECK_WARNING (CWE-190): [#def227]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1073: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1071|   
# 1072|   			this->params[idx].user++;
# 1073|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1074|   		}
# 1075|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def228]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1090: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1088|   		return;
# 1089|   
# 1090|-> 	spa_log_debug(this->log, "%p: convert port info %s %p %08"PRIx64, this,
# 1091|   			this->direction == SPA_DIRECTION_INPUT ?
# 1092|   				"Input" : "Output", info, info->change_mask);

Error: CPPCHECK_WARNING (CWE-190): [#def229]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1122: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1120|   				res = recalc_latency(this, this->convert, direction, port_id, this->follower);
# 1121|   				this->in_recalc--;
# 1122|-> 				spa_log_debug(this->log, "latency: %d (%s)", res,
# 1123|   						spa_strerror(res));
# 1124|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def230]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1129: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1127|   				res = recalc_tag(this, this->convert, direction, port_id, this->follower);
# 1128|   				this->in_recalc--;
# 1129|-> 				spa_log_debug(this->log, "tag: %d (%s)", res,
# 1130|   						spa_strerror(res));
# 1131|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def231]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1132: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1130|   						spa_strerror(res));
# 1131|   			}
# 1132|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1133|   		}
# 1134|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def232]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1158: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1156|   	}
# 1157|   
# 1158|-> 	spa_log_debug(this->log, "%p: port info %d:%d", this,
# 1159|   			direction, port_id);
# 1160|   

Error: CPPCHECK_WARNING (CWE-190): [#def233]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1162: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1160|   
# 1161|   	if (this->target != this->follower)
# 1162|-> 		spa_node_emit_port_info(&this->hooks, direction, port_id, info);
# 1163|   }
# 1164|   

Error: CPPCHECK_WARNING (CWE-190): [#def234]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1170|   		return;
# 1171|   
# 1172|-> 	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1173|   	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1174|   }

Error: CPPCHECK_WARNING (CWE-190): [#def235]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1173: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1171|   
# 1172|   	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1173|-> 	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1174|   }
# 1175|   

Error: CPPCHECK_WARNING (CWE-190): [#def236]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1188: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1186|   	uint32_t i;
# 1187|   
# 1188|-> 	spa_log_debug(this->log, "%p: info change:%08"PRIx64, this,
# 1189|   			info->change_mask);
# 1190|   

Error: CPPCHECK_WARNING (CWE-190): [#def237]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1211: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1209|   			this->async && this->follower == this->target);
# 1210|   
# 1211|-> 	spa_log_debug(this->log, "%p: follower info %s", this,
# 1212|   			this->direction == SPA_DIRECTION_INPUT ?
# 1213|   				"Input" : "Output");

Error: CPPCHECK_WARNING (CWE-190): [#def238]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1250: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1248|   
# 1249|   			this->params[idx].user++;
# 1250|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1251|   		}
# 1252|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def239]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1271: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1269|   
# 1270|   	if (this->follower_removing) {
# 1271|-> 	      spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
# 1272|   	      return;
# 1273|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def240]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1280: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1278|   		 SPA_PORT_FLAG_TERMINAL);
# 1279|   
# 1280|-> 	spa_log_debug(this->log, "%p: follower port info %s %p %08"PRIx64" recalc:%u", this,
# 1281|   			this->direction == SPA_DIRECTION_INPUT ?
# 1282|   				"Input" : "Output", info, info->change_mask,

Error: CPPCHECK_WARNING (CWE-190): [#def241]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1321: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1319|   			if (idx == IDX_Latency && this->in_recalc == 0) {
# 1320|   				res = recalc_latency(this, this->follower, direction, port_id, this->target);
# 1321|-> 				spa_log_debug(this->log, "latency: %d (%s)", res,
# 1322|   						spa_strerror(res));
# 1323|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def242]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1326: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1324|   			if (idx == IDX_Tag && this->in_recalc == 0) {
# 1325|   				res = recalc_tag(this, this->follower, direction, port_id, this->target);
# 1326|-> 				spa_log_debug(this->log, "tag: %d (%s)", res,
# 1327|   						spa_strerror(res));
# 1328|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def243]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1330: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1328|   			}
# 1329|   			if (idx == IDX_EnumFormat) {
# 1330|-> 				spa_log_debug(this->log, "new formats");
# 1331|   				/* we will renegotiate when restarting */
# 1332|   				this->recheck_format = true;

Error: CPPCHECK_WARNING (CWE-190): [#def244]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1336: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1334|   
# 1335|   			this->params[idx].user++;
# 1336|-> 			spa_log_debug(this->log, "param %d changed", info->params[i].id);
# 1337|   		}
# 1338|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def245]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1342: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1340|   
# 1341|   	if (this->target == this->follower)
# 1342|-> 	      spa_node_emit_port_info(&this->hooks, direction, port_id, info);
# 1343|   }
# 1344|   

Error: CPPCHECK_WARNING (CWE-190): [#def246]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1352: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1350|   		return;
# 1351|   
# 1352|-> 	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1353|   	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1354|   }

Error: CPPCHECK_WARNING (CWE-190): [#def247]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1353: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1351|   
# 1352|   	spa_log_trace(this->log, "%p: result %d %d", this, seq, res);
# 1353|-> 	spa_node_emit_result(&this->hooks, seq, res, type, result);
# 1354|   }
# 1355|   

Error: CPPCHECK_WARNING (CWE-190): [#def248]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1360: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1358|   	struct impl *this = data;
# 1359|   
# 1360|-> 	spa_log_trace(this->log, "%p: event %d", this, SPA_EVENT_TYPE(event));
# 1361|   
# 1362|   	switch (SPA_NODE_EVENT_ID(event)) {

Error: CPPCHECK_WARNING (CWE-190): [#def249]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1364|   	case SPA_NODE_EVENT_RequestProcess:
# 1365|   		/* Forward errors and process requests */
# 1366|-> 		spa_node_emit_event(&this->hooks, event);
# 1367|   		break;
# 1368|   	default:

Error: CPPCHECK_WARNING (CWE-190): [#def250]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1389: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1387|   
# 1388|   	if (!this->ready) {
# 1389|-> 		spa_log_info(this->log, "%p: ready stopped node", this);
# 1390|   		return -EIO;
# 1391|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def251]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1422: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1420|   
# 1421|   	if (this->target != this->follower)
# 1422|-> 		res = spa_node_port_reuse_buffer(this->convert, port_id, buffer_id);
# 1423|   	else
# 1424|   		res = spa_node_call_reuse_buffer(&this->callbacks, port_id, buffer_id);

Error: CPPCHECK_WARNING (CWE-190): [#def252]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1453: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1451|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1452|   
# 1453|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
# 1454|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
# 1455|   

Error: CPPCHECK_WARNING (CWE-190): [#def253]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1461: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1459|   
# 1460|   		spa_zero(l);
# 1461|-> 		spa_node_add_listener(this->follower, &l, &follower_node_events, this);
# 1462|   		spa_hook_remove(&l);
# 1463|   

Error: CPPCHECK_WARNING (CWE-190): [#def254]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1465: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1463|   
# 1464|   		spa_zero(l);
# 1465|-> 		spa_node_add_listener(this->convert, &l, &convert_node_events, this);
# 1466|   		spa_hook_remove(&l);
# 1467|   

Error: CPPCHECK_WARNING (CWE-190): [#def255]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1498: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1496|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1497|   
# 1498|-> 	return spa_node_sync(this->follower, seq);
# 1499|   }
# 1500|   

Error: CPPCHECK_WARNING (CWE-190): [#def256]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1512: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1510|   		return -EINVAL;
# 1511|   
# 1512|-> 	return spa_node_add_port(this->target, direction, port_id, props);
# 1513|   }
# 1514|   

Error: CPPCHECK_WARNING (CWE-190): [#def257]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1525: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1523|   		return -EINVAL;
# 1524|   
# 1525|-> 	return spa_node_remove_port(this->target, direction, port_id);
# 1526|   }
# 1527|   

Error: CPPCHECK_WARNING (CWE-190): [#def258]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1542: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1540|   		port_id++;
# 1541|   
# 1542|-> 	spa_log_debug(this->log, "%p: %d %u", this, seq, id);
# 1543|   
# 1544|   	return spa_node_port_enum_params(this->target, seq, direction, port_id, id,

Error: CPPCHECK_WARNING (CWE-190): [#def259]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1544: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1542|   	spa_log_debug(this->log, "%p: %d %u", this, seq, id);
# 1543|   
# 1544|-> 	return spa_node_port_enum_params(this->target, seq, direction, port_id, id,
# 1545|   			start, num, filter);
# 1546|   }

Error: CPPCHECK_WARNING (CWE-190): [#def260]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1558: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1556|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1557|   
# 1558|-> 	spa_log_debug(this->log, " %d %d %d %d", port_id, id, direction, this->direction);
# 1559|   
# 1560|   	if (direction != this->direction)

Error: CPPCHECK_WARNING (CWE-190): [#def261]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1563: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1561|   		port_id++;
# 1562|   
# 1563|-> 	return spa_node_port_set_param(this->target, direction, port_id, id,
# 1564|   			flags, param);
# 1565|   }

Error: CPPCHECK_WARNING (CWE-190): [#def262]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1578: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1576|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1577|   
# 1578|-> 	spa_log_debug(this->log, "set io %d %d %d %d", port_id, id, direction, this->direction);
# 1579|   
# 1580|   	if (direction != this->direction)

Error: CPPCHECK_WARNING (CWE-190): [#def263]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1583: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1581|   		port_id++;
# 1582|   
# 1583|-> 	return spa_node_port_set_io(this->target, direction, port_id, id, data, size);
# 1584|   }
# 1585|   

Error: CPPCHECK_WARNING (CWE-190): [#def264]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1602: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1600|   		port_id++;
# 1601|   
# 1602|-> 	spa_log_debug(this->log, "%p: %d %d:%d", this,
# 1603|   			n_buffers, direction, port_id);
# 1604|   

Error: CPPCHECK_WARNING (CWE-190): [#def265]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1605: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1603|   			n_buffers, direction, port_id);
# 1604|   
# 1605|-> 	if ((res = spa_node_port_use_buffers(this->target,
# 1606|   					direction, port_id, flags, buffers, n_buffers)) < 0)
# 1607|   		return res;

Error: CPPCHECK_WARNING (CWE-190): [#def266]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1619: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1617|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 1618|   
# 1619|-> 	return spa_node_port_reuse_buffer(this->target, port_id, buffer_id);
# 1620|   }
# 1621|   

Error: CPPCHECK_WARNING (CWE-190): [#def267]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1629: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1627|   	if (!this->ready) {
# 1628|   		if (!this->warned)
# 1629|-> 			spa_log_warn(this->log, "%p: scheduling stopped node", this);
# 1630|   		this->warned = true;
# 1631|   		return -EIO;

Error: CPPCHECK_WARNING (CWE-190): [#def268]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1871: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1869|   
# 1870|   	spa_hook_remove(&this->follower_listener);
# 1871|-> 	spa_node_set_callbacks(this->follower, NULL, NULL);
# 1872|   
# 1873|   	spa_handle_clear(this->hnd_convert);

Error: CPPCHECK_WARNING (CWE-190): [#def269]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1925: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1923|   
# 1924|   	if (this->cpu)
# 1925|-> 		this->max_align = spa_cpu_get_max_align(this->cpu);
# 1926|   
# 1927|   	spa_hook_list_init(&this->hooks);

Error: CPPCHECK_WARNING (CWE-190): [#def270]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1964: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1962|   	this->info.n_params = N_NODE_PARAMS;
# 1963|   
# 1964|-> 	spa_node_add_listener(this->follower,
# 1965|   			&this->follower_listener, &follower_node_events, this);
# 1966|   	spa_node_set_callbacks(this->follower, &follower_node_callbacks, this);

Error: CPPCHECK_WARNING (CWE-190): [#def271]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1966: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1964|   	spa_node_add_listener(this->follower,
# 1965|   			&this->follower_listener, &follower_node_events, this);
# 1966|-> 	spa_node_set_callbacks(this->follower, &follower_node_callbacks, this);
# 1967|   
# 1968|   	spa_node_add_listener(this->convert,

Error: CPPCHECK_WARNING (CWE-190): [#def272]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioadapter.c:1968: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1966|   	spa_node_set_callbacks(this->follower, &follower_node_callbacks, this);
# 1967|   
# 1968|-> 	spa_node_add_listener(this->convert,
# 1969|   			&this->convert_listener, &convert_node_events, this);
# 1970|   

Error: CPPCHECK_WARNING (CWE-190): [#def273]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:281: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  279|   			}
#  280|   		}
#  281|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  282|   		this->info.change_mask = old;
#  283|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def274]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:319: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  317|   			}
#  318|   		}
#  319|-> 		spa_node_emit_port_info(&this->hooks, port->direction, port->id, &port->info);
#  320|   		port->info.change_mask = old;
#  321|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def275]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:383: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  381|   	spa_list_init(&port->queue);
#  382|   
#  383|-> 	spa_log_debug(this->log, "%p: add port %d:%d position:%s %d %d %d",
#  384|   			this, direction, port_id, port->position, is_dsp,
#  385|   			is_monitor, is_control);

Error: CPPCHECK_WARNING (CWE-190): [#def276]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:397: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  395|   		return -ENOENT;
#  396|   	port->valid = false;
#  397|-> 	spa_node_emit_port_info(&this->hooks, direction, port_id, NULL);
#  398|   	return 0;
#  399|   }

Error: CPPCHECK_WARNING (CWE-190): [#def277]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:836: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  834|   		goto next;
#  835|   
#  836|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  837|   
#  838|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def278]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:850: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  848|   	spa_return_val_if_fail(this != NULL, -EINVAL);
#  849|   
#  850|-> 	spa_log_debug(this->log, "%p: io %d %p/%zd", this, id, data, size);
#  851|   
#  852|   	switch (id) {

Error: CPPCHECK_WARNING (CWE-190): [#def279]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:950: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  948|   			continue;
#  949|   
#  950|-> 		spa_log_info(this->log, "key:'%s' val:'%s'", name, value);
#  951|   		changed += audioconvert_set_param(this, name, value);
#  952|   	}

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

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

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

Error: CPPCHECK_WARNING (CWE-190): [#def283]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1028: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1026|   		" step value %f at scale %d", p->prev_volume, p->volume, volume_step, p->vrp.scale);
# 1027|   	do {
# 1028|-> 		spa_log_trace(this->log, "volume accum %f", get_volume_at_scale(this, volume_accum));
# 1029|   		spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1030|   		spa_pod_builder_add_object(&b.b,

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

Error: CPPCHECK_WARNING (CWE-190): [#def285]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1057: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1055|   		" step value %f at scale %d", p->prev_volume, p->volume, volume_step, p->vrp.scale);
# 1056|   	do {
# 1057|-> 		spa_log_trace(this->log, "volume accum %f", get_volume_at_scale(this, volume_accum));
# 1058|   		spa_pod_builder_control(&b.b, volume_offs, SPA_CONTROL_Properties);
# 1059|   		spa_pod_builder_add_object(&b.b,

Error: CPPCHECK_WARNING (CWE-190): [#def286]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1101: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1099|   			if (!p->lock_volumes &&
# 1100|   			    spa_pod_get_float(&prop->value, &p->volume) == 0) {
# 1101|-> 				spa_log_debug(this->log, "%p new volume %f", this, p->volume);
# 1102|   				changed++;
# 1103|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def287]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1114: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1112|   		case SPA_PROP_volumeRampSamples:
# 1113|   			if (this->vol_ramp_sequence) {
# 1114|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1115|   						"applied try again", this);
# 1116|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def288]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1121: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1119|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1120|   				vrp->volume_ramp_samples = value;
# 1121|-> 				spa_log_info(this->log, "%p volume ramp samples %d", this, value);
# 1122|   				vol_ramp_params_changed++;
# 1123|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def289]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1127: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1125|   		case SPA_PROP_volumeRampStepSamples:
# 1126|   			if (this->vol_ramp_sequence) {
# 1127|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1128|   						"applied try again", this);
# 1129|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def290]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1134: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1132|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1133|   				vrp->volume_ramp_step_samples = value;
# 1134|-> 				spa_log_info(this->log, "%p volume ramp step samples is %d",
# 1135|   						this, value);
# 1136|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def291]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1140: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1138|   		case SPA_PROP_volumeRampTime:
# 1139|   			if (this->vol_ramp_sequence) {
# 1140|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1141|   						"applied try again", this);
# 1142|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def292]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1147: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1145|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1146|   				vrp->volume_ramp_time = value;
# 1147|-> 				spa_log_info(this->log, "%p volume ramp time %d", this, value);
# 1148|   				vol_ramp_params_changed++;
# 1149|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def293]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1153: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1151|   		case SPA_PROP_volumeRampStepTime:
# 1152|   			if (this->vol_ramp_sequence) {
# 1153|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1154|   						"applied try again", this);
# 1155|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def294]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1160: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1158|   			if (spa_pod_get_int(&prop->value, &value) == 0 && value) {
# 1159|   				vrp->volume_ramp_step_time = value;
# 1160|-> 				spa_log_info(this->log, "%p volume ramp time %d", this, value);
# 1161|   			}
# 1162|   			break;

Error: CPPCHECK_WARNING (CWE-190): [#def295]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1165: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1163|   		case SPA_PROP_volumeRampScale:
# 1164|   			if (this->vol_ramp_sequence) {
# 1165|-> 				spa_log_error(this->log, "%p volume ramp sequence is being "
# 1166|   						"applied try again", this);
# 1167|   				break;

Error: CPPCHECK_WARNING (CWE-190): [#def296]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1172: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1170|   			if (spa_pod_get_id(&prop->value, &id) == 0 && id) {
# 1171|   				vrp->scale = id;
# 1172|-> 				spa_log_info(this->log, "%p volume ramp scale %d", this, id);
# 1173|   			}
# 1174|   			break;

Error: CPPCHECK_WARNING (CWE-190): [#def297]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1222: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1220|   			    !this->rate_adjust && p->rate != 1.0) {
# 1221|   				this->rate_adjust = true;
# 1222|-> 				spa_log_info(this->log, "%p: activating adaptive resampler",
# 1223|   						this);
# 1224|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def298]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1245: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1243|   		void *sequence = NULL;
# 1244|   		if (p->volume == p->prev_volume)
# 1245|-> 			spa_log_error(this->log, "no change in volume, cannot ramp volume");
# 1246|   		else if (p->volume > p->prev_volume)
# 1247|   			sequence = generate_ramp_up_seq(this);

Error: CPPCHECK_WARNING (CWE-190): [#def299]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1252: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1250|   
# 1251|   		if (!sequence)
# 1252|-> 			spa_log_error(this->log, "unable to generate sequence");
# 1253|   
# 1254|   		this->vol_ramp_sequence = (struct spa_pod_sequence *) sequence;

Error: CPPCHECK_WARNING (CWE-190): [#def300]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1290: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1288|   		return 0;
# 1289|   
# 1290|-> 	spa_log_debug(this->log, "%p: port config direction:%d monitor:%d "
# 1291|   			"control:%d mode:%d %d", this, direction, monitor,
# 1292|   			control, mode, dir->n_ports);

Error: CPPCHECK_WARNING (CWE-457): [#def301]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1411: error[uninitvar]: Uninitialized variable: direction
# 1409|   		}
# 1410|   
# 1411|-> 		if ((res = reconfigure_mode(this, mode, direction, monitor, control, infop)) < 0)
# 1412|   			return res;
# 1413|   

Error: CPPCHECK_WARNING (CWE-457): [#def302]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1411: error[uninitvar]: Uninitialized variable: mode
# 1409|   		}
# 1410|   
# 1411|-> 		if ((res = reconfigure_mode(this, mode, direction, monitor, control, infop)) < 0)
# 1412|   			return res;
# 1413|   

Error: CPPCHECK_WARNING (CWE-190): [#def303]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1450: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1448|   	dst_info.info.raw.format = SPA_AUDIO_FORMAT_DSP_F32;
# 1449|   
# 1450|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 1451|   			spa_debug_type_find_name(spa_type_audio_format, src_info.info.raw.format),
# 1452|   			src_info.info.raw.channels,

Error: CPPCHECK_WARNING (CWE-190): [#def304]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1469: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1467|   			if (i != j)
# 1468|   				remap = true;
# 1469|-> 			spa_log_debug(this->log, "%p: channel %d (%d) -> %d (%s -> %s)", this,
# 1470|   					i, in->remap[i], j,
# 1471|   					spa_debug_type_find_short_name(spa_type_audio_channel,

Error: CPPCHECK_WARNING (CWE-190): [#def305]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1491: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1489|   		return res;
# 1490|   
# 1491|-> 	spa_log_debug(this->log, "%p: got converter features %08x:%08x passthrough:%d remap:%d %s", this,
# 1492|   			this->cpu_flags, in->conv.cpu_flags, in->conv.is_passthrough,
# 1493|   			remap, in->conv.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def306]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1502: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1500|   	float s;
# 1501|   	uint32_t i;
# 1502|-> 	spa_log_debug(this->log, "%p %d -> %d", this, vols->n_volumes, channels);
# 1503|   	if (vols->n_volumes > 0) {
# 1504|   		s = 0.0f;

Error: CPPCHECK_WARNING (CWE-190): [#def307]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1523: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1521|   	for (i = 0; i < p->n_channels; i++) {
# 1522|   		for (j = i; j < target; j++) {
# 1523|-> 			spa_log_debug(this->log, "%d %d: %d <-> %d", i, j,
# 1524|   					p->channel_map[i], info->info.raw.position[j]);
# 1525|   			if (p->channel_map[i] != info->info.raw.position[j])

Error: CPPCHECK_WARNING (CWE-190): [#def308]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1559: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1557|   	struct dir *dir = &this->dir[this->direction];
# 1558|   
# 1559|-> 	spa_log_debug(this->log, "%p set volume %f have_format:%d", this, this->props.volume, dir->have_format);
# 1560|   
# 1561|   	if (dir->have_format)

Error: CPPCHECK_WARNING (CWE-190): [#def309]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1614: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1612|   		dst_mask |= 1ULL << (p < 64 ? p : 0);
# 1613|   	}
# 1614|-> 	spa_log_info(this->log, "in  %s (%016"PRIx64")", format_position(str, sizeof(str),
# 1615|   				src_chan, in->format.info.raw.position), src_mask);
# 1616|   	spa_log_info(this->log, "out %s (%016"PRIx64")", format_position(str, sizeof(str),

Error: CPPCHECK_WARNING (CWE-190): [#def310]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1616: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1614|   	spa_log_info(this->log, "in  %s (%016"PRIx64")", format_position(str, sizeof(str),
# 1615|   				src_chan, in->format.info.raw.position), src_mask);
# 1616|-> 	spa_log_info(this->log, "out %s (%016"PRIx64")", format_position(str, sizeof(str),
# 1617|   				dst_chan, out->format.info.raw.position), dst_mask);
# 1618|   

Error: CPPCHECK_WARNING (CWE-190): [#def311]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1619: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1617|   				dst_chan, out->format.info.raw.position), dst_mask);
# 1618|   
# 1619|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d %08"PRIx64":%08"PRIx64, this,
# 1620|   			spa_debug_type_find_name(spa_type_audio_format, SPA_AUDIO_FORMAT_DSP_F32),
# 1621|   			src_chan,

Error: CPPCHECK_WARNING (CWE-190): [#def312]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1645: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1643|   	set_volume(this);
# 1644|   
# 1645|-> 	spa_log_debug(this->log, "%p: got channelmix features %08x:%08x flags:%08x %s",
# 1646|   			this, this->cpu_flags, this->mix.cpu_flags,
# 1647|   			this->mix.flags, this->mix.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def313]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1657: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1655|   	int res;
# 1656|   
# 1657|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 1658|   			spa_debug_type_find_name(spa_type_audio_format, SPA_AUDIO_FORMAT_DSP_F32),
# 1659|   			out->format.info.raw.channels,

Error: CPPCHECK_WARNING (CWE-190): [#def314]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1686: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1684|   		res = resample_native_init(&this->resample);
# 1685|   
# 1686|-> 	spa_log_debug(this->log, "%p: got resample features %08x:%08x %s",
# 1687|   			this, this->cpu_flags, this->resample.cpu_flags,
# 1688|   			this->resample.func_name);

Error: CPPCHECK_WARNING (CWE-190): [#def315]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1731: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1729|   	src_info.info.raw.format = SPA_AUDIO_FORMAT_DSP_F32;
# 1730|   
# 1731|-> 	spa_log_info(this->log, "%p: %s/%d@%d->%s/%d@%d", this,
# 1732|   			spa_debug_type_find_name(spa_type_audio_format, src_info.info.raw.format),
# 1733|   			src_info.info.raw.channels,

Error: CPPCHECK_WARNING (CWE-190): [#def316]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1751: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1749|   				remap = true;
# 1750|   
# 1751|-> 			spa_log_debug(this->log, "%p: channel %d (%d) -> %d (%s -> %s)", this,
# 1752|   					i, out->remap[i], j,
# 1753|   					spa_debug_type_find_short_name(spa_type_audio_channel,

Error: CPPCHECK_WARNING (CWE-190): [#def317]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1774: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1772|   		return res;
# 1773|   
# 1774|-> 	spa_log_debug(this->log, "%p: got converter features %08x:%08x quant:%d:%d"
# 1775|   			" passthrough:%d remap:%d %s", this,
# 1776|   			this->cpu_flags, out->conv.cpu_flags, out->conv.method,

Error: CPPCHECK_WARNING (CWE-190): [#def318]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1786: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1784|   	uint32_t i;
# 1785|   
# 1786|-> 	spa_log_debug(this->log, "free tmp %d", this->scratch_size);
# 1787|   
# 1788|   	free(this->empty);

Error: CPPCHECK_WARNING (CWE-190): [#def319]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1810: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1808|   		uint32_t i;
# 1809|   
# 1810|-> 		spa_log_debug(this->log, "resize tmp %d -> %d", this->scratch_size, maxsize);
# 1811|   
# 1812|   		if ((empty = realloc(this->empty, maxsize + MAX_ALIGN)) != NULL)

Error: CPPCHECK_WARNING (CWE-190): [#def320]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:1895: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1893|   	out = &this->dir[SPA_DIRECTION_OUTPUT];
# 1894|   
# 1895|-> 	spa_log_debug(this->log, "%p: setup:%d in_format:%d out_format:%d", this,
# 1896|   			this->setup, in->have_format, out->have_format);
# 1897|   

Error: CPPCHECK_WARNING (CWE-190): [#def321]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2018: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2016|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 2017|   
# 2018|-> 	spa_log_trace(this->log, "%p: add listener %p", this, listener);
# 2019|   	spa_hook_list_isolate(&this->hooks, &save, listener, events, data);
# 2020|   

Error: CPPCHECK_WARNING (CWE-190): [#def322]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2149: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2147|   	spa_return_val_if_fail(num != 0, -EINVAL);
# 2148|   
# 2149|-> 	spa_log_debug(this->log, "%p: enum params port %d.%d %d %u",
# 2150|   			this, direction, port_id, seq, id);
# 2151|   

Error: CPPCHECK_WARNING (CWE-190): [#def323]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2289: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2287|   		goto next;
# 2288|   
# 2289|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
# 2290|   
# 2291|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def324]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2300: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2298|   {
# 2299|   	if (port->n_buffers > 0) {
# 2300|-> 		spa_log_debug(this->log, "%p: clear buffers %p", this, port);
# 2301|   		port->n_buffers = 0;
# 2302|   		spa_list_init(&port->queue);

Error: CPPCHECK_WARNING (CWE-190): [#def325]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2320: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2318|   	uint32_t i;
# 2319|   
# 2320|-> 	spa_log_debug(this->log, "%p: set latency direction:%d id:%d %p",
# 2321|   			this, direction, port_id, latency);
# 2322|   

Error: CPPCHECK_WARNING (CWE-190): [#def326]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2339: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2337|   	port->have_latency = have_latency;
# 2338|   
# 2339|-> 	spa_log_debug(this->log, "%p: set %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64, this,
# 2340|   			info.direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 2341|   			info.min_quantum, info.max_quantum,

Error: CPPCHECK_WARNING (CWE-190): [#def327]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2364|   			if ((oport->is_monitor) || !oport->have_latency)
# 2365|   				continue;
# 2366|-> 			spa_log_debug(this->log, "%p: combine %d", this, i);
# 2367|   			spa_latency_info_combine(&info, &oport->latency[other]);
# 2368|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def328]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2371: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2369|   		spa_latency_info_combine_finish(&info);
# 2370|   
# 2371|-> 		spa_log_debug(this->log, "%p: combined %s latency %f-%f %d-%d %"PRIu64"-%"PRIu64, this,
# 2372|   				info.direction == SPA_DIRECTION_INPUT ? "input" : "output",
# 2373|   				info.min_quantum, info.max_quantum,

Error: CPPCHECK_WARNING (CWE-190): [#def329]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2379|   			if (oport->is_monitor)
# 2380|   				continue;
# 2381|-> 			spa_log_debug(this->log, "%p: change %d", this, i);
# 2382|   			if (spa_latency_info_compare(&info, &oport->latency[other]) != 0) {
# 2383|   				oport->latency[other] = info;

Error: CPPCHECK_WARNING (CWE-190): [#def330]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2409: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2407|   	uint32_t i;
# 2408|   
# 2409|-> 	spa_log_debug(this->log, "%p: set tag direction:%d id:%d %p",
# 2410|   			this, direction, port_id, tag);
# 2411|   

Error: CPPCHECK_WARNING (CWE-190): [#def331]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2452: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2450|   	port = GET_PORT(this, direction, port_id);
# 2451|   
# 2452|-> 	spa_log_debug(this->log, "%p: %d:%d set format", this, direction, port_id);
# 2453|   
# 2454|   	if (format == NULL) {

Error: CPPCHECK_WARNING (CWE-190): [#def332]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2461: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2459|   
# 2460|   		if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0) {
# 2461|-> 			spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 2462|   			return res;
# 2463|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def333]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2467: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2465|   			if (info.media_type != SPA_MEDIA_TYPE_audio ||
# 2466|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_dsp) {
# 2467|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 2468|   						info.media_type, info.media_subtype);
# 2469|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def334]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2472: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2470|   			}
# 2471|   			if ((res = spa_format_audio_dsp_parse(format, &info.info.dsp)) < 0) {
# 2472|-> 				spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 2473|   				return res;
# 2474|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def335]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2476: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2474|   			}
# 2475|   			if (info.info.dsp.format != SPA_AUDIO_FORMAT_DSP_F32) {
# 2476|-> 				spa_log_error(this->log, "unexpected format %d<->%d",
# 2477|   					info.info.dsp.format, SPA_AUDIO_FORMAT_DSP_F32);
# 2478|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def336]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2486: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2484|   			if (info.media_type != SPA_MEDIA_TYPE_application ||
# 2485|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_control) {
# 2486|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 2487|   						info.media_type, info.media_subtype);
# 2488|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def337]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2496: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2494|   			if (info.media_type != SPA_MEDIA_TYPE_audio ||
# 2495|   			    info.media_subtype != SPA_MEDIA_SUBTYPE_raw) {
# 2496|-> 				spa_log_error(this->log, "unexpected types %d/%d",
# 2497|   						info.media_type, info.media_subtype);
# 2498|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def338]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2501: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2499|   			}
# 2500|   			if ((res = spa_format_audio_raw_parse(format, &info.info.raw)) < 0) {
# 2501|-> 				spa_log_error(this->log, "can't parse format %s", spa_strerror(res));
# 2502|   				return res;
# 2503|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def339]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2508: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2506|   			    info.info.raw.channels == 0 ||
# 2507|   			    info.info.raw.channels > SPA_AUDIO_MAX_CHANNELS) {
# 2508|-> 				spa_log_error(this->log, "invalid format:%d rate:%d channels:%d",
# 2509|   						info.info.raw.format, info.info.raw.rate,
# 2510|   						info.info.raw.channels);

Error: CPPCHECK_WARNING (CWE-190): [#def340]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2527: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2525|   		port->have_format = true;
# 2526|   
# 2527|-> 		spa_log_debug(this->log, "%p: %d %d %d", this,
# 2528|   				port_id, port->stride, port->blocks);
# 2529|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def341]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2555: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2553|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 2554|   
# 2555|-> 	spa_log_debug(this->log, "%p: set param port %d.%d %u",
# 2556|   			this, direction, port_id, id);
# 2557|   

Error: CPPCHECK_WARNING (CWE-190): [#def342]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2626: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2624|   	port = GET_PORT(this, direction, port_id);
# 2625|   
# 2626|-> 	spa_log_debug(this->log, "%p: use buffers %d on port %d:%d",
# 2627|   			this, n_buffers, direction, port_id);
# 2628|   

Error: CPPCHECK_WARNING (CWE-190): [#def343]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2649: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2647|   
# 2648|   		if (n_datas != port->blocks) {
# 2649|-> 			spa_log_error(this->log, "%p: invalid blocks %d on buffer %d",
# 2650|   					this, n_datas, i);
# 2651|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def344]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2656: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2654|   		for (j = 0; j < n_datas; j++) {
# 2655|   			if (d[j].data == NULL) {
# 2656|-> 				spa_log_error(this->log, "%p: invalid memory %d on buffer %d %d %p",
# 2657|   						this, j, i, d[j].type, d[j].data);
# 2658|   				return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def345]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2661: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2659|   			}
# 2660|   			if (!SPA_IS_ALIGNED(d[j].data, this->max_align)) {
# 2661|-> 				spa_log_warn(this->log, "%p: memory %d on buffer %d not aligned",
# 2662|   						this, j, i);
# 2663|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def346]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2705: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2703|   	spa_return_val_if_fail(this != NULL, -EINVAL);
# 2704|   
# 2705|-> 	spa_log_debug(this->log, "%p: set io %d on port %d:%d %p",
# 2706|   			this, id, direction, port_id, data);
# 2707|   

Error: CPPCHECK_WARNING (CWE-190): [#def347]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2716: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2714|   		if (this->data_loop) {
# 2715|   			struct io_data d = { .port = port, .data = data, .size = size };
# 2716|-> 			spa_loop_invoke(this->data_loop, do_set_port_io, 0, NULL, 0, true, &d);
# 2717|   		}
# 2718|   		else

Error: CPPCHECK_WARNING (CWE-190): [#def348]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2755: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2753|   					"w", &info);
# 2754|   			if (this->wav_file == NULL)
# 2755|-> 				spa_log_warn(this->log, "can't open wav path: %m");
# 2756|   		}
# 2757|   		if (this->wav_file) {

Error: CPPCHECK_WARNING (CWE-190): [#def349]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2900: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2898|   		}
# 2899|   		if (this->rate_scale != r) {
# 2900|-> 			spa_log_info(this->log, "scale graph:%u in:%u out:%u scale:%f->%f",
# 2901|   					this->io_position->clock.rate.denom,
# 2902|   					this->resample.i_rate, this->resample.o_rate,

Error: CPPCHECK_WARNING (CWE-190): [#def350]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:2926: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2924|   		} else if (SPA_UNLIKELY(io->status != SPA_STATUS_HAVE_DATA)) {
# 2925|   			if (io->status & SPA_STATUS_DRAINED) {
# 2926|-> 				spa_log_debug(this->log, "%p: port %d drained", this, port->id);
# 2927|   				in_avail = flush_in = draining = true;
# 2928|   			} else {

Error: CPPCHECK_WARNING (CWE-190): [#def351]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:3040: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3038|   			if (buf == NULL && port->n_buffers > 0 &&
# 3039|   			    (suppressed = spa_ratelimit_test(&this->rate_limit, current_time)) >= 0) {
# 3040|-> 				spa_log_warn(this->log, "%p: (%d suppressed) out of buffers on port %d %d",
# 3041|   					this, suppressed, port->id, port->n_buffers);
# 3042|   			}

Error: CPPCHECK_WARNING (CWE-190): [#def352]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:3461: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3459|   	this->cpu = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_CPU);
# 3460|   	if (this->cpu) {
# 3461|-> 		this->cpu_flags = spa_cpu_get_flags(this->cpu);
# 3462|   		this->max_align = SPA_MIN(MAX_ALIGN, spa_cpu_get_max_align(this->cpu));
# 3463|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def353]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/audioconvert.c:3462: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 3460|   	if (this->cpu) {
# 3461|   		this->cpu_flags = spa_cpu_get_flags(this->cpu);
# 3462|-> 		this->max_align = SPA_MIN(MAX_ALIGN, spa_cpu_get_max_align(this->cpu));
# 3463|   	}
# 3464|   	props_reset(&this->props);

Error: COMPILER_WARNING: [#def354]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/fmt-ops-avx2.c: scope_hint: In function ‘conv_s16_to_f32d_1s_avx2’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/fmt-ops-avx2.c:33:17: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   31|   	float *d0 = dst[0];
#   32|   	uint32_t n, unrolled;
#   33|-> 	__m256i in = _mm256_setzero_si256();
#   34|   	__m256 out, factor = _mm256_set1_ps(1.0f / S16_SCALE);
#   35|   

Error: COMPILER_WARNING: [#def355]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c: scope_hint: In function ‘inner_product_avx’
pipewire-1.2.6-build/pipewire-1.2.6/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: CPPCHECK_WARNING (CWE-457): [#def356]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c:73: warning[uninitvar]: Uninitialized variable: index
#   71|   }
#   72|   
#   73|-> MAKE_RESAMPLER_FULL(avx);
#   74|   MAKE_RESAMPLER_INTER(avx);

Error: CPPCHECK_WARNING (CWE-457): [#def357]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c:73: warning[uninitvar]: Uninitialized variable: o
#   71|   }
#   72|   
#   73|-> MAKE_RESAMPLER_FULL(avx);
#   74|   MAKE_RESAMPLER_INTER(avx);

Error: CPPCHECK_WARNING (CWE-457): [#def358]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c:73: warning[uninitvar]: Uninitialized variable: phase
#   71|   }
#   72|   
#   73|-> MAKE_RESAMPLER_FULL(avx);
#   74|   MAKE_RESAMPLER_INTER(avx);

Error: CPPCHECK_WARNING (CWE-457): [#def359]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c:74: warning[uninitvar]: Uninitialized variable: index
#   72|   
#   73|   MAKE_RESAMPLER_FULL(avx);
#   74|-> MAKE_RESAMPLER_INTER(avx);

Error: CPPCHECK_WARNING (CWE-457): [#def360]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c:74: warning[uninitvar]: Uninitialized variable: o
#   72|   
#   73|   MAKE_RESAMPLER_FULL(avx);
#   74|-> MAKE_RESAMPLER_INTER(avx);

Error: CPPCHECK_WARNING (CWE-457): [#def361]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-avx.c:74: warning[uninitvar]: Uninitialized variable: phase
#   72|   
#   73|   MAKE_RESAMPLER_FULL(avx);
#   74|-> MAKE_RESAMPLER_INTER(avx);

Error: CPPCHECK_WARNING (CWE-457): [#def362]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44: warning[uninitvar]: Uninitialized variable: index
#   42|   }
#   43|   
#   44|-> MAKE_RESAMPLER_FULL(c);
#   45|   MAKE_RESAMPLER_INTER(c);

Error: CPPCHECK_WARNING (CWE-457): [#def363]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44: warning[uninitvar]: Uninitialized variable: o
#   42|   }
#   43|   
#   44|-> MAKE_RESAMPLER_FULL(c);
#   45|   MAKE_RESAMPLER_INTER(c);

Error: CPPCHECK_WARNING (CWE-457): [#def364]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44: warning[uninitvar]: Uninitialized variable: phase
#   42|   }
#   43|   
#   44|-> MAKE_RESAMPLER_FULL(c);
#   45|   MAKE_RESAMPLER_INTER(c);

Error: CPPCHECK_WARNING (CWE-457): [#def365]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45: warning[uninitvar]: Uninitialized variable: index
#   43|   
#   44|   MAKE_RESAMPLER_FULL(c);
#   45|-> MAKE_RESAMPLER_INTER(c);

Error: CPPCHECK_WARNING (CWE-457): [#def366]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45: warning[uninitvar]: Uninitialized variable: o
#   43|   
#   44|   MAKE_RESAMPLER_FULL(c);
#   45|-> MAKE_RESAMPLER_INTER(c);

Error: CPPCHECK_WARNING (CWE-457): [#def367]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45: warning[uninitvar]: Uninitialized variable: phase
#   43|   
#   44|   MAKE_RESAMPLER_FULL(c);
#   45|-> MAKE_RESAMPLER_INTER(c);

Error: GCC_ANALYZER_WARNING (CWE-457): [#def368]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:5: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c: scope_hint: In function ‘do_resample_full_c’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-impl.h:111:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:44:1: note: in expansion of macro ‘MAKE_RESAMPLER_FULL’
#  109|   		}								\
#  110|   	}									\
#  111|-> 	*in_len = index;							\
#  112|   	*out_len = o;								\
#  113|   	data->phase = phase;							\

Error: GCC_ANALYZER_WARNING (CWE-457): [#def369]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c: scope_hint: In function ‘do_resample_inter_c’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-impl.h:147:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘index’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-c.c:45:1: note: in expansion of macro ‘MAKE_RESAMPLER_INTER’
#  145|   		}								\
#  146|   	}									\
#  147|-> 	*in_len = index;							\
#  148|   	*out_len = o;								\
#  149|   	data->phase = phase;							\

Error: CPPCHECK_WARNING (CWE-457): [#def370]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-sse.c:73: warning[uninitvar]: Uninitialized variable: index
#   71|   }
#   72|   
#   73|-> MAKE_RESAMPLER_FULL(sse);
#   74|   MAKE_RESAMPLER_INTER(sse);

Error: CPPCHECK_WARNING (CWE-457): [#def371]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-sse.c:73: warning[uninitvar]: Uninitialized variable: o
#   71|   }
#   72|   
#   73|-> MAKE_RESAMPLER_FULL(sse);
#   74|   MAKE_RESAMPLER_INTER(sse);

Error: CPPCHECK_WARNING (CWE-457): [#def372]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-sse.c:73: warning[uninitvar]: Uninitialized variable: phase
#   71|   }
#   72|   
#   73|-> MAKE_RESAMPLER_FULL(sse);
#   74|   MAKE_RESAMPLER_INTER(sse);

Error: CPPCHECK_WARNING (CWE-457): [#def373]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-sse.c:74: warning[uninitvar]: Uninitialized variable: index
#   72|   
#   73|   MAKE_RESAMPLER_FULL(sse);
#   74|-> MAKE_RESAMPLER_INTER(sse);

Error: CPPCHECK_WARNING (CWE-457): [#def374]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-sse.c:74: warning[uninitvar]: Uninitialized variable: o
#   72|   
#   73|   MAKE_RESAMPLER_FULL(sse);
#   74|-> MAKE_RESAMPLER_INTER(sse);

Error: CPPCHECK_WARNING (CWE-457): [#def375]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-sse.c:74: warning[uninitvar]: Uninitialized variable: phase
#   72|   
#   73|   MAKE_RESAMPLER_FULL(sse);
#   74|-> MAKE_RESAMPLER_INTER(sse);

Error: CPPCHECK_WARNING (CWE-457): [#def376]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-ssse3.c:94: warning[uninitvar]: Uninitialized variable: index
#   92|   }
#   93|   
#   94|-> MAKE_RESAMPLER_FULL(ssse3);
#   95|   MAKE_RESAMPLER_INTER(ssse3);

Error: CPPCHECK_WARNING (CWE-457): [#def377]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-ssse3.c:94: warning[uninitvar]: Uninitialized variable: o
#   92|   }
#   93|   
#   94|-> MAKE_RESAMPLER_FULL(ssse3);
#   95|   MAKE_RESAMPLER_INTER(ssse3);

Error: CPPCHECK_WARNING (CWE-457): [#def378]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-ssse3.c:94: warning[uninitvar]: Uninitialized variable: phase
#   92|   }
#   93|   
#   94|-> MAKE_RESAMPLER_FULL(ssse3);
#   95|   MAKE_RESAMPLER_INTER(ssse3);

Error: CPPCHECK_WARNING (CWE-457): [#def379]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-ssse3.c:95: warning[uninitvar]: Uninitialized variable: index
#   93|   
#   94|   MAKE_RESAMPLER_FULL(ssse3);
#   95|-> MAKE_RESAMPLER_INTER(ssse3);

Error: CPPCHECK_WARNING (CWE-457): [#def380]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-ssse3.c:95: warning[uninitvar]: Uninitialized variable: o
#   93|   
#   94|   MAKE_RESAMPLER_FULL(ssse3);
#   95|-> MAKE_RESAMPLER_INTER(ssse3);

Error: CPPCHECK_WARNING (CWE-457): [#def381]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native-ssse3.c:95: warning[uninitvar]: Uninitialized variable: phase
#   93|   
#   94|   MAKE_RESAMPLER_FULL(ssse3);
#   95|-> MAKE_RESAMPLER_INTER(ssse3);

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

Error: CPPCHECK_WARNING (CWE-190): [#def383]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native.c:382: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  380|   	d->info = find_resample_info(SPA_AUDIO_FORMAT_F32, r->cpu_flags);
#  381|   	if (SPA_UNLIKELY(d->info == NULL)) {
#  382|-> 	    spa_log_error(r->log, "failed to find suitable resample format!");
#  383|   	    return -ENOTSUP;
#  384|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def384]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-native.c:386: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  384|   	}
#  385|   
#  386|-> 	spa_log_debug(r->log, "native %p: q:%d in:%d out:%d gcd:%d n_taps:%d n_phases:%d features:%08x:%08x",
#  387|   			r, r->quality, r->i_rate, r->o_rate, gcd, n_taps, n_phases,
#  388|   			r->cpu_flags, d->info->cpu_flags);

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

Error: GCC_ANALYZER_WARNING (CWE-457): [#def386]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-peaks.c: scope_hint: In function ‘resample_peaks_process’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-peaks.c:57:18: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘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): [#def387]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def388]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def389]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def390]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/resample-peaks.c:129: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  127|   	r->out_len = impl_peaks_out_len;
#  128|   
#  129|-> 	spa_log_debug(r->log, "peaks %p: in:%d out:%d features:%08x:%08x", r,
#  130|   			r->i_rate, r->o_rate, r->cpu_flags, d->peaks.cpu_flags);
#  131|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def391]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/peaks-ops.c:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-peaks.c:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-peaks.c: scope_hint: In function ‘test_min_max’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-peaks.c:68:23: warning[-Wanalyzer-jump-through-null]: jump through null pointer
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/peaks-ops.h:28:42: note: in definition of macro ‘peaks_min_max’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/peaks-ops.h:28:42: note: in definition of macro ‘peaks_min_max’
#   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): [#def392]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-peaks.c: scope_hint: In function ‘test_abs_max’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-peaks.c:85:29: warning[-Wanalyzer-jump-through-null]: jump through null pointer
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/peaks-ops.h:29:42: note: in definition of macro ‘peaks_abs_max’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/peaks-ops.h:29:42: note: in definition of macro ‘peaks_abs_max’
#   83|   	peaks_init(&peaks);
#   84|   
#   85|-> 	max = peaks_abs_max(&peaks, vals, SPA_N_ELEMENTS(vals), max);
#   86|   
#   87|   	spa_assert(max == 0.8f);

Error: CPPCHECK_WARNING (CWE-190): [#def393]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def394]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def395]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def396]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def397]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def398]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def399]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:499: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  497|   {
#  498|   	if (port->n_buffers > 0) {
#  499|-> 		spa_log_debug(this->log, "%p: clear buffers %p", this, port);
#  500|   		port->n_buffers = 0;
#  501|   		spa_list_init(&port->queue);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def400]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c: scope_hint: In function ‘port_set_format’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:543:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘port’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audioconvert/test-source.c:539:16: note: in expansion of macro ‘GET_PORT’
#  541|   	if (format == NULL) {
#  542|   		if (port->have_format) {
#  543|-> 			port->have_format = false;
#  544|   			clear_buffers(this, port);
#  545|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def401]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def402]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def403]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def404]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def405]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def406]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def407]
pipewire-1.2.6-build/pipewire-1.2.6/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: COMPILER_WARNING: [#def408]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audiomixer/mix-ops-avx.c: scope_hint: In function ‘mix_f32_avx’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/audiomixer/mix-ops-avx.c:45:31: 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: CPPCHECK_WARNING (CWE-457): [#def409]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/bluez5/bluez5-device.c:2654: error[uninitvar]: Uninitialized variable: idx
# 2652|   		}
# 2653|   
# 2654|-> 		profile = get_profile_from_index(this, idx, &next, &codec);
# 2655|   		if (profile == SPA_ID_INVALID)
# 2656|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-457): [#def410]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/bluez5/bluez5-device.c:2682: error[uninitvar]: Uninitialized variable: device
# 2680|   			return res;
# 2681|   		}
# 2682|-> 		if (device >= SPA_N_ELEMENTS(this->nodes) || !this->nodes[device].active)
# 2683|   			return -EINVAL;
# 2684|   

Error: CPPCHECK_WARNING (CWE-457): [#def411]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/bluez5/media-source.c:219: warning[uninitvar]: Uninitialized variables: param.size, param.type
#  217|   	}
#  218|   
#  219|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  220|   		goto next;
#  221|   

Error: CPPCHECK_WARNING (CWE-457): [#def412]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def413]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def414]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def415]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/cpu.c:164: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  162|   		SPA_FOR_EACH_ELEMENT_VAR(dmi_vendor_table, t) {
#  163|   			if (spa_strstartswith(s, t->vendor)) {
#  164|-> 				spa_log_debug(impl->log, "Virtualization %s found in DMI (%s)",
#  165|   						s, *dv);
#  166|   				impl->vm_type = t->id;

Error: CPPCHECK_WARNING (CWE-190): [#def416]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/cpu.c:256: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  254|   	}
#  255|   
#  256|-> 	spa_log_debug(this->log, "%p: count:%d align:%d flags:%08x",
#  257|   			this, this->count, this->max_align, this->flags);
#  258|   

Error: CPPCHECK_WARNING (CWE-190): [#def417]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:68: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   66|   
#   67|   	spa_list_remove(&d->link);
#   68|-> 	spa_loop_utils_destroy_source(impl->utils, d->source);
#   69|   	free(d);
#   70|   }

Error: CPPCHECK_WARNING (CWE-190): [#def418]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def419]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:79: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   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);
#   80|   }
#   81|   

Error: CPPCHECK_WARNING (CWE-190): [#def420]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def421]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:88: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   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);
#   90|   }

Error: CPPCHECK_WARNING (CWE-190): [#def422]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def423]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c: scope_hint: In function ‘add_watch’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:148:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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-190): [#def424]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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): [#def425]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def426]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def427]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  177|   		return;
#  178|   
#  179|-> 	spa_loop_utils_update_io(impl->utils, data->source, dbus_to_io(watch));
#  180|   }
#  181|   

Error: CPPCHECK_WARNING (CWE-190): [#def428]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def429]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:204: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  202|   		ts.tv_sec = t / SPA_NSEC_PER_SEC;
#  203|   		ts.tv_nsec = t % SPA_NSEC_PER_SEC;
#  204|-> 		spa_loop_utils_update_timer(impl->utils,
#  205|   				     data->source, &ts, NULL, false);
#  206|   		dbus_timeout_handle(timeout);

Error: CPPCHECK_WARNING (CWE-190): [#def430]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def431]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c: scope_hint: In function ‘add_timeout’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:224:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/log.h:274:9: note: in expansion of macro ‘spa_log_logt’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/log.h:277:9: note: in expansion of macro ‘spa_logt_lev’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/log.h:288:33: note: in expansion of macro ‘spa_log_lev’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:221:9: note: in expansion of macro ‘spa_log_debug’
#  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-190): [#def432]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:225: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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-190): [#def433]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:233: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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): [#def434]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def435]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def436]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:266: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  264|   		tsp = NULL;
#  265|   	}
#  266|-> 	spa_loop_utils_update_timer(impl->utils, data->source, tsp, NULL, false);
#  267|   }
#  268|   

Error: CPPCHECK_WARNING (CWE-190): [#def437]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def438]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:275: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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|   }
#  277|   

Error: CPPCHECK_WARNING (CWE-190): [#def439]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def440]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def441]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def442]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def443]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:378: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  376|   		source_data_free(data);
#  377|   
#  378|-> 	spa_loop_utils_destroy_source(impl->utils, conn->dispatch_event);
#  379|   
#  380|   	spa_hook_list_clean(&conn->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def444]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def445]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def446]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c: scope_hint: In function ‘impl_get_connection’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:424:20: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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-190): [#def447]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/dbus.c:426: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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-190): [#def448]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def449]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def450]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def451]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def452]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/journal.c:60: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   58|   		va_copy(args_copy, args);
#   59|   		impl->chain_log->level = impl->log.level;
#   60|-> 		spa_log_logtv(impl->chain_log,
#   61|   			      level, topic,
#   62|   			      file, line, func, fmt, args_copy);

Error: CPPCHECK_WARNING (CWE-190): [#def453]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def454]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/logger.c:259: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  257|   
#  258|   	if (this->have_source) {
#  259|-> 		spa_loop_remove_source(this->source.loop, &this->source);
#  260|   		spa_system_close(this->system, this->source.fd);
#  261|   		this->have_source = false;

Error: CPPCHECK_WARNING (CWE-190): [#def455]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/logger.c:313: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  311|   			fprintf(stderr, "Warning: failed to create eventfd: %m");
#  312|   		} else {
#  313|-> 			spa_loop_add_source(loop, &this->source);
#  314|   			this->have_source = true;
#  315|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def456]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/logger.c:362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  360|   	spa_ringbuffer_init(&this->trace_rb);
#  361|   
#  362|-> 	spa_log_debug(&this->log, "%p: initialized to %s linebuf:%u", this, dest, linebuf);
#  363|   
#  364|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def457]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:200: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  198|   		if ((res = spa_system_eventfd_create(impl->system,
#  199|   				SPA_FD_EVENT_SEMAPHORE | SPA_FD_CLOEXEC)) < 0) {
#  200|-> 			spa_log_error(impl->log, "%p: can't create ack event: %s",
#  201|   					impl, spa_strerror(res));
#  202|   			goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def458]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:213: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  211|   	pthread_mutex_unlock(&impl->queue_lock);
#  212|   
#  213|-> 	spa_log_info(impl->log, "%p created queue %p", impl, queue);
#  214|   
#  215|   	return queue;

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

Error: CPPCHECK_WARNING (CWE-190): [#def460]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:371: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  369|   
#  370|   			if ((res = spa_system_eventfd_read(impl->system, queue->ack_fd, &count)) < 0)
#  371|-> 				spa_log_warn(impl->log, "%p: failed to read event fd:%d: %s",
#  372|   						queue, queue->ack_fd, spa_strerror(res));
#  373|   

Error: CPPCHECK_WARNING (CWE-190): [#def461]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:391: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  389|   		nsec = get_time_ns(impl->system);
#  390|   		if ((suppressed = spa_ratelimit_test(&queue->rate_limit, nsec)) >= 0) {
#  391|-> 			spa_log_warn(impl->log, "%p: queue full %d, need %zd (%d suppressed)",
#  392|   					queue, avail, need, suppressed);
#  393|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def462]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:451: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  449|   {
#  450|   	struct impl *impl = object;
#  451|-> 	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, before, 0));
#  452|   	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, after, 0));
#  453|   	spa_hook_list_append(&impl->hooks_list, hook, hooks, data);

Error: CPPCHECK_WARNING (CWE-190): [#def463]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:452: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  450|   	struct impl *impl = object;
#  451|   	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, before, 0));
#  452|-> 	spa_return_if_fail(SPA_CALLBACK_CHECK(hooks, after, 0));
#  453|   	spa_hook_list_append(&impl->hooks_list, hook, hooks, data);
#  454|   }

Error: CPPCHECK_WARNING (CWE-190): [#def464]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:660: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  658|   		 * an idle source */
#  659|   		source->source.rmask = mask;
#  660|-> 		source->fallback = spa_loop_utils_add_idle(&impl->utils,
#  661|   				mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false,
#  662|   				(spa_source_idle_func_t) source_io_func, source);

Error: CPPCHECK_WARNING (CWE-190): [#def465]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:663: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  661|   				mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false,
#  662|   				(spa_source_idle_func_t) source_io_func, source);
#  663|-> 		spa_log_trace(impl->log, "%p: adding fallback %p", impl,
#  664|   				source->fallback);
#  665|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def466]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:687: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  685|   	spa_assert(source->func == source_io_func);
#  686|   
#  687|-> 	spa_log_trace(impl->log, "%p: update %08x -> %08x", s, source->mask, mask);
#  688|   	source->mask = mask;
#  689|   

Error: CPPCHECK_WARNING (CWE-190): [#def467]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:691: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  689|   
#  690|   	if (s->fallback)
#  691|-> 		res = spa_loop_utils_enable_idle(&impl->utils, s->fallback,
#  692|   				mask & (SPA_IO_IN | SPA_IO_OUT) ? true : false);
#  693|   	else

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

Error: CPPCHECK_WARNING (CWE-190): [#def469]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:719: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  717|   		uint64_t count;
#  718|   		if ((res = spa_system_eventfd_read(s->impl->system, source->fd, &count)) < 0)
#  719|-> 			spa_log_warn(s->impl->log, "%p: failed to read idle fd:%d: %s",
#  720|   					source, source->fd, spa_strerror(res));
#  721|   	}

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

Error: CPPCHECK_WARNING (CWE-190): [#def471]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:829: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  827|   
#  828|   	if (SPA_UNLIKELY((res = spa_system_eventfd_write(s->impl->system, source->fd, 1)) < 0))
#  829|-> 		spa_log_warn(s->impl->log, "%p: failed to write event fd:%d: %s",
#  830|   				source, source->fd, spa_strerror(res));
#  831|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def472]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:843: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  841|   				source->fd, &expirations)) < 0)) {
#  842|   		if (res != -EAGAIN)
#  843|-> 			spa_log_warn(s->impl->log, "%p: failed to read timer fd:%d: %s",
#  844|   					source, source->fd, spa_strerror(res));
#  845|   		return;

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

Error: CPPCHECK_WARNING (CWE-190): [#def474]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:979: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  977|   	spa_assert(s->impl == object);
#  978|   
#  979|-> 	spa_log_trace(s->impl->log, "%p ", s);
#  980|   
#  981|   	spa_list_remove(&s->link);

Error: CPPCHECK_WARNING (CWE-190): [#def475]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1073: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1071|   
# 1072|   	if (impl->enter_count != 0 || impl->polling)
# 1073|-> 		spa_log_warn(impl->log, "%p: loop is entered %d times polling:%d",
# 1074|   				impl, impl->enter_count, impl->polling);
# 1075|   

Error: CPPCHECK_WARNING (CWE-190): [#def476]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1142: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1140|   	}
# 1141|   
# 1142|-> 	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1143|   	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit);
# 1144|   	CHECK(pthread_mutex_init(&impl->queue_lock, &attr), error_exit);

Error: CPPCHECK_WARNING (CWE-190): [#def477]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1143: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1141|   
# 1142|   	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1143|-> 	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit);
# 1144|   	CHECK(pthread_mutex_init(&impl->queue_lock, &attr), error_exit);
# 1145|   

Error: CPPCHECK_WARNING (CWE-190): [#def478]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1144: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1142|   	CHECK(pthread_mutexattr_init(&attr), error_exit);
# 1143|   	CHECK(pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE), error_exit);
# 1144|-> 	CHECK(pthread_mutex_init(&impl->queue_lock, &attr), error_exit);
# 1145|   
# 1146|   	impl->log = spa_support_find(support, n_support, SPA_TYPE_INTERFACE_Log);

Error: CPPCHECK_WARNING (CWE-190): [#def479]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1151: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1149|   
# 1150|   	if (impl->system == NULL) {
# 1151|-> 		spa_log_error(impl->log, "%p: a System is needed", impl);
# 1152|   		res = -EINVAL;
# 1153|   		goto error_exit_free_mutex;

Error: CPPCHECK_WARNING (CWE-190): [#def480]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1156: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1154|   	}
# 1155|   	if ((res = spa_system_pollfd_create(impl->system, SPA_FD_CLOEXEC)) < 0) {
# 1156|-> 		spa_log_error(impl->log, "%p: can't create pollfd: %s",
# 1157|   				impl, spa_strerror(res));
# 1158|   		goto error_exit_free_mutex;

Error: CPPCHECK_WARNING (CWE-190): [#def481]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1170: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1168|   	if (impl->wakeup == NULL) {
# 1169|   		res = -errno;
# 1170|-> 		spa_log_error(impl->log, "%p: can't create wakeup event: %m", impl);
# 1171|   		goto error_exit_free_poll;
# 1172|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def482]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1176: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1174|   	if (tss_create(&impl->queue_tss_id, (tss_dtor_t)loop_queue_destroy) != thrd_success) {
# 1175|   		res = -errno;
# 1176|-> 		spa_log_error(impl->log, "%p: can't create tss: %m", impl);
# 1177|   		goto error_exit_free_wakeup;
# 1178|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def483]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/loop.c:1180: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1178|   	}
# 1179|   
# 1180|-> 	spa_log_debug(impl->log, "%p: initialized", impl);
# 1181|   
# 1182|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def484]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def485]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def486]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def487]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def488]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def489]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def490]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:283: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  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);
#  284|   	}
#  285|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def491]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def492]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def493]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def494]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:434: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  432|   	this->started = true;
#  433|   	this->last_time = 0;
#  434|-> 	spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
#  435|   	return 0;
#  436|   }

Error: CPPCHECK_WARNING (CWE-190): [#def495]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:443: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  441|   		return 0;
#  442|   	this->started = false;
#  443|-> 	spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
#  444|   	return 0;
#  445|   }

Error: CPPCHECK_WARNING (CWE-190): [#def496]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def497]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def498]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:564: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  562|   {
#  563|   	struct impl *this = user_data;
#  564|-> 	spa_loop_remove_source(this->data_loop, &this->timer_source);
#  565|   	return 0;
#  566|   }

Error: CPPCHECK_WARNING (CWE-190): [#def499]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  574|   	this = (struct impl *) handle;
#  575|   
#  576|-> 	spa_loop_invoke(this->data_loop, do_remove_timer, 0, NULL, 0, true, this);
#  577|   	spa_system_close(this->data_system, this->timer_source.fd);
#  578|   

Error: CPPCHECK_WARNING (CWE-190): [#def500]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def501]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def502]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def503]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def504]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-775): [#def505]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:703:50: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(&dev, 0)’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:627:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:628:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:628:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:5: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:22: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:222:13: note: in expansion of macro ‘SPA_LIKELY’
#  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: CPPCHECK_WARNING (CWE-190): [#def506]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def507]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/node-driver.c:742: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  740|   	this->timerspec.it_interval.tv_nsec = 0;
#  741|   
#  742|-> 	spa_loop_add_source(this->data_loop, &this->timer_source);
#  743|   
#  744|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def508]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:170: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  168|   		goto next;
#  169|   
#  170|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  171|   
#  172|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def509]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:180: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  178|   static void set_timeout(struct impl *this, uint64_t next_time)
#  179|   {
#  180|-> 	spa_log_trace(this->log, "set timeout %"PRIu64, next_time);
#  181|   	this->timerspec.it_value.tv_sec = next_time / SPA_NSEC_PER_SEC;
#  182|   	this->timerspec.it_value.tv_nsec = next_time % SPA_NSEC_PER_SEC;

Error: CPPCHECK_WARNING (CWE-457): [#def510]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:194: error[uninitvar]: Uninitialized variable: &now
#  192|   	if ((res = spa_system_clock_gettime(this->data_system, CLOCK_MONOTONIC, &now)) < 0)
#  193|   	    return res;
#  194|-> 	this->next_time = SPA_TIMESPEC_TO_NSEC(&now);
#  195|   
#  196|   	if (this->following || !this->started) {

Error: CPPCHECK_WARNING (CWE-190): [#def511]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:230: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  228|   	following = is_following(this);
#  229|   	if (following != this->following) {
#  230|-> 		spa_log_debug(this->log, "%p: reassign follower %d->%d", this, this->following, following);
#  231|   		this->following = following;
#  232|   		spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);

Error: CPPCHECK_WARNING (CWE-190): [#def512]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:232: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  230|   		spa_log_debug(this->log, "%p: reassign follower %d->%d", this, this->following, following);
#  231|   		this->following = following;
#  232|-> 		spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
#  233|   	}
#  234|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def513]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:272: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  270|   	int res;
#  271|   
#  272|-> 	spa_log_trace(this->log, "timeout");
#  273|   
#  274|   	if ((res = spa_system_timerfd_read(this->data_system,

Error: CPPCHECK_WARNING (CWE-190): [#def514]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  275|   				this->timer_source.fd, &expirations)) < 0) {
#  276|   		if (res != -EAGAIN)
#  277|-> 			spa_log_error(this->log, "%p: timerfd error: %s",
#  278|   					this, spa_strerror(res));
#  279|   		return;

Error: CPPCHECK_WARNING (CWE-190): [#def515]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:316: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  314|   	this->following = is_following(this);
#  315|   	this->started = true;
#  316|-> 	spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
#  317|   	return 0;
#  318|   }

Error: CPPCHECK_WARNING (CWE-190): [#def516]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:325: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  323|   		return 0;
#  324|   	this->started = false;
#  325|-> 	spa_loop_invoke(this->data_loop, do_set_timers, 0, NULL, 0, true, this);
#  326|   	return 0;
#  327|   }

Error: CPPCHECK_WARNING (CWE-190): [#def517]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:372: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  370|   		};
#  371|   		this->info.props = &SPA_DICT_INIT_ARRAY(node_info_items);
#  372|-> 		spa_node_emit_info(&this->hooks, &this->info);
#  373|   		this->info.change_mask = old;
#  374|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def518]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:383: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  381|   		port->info.change_mask = port->info_all;
#  382|   	if (port->info.change_mask) {
#  383|-> 		spa_node_emit_port_info(&this->hooks,
#  384|   				SPA_DIRECTION_INPUT, 0, &port->info);
#  385|   		port->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def519]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   		goto next;
#  564|   
#  565|-> 	spa_node_emit_result(&this->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  566|   
#  567|   	if (++count != num)

Error: CPPCHECK_WARNING (CWE-190): [#def520]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  574|   {
#  575|   	if (port->n_buffers > 0) {
#  576|-> 		spa_log_info(this->log, "%p: clear buffers", this);
#  577|   		port->n_buffers = 0;
#  578|   		this->started = false;

Error: CPPCHECK_WARNING (CWE-190): [#def521]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:731: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  729|   
#  730|   		if (d[0].data == NULL) {
#  731|-> 			spa_log_error(this->log, "%p: invalid memory on buffer %p", this,
#  732|   				      buffers[i]);
#  733|   			return -EINVAL;

Error: CPPCHECK_WARNING (CWE-190): [#def522]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:837: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  835|   {
#  836|   	struct impl *this = user_data;
#  837|-> 	spa_loop_remove_source(this->data_loop, &this->timer_source);
#  838|   	return 0;
#  839|   }

Error: CPPCHECK_WARNING (CWE-190): [#def523]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:849: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  847|   	this = (struct impl *) handle;
#  848|   
#  849|-> 	spa_loop_invoke(this->data_loop, do_remove_timer, 0, NULL, 0, true, this);
#  850|   	spa_system_close(this->data_system, this->timer_source.fd);
#  851|   

Error: CPPCHECK_WARNING (CWE-190): [#def524]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:922: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  920|   
#  921|   	if (this->data_loop == NULL) {
#  922|-> 		spa_log_error(this->log, "a data_loop is needed");
#  923|   		return -EINVAL;
#  924|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def525]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:926: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  924|   	}
#  925|   	if (this->data_system == NULL) {
#  926|-> 		spa_log_error(this->log, "a data_system is needed");
#  927|   		return -EINVAL;
#  928|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def526]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:971: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  969|   	this->timerspec.it_interval.tv_nsec = 0;
#  970|   
#  971|-> 	spa_loop_add_source(this->data_loop, &this->timer_source);
#  972|   
#  973|   	for (i = 0; info && i < info->n_items; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def527]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/null-audio-sink.c:994: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  992|   		}
#  993|   	}
#  994|-> 	spa_log_info(this->log, "%p: initialized", this);
#  995|   
#  996|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def528]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def529]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def530]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def531]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def532]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def533]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/support/system.c:334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  332|   	spa_log_topic_init(impl->log, &log_topic);
#  333|   
#  334|-> 	spa_log_debug(impl->log, "%p: initialized", impl);
#  335|   
#  336|   	return 0;

Error: GCC_ANALYZER_WARNING (CWE-126): [#def534]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:42:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:227:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:228:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:228:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:42:9: note: read of 52 bytes from after the end of ‘default_device’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-device.c:42:9: note: valid subscripts for ‘default_device’ are ‘[0]’ to ‘[11]’
#   40|   static void reset_props(struct props *props)
#   41|   {
#   42|-> 	strncpy(props->device, default_device, 64);
#   43|   }
#   44|   

Error: GCC_ANALYZER_WARNING (CWE-126): [#def535]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c:43:9: warning[-Wanalyzer-out-of-bounds]: buffer over-read
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c: scope_hint: In function ‘impl_init’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c:995:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:359:21: note: in expansion of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c:996:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c:996:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c:43:9: note: read of 52 bytes from after the end of ‘default_device’
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/v4l2/v4l2-source.c:43:9: note: valid subscripts for ‘default_device’ are ‘[0]’ to ‘[11]’
#   41|   static void reset_props(struct props *props)
#   42|   {
#   43|-> 	strncpy(props->device, default_device, 64);
#   44|   }
#   45|   

Error: CPPCHECK_WARNING (CWE-457): [#def536]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/videoconvert/videoadapter.c:756: error[uninitvar]: Uninitialized variable: mode
#  754|   		}
#  755|   
#  756|-> 		switch (mode) {
#  757|   		case SPA_PARAM_PORT_CONFIG_MODE_none:
#  758|   			return -ENOTSUP;

Error: CPPCHECK_WARNING (CWE-457): [#def537]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def538]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def539]
pipewire-1.2.6-build/pipewire-1.2.6/spa/plugins/vulkan/vulkan-compute-filter.c:119: error[uninitvar]: Uninitialized variable: param
#  117|   	}
#  118|   
#  119|-> 	if (spa_pod_filter(&b, &result.param, param, filter) < 0)
#  120|   		goto next;
#  121|   

Error: GCC_ANALYZER_WARNING (CWE-835): [#def540]
pipewire-1.2.6-build/pipewire-1.2.6/spa/tests/stress-ringbuffer.c: scope_hint: In function ‘reader_start’
pipewire-1.2.6-build/pipewire-1.2.6/spa/tests/stress-ringbuffer.c:62:25: warning[-Wanalyzer-infinite-loop]: infinite loop
pipewire-1.2.6-build/pipewire-1.2.6/spa/tests/stress-ringbuffer.c:8: included_from: Included from 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): [#def541]
pipewire-1.2.6-build/pipewire-1.2.6/spa/tests/stress-ringbuffer.c: scope_hint: In function ‘writer_start’
pipewire-1.2.6-build/pipewire-1.2.6/spa/tests/stress-ringbuffer.c:91:30: warning[-Wanalyzer-infinite-loop]: infinite loop
#   89|   		int32_t avail;
#   90|   
#   91|-> 		avail = size - spa_ringbuffer_get_write_index(&rb, &index);
#   92|   
#   93|   		if (avail >= (int32_t)(sizeof(a))) {

Error: CPPCHECK_WARNING (CWE-190): [#def542]
pipewire-1.2.6-build/pipewire-1.2.6/src/daemon/pipewire.c:118: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  116|   	}
#  117|   
#  118|-> 	pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGINT, do_quit, loop);
#  119|   	pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGTERM, do_quit, loop);
#  120|   

Error: CPPCHECK_WARNING (CWE-190): [#def543]
pipewire-1.2.6-build/pipewire-1.2.6/src/daemon/pipewire.c:119: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  117|   
#  118|   	pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGINT, do_quit, loop);
#  119|-> 	pw_loop_add_signal(pw_main_loop_get_loop(loop), SIGTERM, do_quit, loop);
#  120|   
#  121|   	context = pw_context_new(pw_main_loop_get_loop(loop), spa_steal_ptr(properties), 0);

Error: CPPCHECK_WARNING (CWE-369): [#def544]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def545]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-adapter/adapter.c:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   	info.props = props;
#  156|   
#  157|-> 	res = spa_node_add_listener(info.node, &info.listener, &node_info_events, &info);
#  158|   	if (res < 0)
#  159|   		goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def546]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def547]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def548]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def549]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def550]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def551]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def552]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def553]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-457): [#def554]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c: scope_hint: In function ‘device_demarshal_object_info’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c:451:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘ipod’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c:446:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:364:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c: scope_hint: In function ‘device_demarshal_object_info’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c:446:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c:446:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/protocol-native.c:446:13: note: in expansion of macro ‘spa_pod_parser_get_struct’
#  449|   		return -EINVAL;
#  450|   
#  451|-> 	if (ipod) {
#  452|   		struct spa_pod_parser p2;
#  453|   		struct spa_pod_frame f2;

Error: CPPCHECK_WARNING (CWE-190): [#def555]
pipewire-1.2.6-build/pipewire-1.2.6/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-190): [#def556]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-device/proxy-device.c:66: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   64|   	pw_proxy_add_object_listener(proxy, &data->device_methods,
#   65|   			diface->cb.funcs, diface->cb.data);
#   66|-> 	spa_device_add_listener(device, &data->device_listener,
#   67|   			iface->cb.funcs, iface->cb.data);
#   68|   

Error: CPPCHECK_WARNING (CWE-476): [#def557]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-401): [#def558]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c: scope_hint: In function ‘create_mix’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c:234:26: warning[-Wanalyzer-malloc-leak]: leak of ‘mix’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h: scope_hint: In function ‘create_mix’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c: scope_hint: In function ‘create_mix’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/map.h:194:13: note: in expansion of macro ‘SPA_LIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c: scope_hint: In function ‘create_mix’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
#  232|   	mix->port = p;
#  233|   	mix->n_buffers = 0;
#  234|-> 	mix->impl_mix_id = SPA_ID_INVALID;
#  235|   	return mix;
#  236|   

Error: CPPCHECK_WARNING (CWE-190): [#def559]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def560]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def561]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def562]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def563]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def564]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def565]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def566]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def567]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def568]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def569]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def570]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def571]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def572]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def573]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def574]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def575]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def576]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def577]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def578]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def579]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def580]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def581]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def582]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def583]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def584]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def585]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def586]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def587]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def588]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def589]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def590]
pipewire-1.2.6-build/pipewire-1.2.6/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-457): [#def591]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c:1158: error[uninitvar]: Uninitialized variable: cmd
# 1156|   					impl->data_source.fd, &cmd) < 0))
# 1157|   			pw_log_warn("%p: read failed %m", impl);
# 1158|-> 		else if (SPA_UNLIKELY(cmd > 1))
# 1159|   			pw_log_info("(%s-%u) client missed %"PRIu64" wakeups",
# 1160|   				node->name, node->info.id, cmd - 1);

Error: CPPCHECK_WARNING (CWE-190): [#def592]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def593]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c:1226: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1224|   {
# 1225|   	struct spa_source *source = user_data;
# 1226|-> 	spa_loop_remove_source(loop, source);
# 1227|   	return 0;
# 1228|   }

Error: CPPCHECK_WARNING (CWE-190): [#def594]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c:1242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1240|   
# 1241|   	if (impl->data_source.fd != -1) {
# 1242|-> 		spa_loop_invoke(impl->data_loop,
# 1243|   				do_remove_source,
# 1244|   				SPA_ID_INVALID,

Error: CPPCHECK_WARNING (CWE-190): [#def595]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def596]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def597]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def598]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def599]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def600]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/client-node.c:1389: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1387|   			SPA_FD_CLOEXEC | SPA_FD_NONBLOCK);
# 1388|   
# 1389|-> 	spa_loop_add_source(impl->data_loop, &impl->data_source);
# 1390|   	pw_log_debug("%p: transport read-fd:%d write-fd:%d", impl,
# 1391|   			impl->data_source.fd, this->node->source.fd);

Error: CPPCHECK_WARNING (CWE-190): [#def601]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def602]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def603]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def604]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def605]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def606]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def607]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def608]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def609]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def610]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def611]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def612]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def613]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def614]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def615]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def616]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def617]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def618]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def619]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def620]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def621]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:122: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  120|   	while ((mm = pw_mempool_find_tag(data->pool, tag, sizeof(uint32_t))) != NULL) {
#  121|   		if (mm->tag[1] == SPA_ID_INVALID)
#  122|-> 			spa_node_set_io(node->node, mm->tag[2], NULL, 0);
#  123|   
#  124|   		pw_memmap_free(mm);

Error: CPPCHECK_WARNING (CWE-190): [#def622]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:218: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  216|   
#  217|   	if (node->active)
#  218|-> 		pw_client_node_set_active(data->client_node, true);
#  219|   
#  220|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def623]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:275: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  273|   	}
#  274|   
#  275|->         res = pw_client_node_update(data->client_node,
#  276|   				change_mask,
#  277|   				n_params,

Error: CPPCHECK_WARNING (CWE-190): [#def624]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:360: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  358|   	}
#  359|   
#  360|-> 	res = pw_client_node_port_update(data->client_node,
#  361|                                            port->direction,
#  362|                                            port->port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def625]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:386: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  384|   			spa_debug_type_find_name(spa_type_param, id));
#  385|   
#  386|-> 	res = spa_node_set_param(data->node->node, id, flags, param);
#  387|   
#  388|   	if (res < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def626]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:718: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  716|   
#  717|   	if (flags & SPA_NODE_BUFFERS_FLAG_ALLOC) {
#  718|-> 		pw_client_node_port_buffers(data->client_node,
#  719|   				direction, port_id, mix_id,
#  720|   				n_buffers,

Error: CPPCHECK_WARNING (CWE-190): [#def627]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:779: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  777|   			spa_debug_type_find_name(spa_type_io, id), ptr, mix->mix.io);
#  778|   
#  779|-> 	if ((res = spa_node_port_set_io(mix->port->mix,
#  780|   			     direction, mix->mix.port.port_id, id, ptr, size)) < 0) {
#  781|   		if (res == -ENOTSUP)

Error: CPPCHECK_WARNING (CWE-190): [#def628]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:881: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  879|   
#  880|   	if (mix->mix.id != SPA_ID_INVALID)
#  881|-> 		spa_node_port_set_io(mix->port->mix, mix->mix.port.direction,
#  882|   				mix->mix.port.port_id, SPA_IO_Buffers, NULL, 0);
#  883|   

Error: CPPCHECK_WARNING (CWE-190): [#def629]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:1070: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1068|   		return;
# 1069|   
# 1070|-> 	pw_client_node_port_update(d->client_node,
# 1071|   			port->direction,
# 1072|   			port->port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def630]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:1089: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1087|   		return;
# 1088|   
# 1089|-> 	pw_client_node_set_active(d->client_node, active);
# 1090|   }
# 1091|   

Error: CPPCHECK_WARNING (CWE-190): [#def631]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:1099: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1097|   	if (d->client_node == NULL)
# 1098|   		return;
# 1099|-> 	pw_client_node_event(d->client_node, event);
# 1100|   }
# 1101|   

Error: CPPCHECK_WARNING (CWE-190): [#def632]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/remote-node.c:1242: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1240|   			&node_rt_events, data);
# 1241|   
# 1242|-> 	pw_client_node_add_listener(data->client_node,
# 1243|   					  &data->client_node_listener,
# 1244|   					  &client_node_events,

Error: GCC_ANALYZER_WARNING (CWE-476): [#def633]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c: scope_hint: In function ‘ensure_mem’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:168:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:648:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:649:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:48:43: note: in expansion of macro ‘CHECK_IN_PORT_ID’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:50:43: note: in expansion of macro ‘CHECK_IN_PORT’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:649:32: note: in expansion of macro ‘CHECK_PORT’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:669:30: note: in expansion of macro ‘SPA_PTRDIFF’
#  166|   	if (f == NULL) {
#  167|   		m = pw_array_add(&impl->mems, sizeof(struct mem));
#  168|-> 		m->id = pw_array_get_len(&impl->mems, struct mem) - 1;
#  169|   		m->ref = 0;
#  170|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def634]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def635]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def636]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def637]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def638]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def639]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def640]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def641]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def642]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def643]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:454: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  452|   		port->have_format = false;
#  453|   
#  454|-> 		spa_log_debug(this->log, "node %p: port %u update %d params", this, port_id, n_params);
#  455|   		for (i = 0; i < port->n_params; i++)
#  456|   			free(port->params[i]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def644]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c: scope_hint: In function ‘do_update_port’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:472:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘params’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:433:16: note: in expansion of macro ‘GET_PORT’
#  470|   		}
#  471|   		for (i = 0; i < port->n_params; i++) {
#  472|-> 			port->params[i] = params[i] ?
#  473|   				pw_protocol_native0_pod_from_v2(pw_resource_get_client(this->resource), params[i]) : NULL;
#  474|   

Error: CPPCHECK_WARNING (CWE-190): [#def645]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def646]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def647]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def648]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def649]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def650]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def651]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def652]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def653]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def654]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def655]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def656]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def657]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def658]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def659]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def660]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def661]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def662]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def663]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def664]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def665]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def666]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:1215: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1213|   {
# 1214|   	struct spa_source *source = user_data;
# 1215|-> 	spa_loop_remove_source(loop, source);
# 1216|   	return 0;
# 1217|   }

Error: CPPCHECK_WARNING (CWE-190): [#def667]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:1232: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1230|   
# 1231|   	if (node->data_source.fd != -1) {
# 1232|-> 		spa_loop_invoke(node->data_loop,
# 1233|   				do_remove_source,
# 1234|   				SPA_ID_INVALID,

Error: CPPCHECK_WARNING (CWE-190): [#def668]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:1261: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1259|   	impl->other_fds[1] = impl->fds[0];
# 1260|   
# 1261|-> 	spa_loop_add_source(impl->node.data_loop, &impl->node.data_source);
# 1262|   	pw_log_debug("client-node %p: transport fd %d %d", node, impl->fds[0], impl->fds[1]);
# 1263|   

Error: CPPCHECK_WARNING (CWE-190): [#def669]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def670]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def671]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def672]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def673]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def674]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def675]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def676]
pipewire-1.2.6-build/pipewire-1.2.6/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-457): [#def677]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain.c:1315: warning[uninitvar]: Uninitialized variable: soft_vols
# 1313|   		spa_pod_builder_prop(&b.b, SPA_PROP_softVolumes, 0);
# 1314|   		spa_pod_builder_array(&b.b, sizeof(float), SPA_TYPE_Float,
# 1315|-> 				vol->n_volumes, soft_vols);
# 1316|   		param = spa_pod_builder_pop(&b.b, &f[0]);
# 1317|   

Error: COMPILER_WARNING: [#def678]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/dsp-ops-avx.c: scope_hint: In function ‘dsp_sum_avx’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/dsp-ops-avx.c:26:31: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI
#   24|   	    SPA_LIKELY(SPA_IS_ALIGNED(b, 32))) {
#   25|   		for (n = 0; n < unrolled; n += 32) {
#   26|-> 			in[0] = _mm256_load_ps(&a[n+ 0]);
#   27|   			in[1] = _mm256_load_ps(&a[n+ 8]);
#   28|   			in[2] = _mm256_load_ps(&a[n+16]);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def679]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c: scope_hint: In function ‘ladspa_make_desc’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c:141:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘desc’
#  139|   
#  140|   	desc = calloc(1, sizeof(*desc));
#  141|-> 	desc->d = d;
#  142|   
#  143|   	desc->desc.instantiate = ladspa_instantiate;

Error: GCC_ANALYZER_WARNING (CWE-476): [#def680]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c:159:43: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘calloc(*<unknown>.PortCount & 4294967295, 48)’
#  157|   
#  158|   	for (i = 0; i < desc->desc.n_ports; i++) {
#  159|-> 		desc->desc.ports[i].index = i;
#  160|   		desc->desc.ports[i].name = d->PortNames[i];
#  161|   		desc->desc.ports[i].flags = d->PortDescriptors[i];

Error: GCC_ANALYZER_WARNING (CWE-401): [#def681]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c:164:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
#  162|   		ladspa_port_update_ranges(desc, &desc->desc.ports[i]);
#  163|   	}
#  164|-> 	return &desc->desc;
#  165|   }
#  166|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def682]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c: scope_hint: In function ‘ladspa_handle_load_by_path’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c:202:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:175:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/ladspa_plugin.c:191:9: note: in expansion of macro ‘pw_log_info’
#  200|   	p->plugin.unload = ladspa_unload;
#  201|   
#  202|-> 	return &p->plugin;
#  203|   
#  204|   exit:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def683]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c: scope_hint: In function ‘uri_table_map’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:69:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘p’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c: scope_hint: In function ‘uri_table_map’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:185:23: note: in expansion of macro ‘context_map’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:67:9: note: in expansion of macro ‘pw_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:8: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:52:33: note: in expansion of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:53:69: note: in expansion of macro ‘pw_array_end’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:57:14: note: in expansion of macro ‘pw_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:67:9: note: in expansion of macro ‘pw_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:57:14: note: in expansion of macro ‘pw_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:67:9: note: in expansion of macro ‘pw_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:10: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:185:23: note: in expansion of macro ‘context_map’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:186:25: note: in expansion of macro ‘context_map’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:67:9: note: in expansion of macro ‘pw_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:57:14: note: in expansion of macro ‘pw_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:67:9: note: in expansion of macro ‘pw_array_for_each’
#   67|   	pw_array_for_each(p, &table->array) {
#   68|   		i++;
#   69|-> 		if (spa_streq(*p, uri))
#   70|   			goto done;
#   71|   	}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def684]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c: scope_hint: In function ‘pw_array_add_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:72:9: warning[-Wanalyzer-malloc-leak]: leak of ‘strdup(uri)’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c: scope_hint: In function ‘pw_array_add_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:185:23: note: in expansion of macro ‘context_map’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:57:14: note: in expansion of macro ‘pw_array_check’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:67:9: note: in expansion of macro ‘pw_array_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
#   70|   			goto done;
#   71|   	}
#   72|-> 	pw_array_add_ptr(&table->array, strdup(uri));
#   73|   	i =  pw_array_get_len(&table->array, char*);
#   74|   done:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def685]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c: scope_hint: In function ‘lv2_make_desc’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:433:27: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘fp’
#  431|   		struct fc_port *fp = &desc->desc.ports[i];
#  432|   
#  433|-> 		fp->index = i;
#  434|   		fp->name = strdup(lilv_node_as_string(symbol));
#  435|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def686]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:451:16: warning[-Wanalyzer-malloc-leak]: leak of ‘desc’
#  449|   		fp->def = controls[i];
#  450|   	}
#  451|-> 	return &desc->desc;
#  452|   }
#  453|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def687]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c: scope_hint: In function ‘pipewire__filter_chain_plugin_load’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/lv2_plugin.c:504:16: warning[-Wanalyzer-malloc-leak]: leak of ‘p’
#  502|   	p->plugin.unload = lv2_unload;
#  503|   
#  504|-> 	return &p->plugin;
#  505|   
#  506|   error_unref:

Error: GCC_ANALYZER_WARNING (CWE-476): [#def688]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c: scope_hint: In function ‘rffti1_ps’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c:1294:43: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c:1415:21: note: in expansion of macro ‘new_setup_simd’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c:64: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c: scope_hint: In function ‘rffti1_ps’
# 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): [#def689]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c: scope_hint: In function ‘new_setup_sse’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c:1429:14: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘s’
# 1427|   	}
# 1428|   	//assert((N % 32) == 0);
# 1429|-> 	s->N = N;
# 1430|   	s->transform = transform;
# 1431|   	/* nb of complex simd vectors */

Error: GCC_ANALYZER_WARNING (CWE-401): [#def690]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c: scope_hint: In function ‘pffft_aligned_malloc’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-filter-chain/pffft.c:2313:27: warning[-Wanalyzer-malloc-leak]: leak of ‘p0’
# 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: CPPCHECK_WARNING (CWE-190): [#def691]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-metadata.c:103: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  101|   		}
#  102|   		if (k != NULL && v != NULL)
#  103|-> 			pw_metadata_set_property(metadata, id, k, t, v);
#  104|   		free(k);
#  105|   		free(v);

Error: CPPCHECK_WARNING (CWE-190): [#def692]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def693]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-metadata/metadata.c:82: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   80|   		goto error;
#   81|   
#   82|-> 	pw_metadata_set_property(impl->metadata, subject, key, type, value);
#   83|   	return 0;
#   84|   

Error: CPPCHECK_WARNING (CWE-190): [#def694]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-metadata/metadata.c:95: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   93|   	struct resource_data *d = object;
#   94|   	struct impl *impl = d->impl;
#   95|-> 	pw_metadata_clear(impl->metadata);
#   96|   	return 0;
#   97|   }

Error: CPPCHECK_WARNING (CWE-190): [#def695]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-metadata/metadata.c:181: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  179|   
#  180|   	/* implementation events -> resource */
#  181|-> 	pw_metadata_add_listener(impl->metadata,
#  182|   			&data->metadata_listener,
#  183|   			&metadata_events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def696]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-metadata/metadata.c:215: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  213|   	pw_log_trace("Clearing properties for global %u in %u",
#  214|   				 pw_global_get_id(global), pw_global_get_id(impl->global));
#  215|-> 	pw_metadata_set_property(impl->metadata,
#  216|   			pw_global_get_id(global), NULL, NULL, NULL);
#  217|   }

Error: CPPCHECK_WARNING (CWE-190): [#def697]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def698]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def699]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def700]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def701]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def702]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def703]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def704]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-metadata/proxy-metadata.c:68: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   66|   	pw_proxy_add_object_listener(proxy, &data->object_methods,
#   67|   			miface->cb.funcs, miface->cb.data);
#   68|-> 	pw_metadata_add_listener(meta, &data->object_listener,
#   69|   			iface->cb.funcs, iface->cb.data);
#   70|   

Error: CPPCHECK_WARNING (CWE-457): [#def705]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-pipe-tunnel.c:216: error[uninitvar]: Uninitialized variable: &now
#  214|   	if (spa_system_clock_gettime(impl->data_loop->system, CLOCK_MONOTONIC, &now) < 0)
#  215|   		return 0;
#  216|-> 	return SPA_TIMESPEC_TO_NSEC(&now);
#  217|   }
#  218|   

Error: CPPCHECK_WARNING (CWE-190): [#def706]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:449: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  447|   
#  448|   	pw_log_debug("%p: busy changed %d", client->protocol, busy);
#  449|-> 	pw_loop_update_io(client->context->main_loop, c->source, mask);
#  450|   
#  451|   	if (!busy)

Error: CPPCHECK_WARNING (CWE-190): [#def707]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:452: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  450|   
#  451|   	if (!busy)
#  452|-> 		pw_loop_signal_event(s->loop, s->resume);
#  453|   }
#  454|   

Error: CPPCHECK_WARNING (CWE-190): [#def708]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:491: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  489|   		res = pw_protocol_native_connection_flush(this->connection);
#  490|   		if (res >= 0) {
#  491|-> 			pw_loop_update_io(client->context->main_loop,
#  492|   					this->source, this->source->mask & ~SPA_IO_OUT);
#  493|   		} else if (res != -EAGAIN)

Error: CPPCHECK_WARNING (CWE-190): [#def709]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:520: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  518|   
#  519|   	if (this->source)
#  520|-> 		pw_loop_destroy_source(client->context->main_loop, this->source);
#  521|   	if (this->connection)
#  522|   		pw_protocol_native_connection_destroy(this->connection);

Error: CPPCHECK_WARNING (CWE-190): [#def710]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:569: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  567|   
#  568|   	if (this->source && !(this->source->mask & SPA_IO_OUT)) {
#  569|-> 		pw_loop_update_io(client->context->main_loop,
#  570|   				this->source, this->source->mask | SPA_IO_OUT);
#  571|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def711]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:678: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  676|   	pw_impl_client_add_listener(client, &this->client_listener, &client_events, this);
#  677|   
#  678|-> 	this->source = pw_loop_add_io(pw_context_get_main_loop(context),
#  679|   				      fd, SPA_IO_ERR | SPA_IO_HUP, true,
#  680|   				      connection_data, this);

Error: CPPCHECK_WARNING (CWE-190): [#def712]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:701: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  699|   
#  700|   	if (!client->busy)
#  701|-> 		pw_loop_update_io(pw_context_get_main_loop(context),
#  702|   				this->source, this->source->mask | SPA_IO_IN);
#  703|   

Error: CPPCHECK_WARNING (CWE-190): [#def713]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:974: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  972|   		goto error_close;
#  973|   	}
#  974|-> 	s->source = pw_loop_add_io(s->loop, fd, SPA_IO_IN, true, socket_data, s);
#  975|   	if (s->source == NULL) {
#  976|   		res = -errno;

Error: CPPCHECK_WARNING (CWE-190): [#def714]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1127: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1125|   		res = pw_protocol_native_connection_flush(conn);
# 1126|   		if (res >= 0) {
# 1127|-> 			pw_loop_update_io(loop, impl->source,
# 1128|   					impl->source->mask & ~SPA_IO_OUT);
# 1129|   		} else if (res != -EAGAIN)

Error: CPPCHECK_WARNING (CWE-190): [#def715]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1140: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1138|   	pw_log_debug("%p: got connection error %d (%s)", impl, res, spa_strerror(res));
# 1139|   	if (impl->source) {
# 1140|-> 		pw_loop_destroy_source(loop, impl->source);
# 1141|   		impl->source = NULL;
# 1142|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def716]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1143: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1141|   		impl->source = NULL;
# 1142|   	}
# 1143|-> 	pw_proxy_notify(core_proxy,
# 1144|   			struct pw_core_events, error, 0, 0,
# 1145|   			this->recv_seq, res, "connection error");

Error: CPPCHECK_WARNING (CWE-190): [#def717]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1155|   
# 1156|   	pw_protocol_native_connection_set_fd(impl->connection, fd);
# 1157|-> 	impl->source = pw_loop_add_io(impl->context->main_loop,
# 1158|   					fd,
# 1159|   					SPA_IO_IN | SPA_IO_OUT | SPA_IO_HUP | SPA_IO_ERR,

Error: CPPCHECK_WARNING (CWE-190): [#def718]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1174: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1172|   
# 1173|   	if (impl->source)
# 1174|->                 pw_loop_destroy_source(impl->context->main_loop, impl->source);
# 1175|   	impl->source = NULL;
# 1176|   

Error: CPPCHECK_WARNING (CWE-190): [#def719]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1209: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1207|   
# 1208|   	pw_log_debug("%p: paused %d", client->protocol, paused);
# 1209|-> 	pw_loop_update_io(impl->context->main_loop, impl->source, mask);
# 1210|   
# 1211|   	return paused ? 0 : process_remote(impl);

Error: CPPCHECK_WARNING (CWE-190): [#def720]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1270: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1268|   
# 1269|   	if (impl->source && !(impl->source->mask & SPA_IO_OUT)) {
# 1270|-> 		pw_loop_update_io(impl->context->main_loop,
# 1271|   				impl->source, impl->source->mask | SPA_IO_OUT);
# 1272|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def721]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1360: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1358|   
# 1359|   	if (s->source)
# 1360|-> 		pw_loop_destroy_source(s->loop, s->source);
# 1361|   	if (s->resume)
# 1362|   		pw_loop_destroy_source(s->loop, s->resume);

Error: CPPCHECK_WARNING (CWE-190): [#def722]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1360|   		pw_loop_destroy_source(s->loop, s->source);
# 1361|   	if (s->resume)
# 1362|-> 		pw_loop_destroy_source(s->loop, s->resume);
# 1363|   	if (s->close)
# 1364|   		pw_loop_destroy_source(s->loop, s->close);

Error: CPPCHECK_WARNING (CWE-190): [#def723]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1364: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1362|   		pw_loop_destroy_source(s->loop, s->resume);
# 1363|   	if (s->close)
# 1364|-> 		pw_loop_destroy_source(s->loop, s->close);
# 1365|   	if (s->addr.sun_path[0] && !s->activated)
# 1366|   		unlink(s->addr.sun_path);

Error: CPPCHECK_WARNING (CWE-190): [#def724]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1469: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1467|   		goto error;
# 1468|   
# 1469|-> 	if ((s->resume = pw_loop_add_event(s->loop, do_resume, s)) == NULL) {
# 1470|   		res = -errno;
# 1471|   		goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def725]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1514: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1512|   		goto error;
# 1513|   	}
# 1514|-> 	s->source = pw_loop_add_io(s->loop, listen_fd, SPA_IO_IN, true, socket_data, s);
# 1515|   	if (s->source == NULL) {
# 1516|   		res = -errno;

Error: CPPCHECK_WARNING (CWE-190): [#def726]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1519: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1517|   		goto error;
# 1518|   	}
# 1519|-> 	s->close = pw_loop_add_io(s->loop, close_fd, 0, true, close_data, s);
# 1520|   	if (s->close == NULL) {
# 1521|   		res = -errno;

Error: CPPCHECK_WARNING (CWE-190): [#def727]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-native.c:1524: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1522|   		goto error;
# 1523|   	}
# 1524|-> 	if ((s->resume = pw_loop_add_event(s->loop, do_resume, s)) == NULL) {
# 1525|   		res = -errno;
# 1526|   		goto error;

Error: CPPCHECK_WARNING (CWE-190): [#def728]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def729]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def730]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def731]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def732]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def733]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def734]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def735]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def736]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def737]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def738]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def739]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def740]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def741]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def742]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def743]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def744]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def745]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def746]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def747]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def748]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def749]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def750]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def751]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def752]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def753]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def754]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def755]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def756]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def757]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def758]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def759]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def760]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def761]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def762]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def763]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def764]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def765]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def766]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def767]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def768]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def769]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def770]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def771]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def772]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def773]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def774]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def775]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def776]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def777]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def778]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def779]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def780]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def781]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def782]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def783]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def784]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def785]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def786]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def787]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def788]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def789]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def790]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def791]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def792]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def793]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def794]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def795]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def796]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def797]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def798]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def799]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def800]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def801]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def802]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-401): [#def803]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/manager.c: scope_hint: In function ‘pw_manager_new’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/manager.c:767:16: warning[-Wanalyzer-malloc-leak]: leak of ‘m’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/context.h:48: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/protocol.h:26: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.h:90: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/client.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/manager.h:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/manager.c:5: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:243:9: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.h:381:9: note: in expansion of macro ‘spa_interface_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:243:9: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.h:381:9: note: in expansion of macro ‘spa_interface_call_res’
#  765|   			&registry_events, m);
#  766|   
#  767|-> 	return &m->this;
#  768|   }
#  769|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def804]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/message.c: scope_hint: In function ‘ensure_size’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/message.c:402:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/context.h:16: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/buffer.h:21: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/message.c:8: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/message.c: scope_hint: In function ‘ensure_size’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:392:26: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/message.c:834:17: note: in expansion of macro ‘spa_assert’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:279:45: note: in definition of macro ‘SPA_ROUND_UP_N’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/message.c:389:32: note: in expansion of macro ‘SPA_MAX’
#  400|   	m->data = data;
#  401|   	m->allocated = alloc;
#  402|-> 	return size;
#  403|   }
#  404|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def805]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/module.c: scope_hint: In function ‘module_args_add_props’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/module.c:126:16: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘p’
#  124|   	const struct str_map *map;
#  125|   
#  126|-> 	while (*p) {
#  127|   		while (*p && isspace(*p))
#  128|   			p++;

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

Error: GCC_ANALYZER_WARNING (CWE-401): [#def807]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c: scope_hint: In function ‘handle_module_group’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:204:1: warning[-Wanalyzer-malloc-leak]: leak of ‘info.name’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/context.h:16: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/mem.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:8: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:409:22: note: in expansion of macro ‘spa_memzero’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:189:9: note: in expansion of macro ‘spa_zero’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/context.h:49: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/protocol.h:26: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.h:90: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/client.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:9: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/loop.h:131:31: note: in definition of macro ‘spa_loop_method’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.h:48:41: note: in expansion of macro ‘spa_loop_invoke’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/modules/module-gsettings.c:200:9: note: in expansion of macro ‘pw_loop_invoke’
#  202|   
#  203|   	g_object_unref(G_OBJECT(settings));
#  204|-> }
#  205|   
#  206|   static void module_group_callback(GSettings *settings, gchar *key, gpointer user_data)

Error: CPPCHECK_WARNING (CWE-401): [#def808]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def809]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-protocol-pulse/pulse-server.c:1000: error[invalidLifetime]: Using pointer to local variable 'name' that is out of scope.
#  998|   	}
#  999|   	if (subject == PW_ID_CORE && o == client->metadata_routes)
# 1000|-> 		client_update_routes(client, key, value);
# 1001|   }
# 1002|   

Error: CPPCHECK_WARNING (CWE-457): [#def810]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-pulse-tunnel.c:870: warning[uninitvar]: Uninitialized variable: vols
#  868|   	spa_pod_builder_prop(&b, SPA_PROP_channelVolumes, 0);
#  869|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
#  870|-> 			impl->volume.channels, vols);
#  871|   	spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
#  872|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,

Error: CPPCHECK_WARNING (CWE-457): [#def811]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-pulse-tunnel.c:873: warning[uninitvar]: Uninitialized variable: soft_vols
#  871|   	spa_pod_builder_prop(&b, SPA_PROP_softVolumes, 0);
#  872|   	spa_pod_builder_array(&b, sizeof(float), SPA_TYPE_Float,
#  873|-> 			impl->volume.channels, soft_vols);
#  874|   	param = spa_pod_builder_pop(&b, &f[0]);
#  875|   

Error: GCC_ANALYZER_WARNING (CWE-415): [#def812]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop-discover.c: scope_hint: In function ‘free_tunnel’
pipewire-1.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop-discover.c:584:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop-discover.c:584:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop-discover.c:584:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop-discover.c:191:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop-discover.c:191:9: note: in expansion of macro ‘spa_list_consume’
#  181|   	if (t->module)
#  182|   		pw_impl_module_destroy(t->module);
#  183|-> 	free((char *) t->info.name);
#  184|   	free(t);
#  185|   }

Error: COMPILER_WARNING (CWE-252): [#def813]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c: scope_hint: In function ‘handle_connect’
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def814]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:180:17: warning[-Wunused-result]: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’
#  180 |                 asprintf(&client->url, "rtsp://[%s]/%s", local_ip, client->session_id);
#      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#  178|   		asprintf(&client->url, "rtsp://%s/%s", local_ip, client->session_id);
#  179|   	else
#  180|-> 		asprintf(&client->url, "rtsp://[%s]/%s", local_ip, client->session_id);
#  181|   
#  182|   	pw_log_info("connected local ip %s", local_ip);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def815]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c: scope_hint: In function ‘process_header’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:306:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘buf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/result.h:22: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:375:17: note: in expansion of macro ‘pw_log_debug’
#  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-688): [#def816]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c: scope_hint: In function ‘process_content’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:354:17: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:150:9: note: in expansion of macro ‘SPA_LIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:339:41: note: in expansion of macro ‘SPA_MIN’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-raop/rtsp-client.c:13: included_from: Included from here.
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  352|   
#  353|   		void *p = pw_array_add(&client->content, res);
#  354|-> 		memcpy(p, buf, res);
#  355|   
#  356|   		spa_assert((size_t) res <= client->content_length);

Error: COMPILER_WARNING (CWE-252): [#def817]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-rtp-sap.c: scope_hint: In function ‘update_ts_refclk’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-rtp-sap.c:534:25: warning[-Wunused-result]: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’
#  534 |         while (avail--) read(impl->ptp_fd, &tmp, 1);
#      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
#  532|   	ioctl(impl->ptp_fd, FIONREAD, &avail);
#  533|   	uint8_t tmp;
#  534|-> 	while (avail--) read(impl->ptp_fd, &tmp, 1);
#  535|   
#  536|   	struct ptp_management_msg req;

Error: CPPCHECK_WARNING (CWE-190): [#def818]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def819]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def820]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def821]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   {
#  156|   	struct endpoint_stream *this = data;
#  157|-> 	pw_endpoint_stream_resource_info(resource, &this->info);
#  158|   	return 0;
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def822]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c: scope_hint: In function ‘endpoint_stream_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c:170:17: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:370:25: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint-stream.c: scope_hint: In function ‘endpoint_stream_update’
#  189|   		for (i = 0; i < this->n_params; i++) {
#  190|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  191|-> 			endpoint_stream_notify_subscribed(this, i, i+1);
#  192|   		}
#  193|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def823]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def824]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def825]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def826]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def827]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def828]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint.c:174: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  172|   {
#  173|   	struct endpoint *this = data;
#  174|-> 	pw_endpoint_resource_info(resource, &this->info);
#  175|   	return 0;
#  176|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def829]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint.c: scope_hint: In function ‘endpoint_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint.c:208:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint.c:187:17: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:370:25: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-endpoint/endpoint.c: scope_hint: In function ‘endpoint_update’
#  206|   		for (i = 0; i < this->n_params; i++) {
#  207|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  208|-> 			endpoint_notify_subscribed(this, i, i+1);
#  209|   		}
#  210|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def830]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def831]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def832]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def833]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def834]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def835]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/endpoint-link.c:170: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  168|   {
#  169|   	struct endpoint_link *this = data;
#  170|-> 	pw_endpoint_link_resource_info(resource, &this->info);
#  171|   	return 0;
#  172|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def836]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/endpoint-link.c: scope_hint: In function ‘endpoint_link_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/endpoint-link.c:204:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/endpoint-link.c:183:17: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:370:25: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/endpoint-link.c: scope_hint: In function ‘endpoint_link_update’
#  202|   		for (i = 0; i < this->n_params; i++) {
#  203|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  204|-> 			endpoint_link_notify_subscribed(this, i, i+1);
#  205|   		}
#  206|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def837]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def838]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def839]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def840]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def841]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/session.c:157: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  155|   {
#  156|   	struct session *this = data;
#  157|-> 	pw_session_resource_info(resource, &this->info);
#  158|   	return 0;
#  159|   }

Error: GCC_ANALYZER_WARNING (CWE-401): [#def842]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/session.c: scope_hint: In function ‘session_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/session.c:191:25: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/session.c:170:17: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:369:17: note: in expansion of macro ‘SPA_POD_TYPE’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/filter.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/pod/iter.h:370:25: note: in expansion of macro ‘SPA_POD_BODY_SIZE’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/client-session/session.c: scope_hint: In function ‘session_update’
#  189|   		for (i = 0; i < this->n_params; i++) {
#  190|   			this->params[i] = params[i] ? spa_pod_copy(params[i]) : NULL;
#  191|-> 			session_notify_subscribed(this, i, i+1);
#  192|   		}
#  193|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def843]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def844]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def845]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def846]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def847]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def848]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def849]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint-link.c: scope_hint: In function ‘event_info’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint-link.c:297:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def850]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def851]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def852]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def853]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def854]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def855]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def856]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def857]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint-stream.c: scope_hint: In function ‘event_info’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint-stream.c:288:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def858]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def859]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def860]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def861]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def862]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def863]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def864]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def865]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def866]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint.c: scope_hint: In function ‘event_info’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint.c:297:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def867]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def868]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def869]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def870]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def871]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def872]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def873]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def874]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def875]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def876]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def877]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def878]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def879]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def880]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def881]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def882]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def883]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def884]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def885]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def886]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def887]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def888]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def889]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def890]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def891]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def892]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def893]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def894]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def895]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def896]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def897]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def898]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def899]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def900]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def901]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def902]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def903]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def904]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def905]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def906]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def907]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def908]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def909]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def910]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def911]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def912]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def913]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def914]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def915]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def916]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def917]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def918]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def919]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def920]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def921]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def922]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def923]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def924]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def925]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def926]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def927]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def928]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def929]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def930]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def931]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def932]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def933]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def934]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def935]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def936]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def937]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def938]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def939]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def940]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def941]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/session.c: scope_hint: In function ‘event_info’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/session.c:286:35: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def942]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def943]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def944]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/session.c:393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  391|   
#  392|   	/* handle implementation events -> cache + client resources */
#  393|-> 	pw_session_add_listener(impl->session,
#  394|   			&impl->session_listener,
#  395|   			&session_events, impl);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def945]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-snapcast-discover.c: scope_hint: In function ‘create_stream’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-snapcast-discover.c:561:20: warning[-Wanalyzer-malloc-leak]: leak of ‘*t.stream_name’
#  559|   	t->stream_name = strdup(str);
#  560|   
#  561|-> 	if ((str = pw_properties_get(props, "capture")) == NULL)
#  562|   		pw_properties_set(props, "capture", "true");
#  563|   	if ((str = pw_properties_get(props, "capture.props")) == NULL)

Error: GCC_ANALYZER_WARNING (CWE-415): [#def946]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c: scope_hint: In function ‘free_tunnel’
pipewire-1.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:26: note: in expansion of macro ‘pw_log_topic_enabled’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:512:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-zeroconf-discover.c:149:9: note: in expansion of macro ‘spa_list_consume’
#  138|   	if (t->module)
#  139|   		pw_impl_module_destroy(t->module);
#  140|-> 	free((char *) t->info.name);
#  141|   
#  142|   	free(t);

Error: CPPCHECK_WARNING (CWE-190): [#def947]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/spa/spa-node.c:113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  111|   
#  112|   	if (flags & PW_SPA_NODE_FLAG_ASYNC) {
#  113|-> 		impl->init_pending = spa_node_sync(impl->node, res);
#  114|   	} else {
#  115|   		complete_init(impl);

Error: CPPCHECK_WARNING (CWE-190): [#def948]
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/spa/spa-node.c:207: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  205|   	}
#  206|   
#  207|-> 	if ((res = spa_node_set_param(spa_node, SPA_PARAM_Props, 0, props)) < 0) {
#  208|   		pw_log_debug("spa_node_set_props failed: %s", spa_strerror(res));
#  209|   		return res;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def949]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:76:19: warning[-Wanalyzer-malloc-leak]: leak of ‘map.items.data’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-map.c:5: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/test-map.c: scope_hint: In function ‘pw_array_clear’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h: scope_hint: In function ‘pw_array_clear’
#   74|   static inline void pw_array_init(struct pw_array *arr, size_t extend)
#   75|   {
#   76|-> 	arr->data = NULL;
#   77|   	arr->size = arr->alloc = 0;
#   78|   	arr->extend = extend;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def950]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:25: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h: scope_hint: In function ‘pw_array_add’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:135:19: warning[-Wanalyzer-malloc-leak]: leak of ‘*impl.mems.data’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/node/node.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:648:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:649:9: note: in expansion of macro ‘spa_return_val_if_fail’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:48:43: note: in expansion of macro ‘CHECK_IN_PORT_ID’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:50:43: note: in expansion of macro ‘CHECK_IN_PORT’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:649:32: note: in expansion of macro ‘CHECK_PORT’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-client-node/v0/client-node.c:669:30: note: in expansion of macro ‘SPA_PTRDIFF’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
#  133|   
#  134|   	p = SPA_PTROFF(arr->data, arr->size, void);
#  135|-> 	arr->size += size;
#  136|   
#  137|   	return p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def951]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h: scope_hint: In function ‘pw_array_add’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:135:19: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:9: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
#  133|   
#  134|   	p = SPA_PTROFF(arr->data, arr->size, void);
#  135|-> 	arr->size += size;
#  136|   
#  137|   	return p;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def952]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint.c:6: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h: scope_hint: In function ‘pw_array_add_ptr’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:146:24: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/client.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/src/modules/module-session-manager/endpoint.c:345:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:12: included_from: Included from here.
#  144|   	void **p = (void **)pw_array_add(arr, sizeof(void*));
#  145|   	if (p == NULL)
#  146|-> 		return -errno;
#  147|   	*p = ptr;
#  148|   	return 0;

Error: CPPCHECK_WARNING (CWE-457): [#def953]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def954]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/context.c:412: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  410|   		if (pw_properties_get(properties, PW_KEY_CPU_MAX_ALIGN) == NULL)
#  411|   			pw_properties_setf(properties, PW_KEY_CPU_MAX_ALIGN,
#  412|-> 				"%u", spa_cpu_get_max_align(cpu));
#  413|   		impl->cpu_count = spa_cpu_get_count(cpu);
#  414|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def955]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/context.c:413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  411|   			pw_properties_setf(properties, PW_KEY_CPU_MAX_ALIGN,
#  412|   				"%u", spa_cpu_get_max_align(cpu));
#  413|-> 		impl->cpu_count = spa_cpu_get_count(cpu);
#  414|   	}
#  415|   

Error: CPPCHECK_WARNING (CWE-190): [#def956]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/context.c:544: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  542|   
#  543|   	pw_log_debug("%p: destroy", context);
#  544|-> 	pw_context_emit_destroy(context);
#  545|   
#  546|   	spa_list_consume(core, &context->core_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def957]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/context.c:577: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  575|   
#  576|   	pw_log_debug("%p: free", context);
#  577|-> 	pw_context_emit_free(context);
#  578|   
#  579|   	for (i = 0; i < impl->n_data_loops; i++) {

Error: CPPCHECK_WARNING (CWE-190): [#def958]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def959]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def960]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def961]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def962]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/control.c:131: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  129|   
#  130|   	if (port->mix) {
#  131|-> 		res = spa_node_port_set_io(port->mix, port->direction, mix, id, data, size);
#  132|   		if (SPA_RESULT_IS_OK(res))
#  133|   			return res;

Error: CPPCHECK_WARNING (CWE-190): [#def963]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/control.c:136: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  134|   	}
#  135|   
#  136|-> 	if ((res = spa_node_port_set_io(port->node->node,
#  137|   			port->direction, port->port_id,
#  138|   			id, data, size)) < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def964]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def965]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def966]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def967]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def968]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:27: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   25|   	struct pw_core *this = data;
#   26|   	pw_log_debug("%p: object %u ping %u", this, id, seq);
#   27|-> 	pw_core_pong(this, id, seq);
#   28|   }
#   29|   

Error: CPPCHECK_WARNING (CWE-190): [#def969]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:39: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   37|   	proxy = pw_map_lookup(&this->objects, id);
#   38|   	if (proxy)
#   39|-> 		pw_proxy_emit_done(proxy, seq);
#   40|   }
#   41|   

Error: CPPCHECK_WARNING (CWE-190): [#def970]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:53: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   51|   			seq, res, spa_strerror(res), message);
#   52|   	if (proxy)
#   53|-> 		pw_proxy_emit_error(proxy, seq, res, message);
#   54|   }
#   55|   

Error: CPPCHECK_WARNING (CWE-190): [#def971]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:149: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  147|   
#  148|   	if (core->client)
#  149|-> 		pw_client_update_properties(core->client, &core->properties->dict);
#  150|   
#  151|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def972]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:358: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  356|   	}
#  357|   
#  358|-> 	pw_core_add_listener(p, &p->core_listener, &core_events, p);
#  359|   	pw_proxy_add_listener(&p->proxy, &p->proxy_core_listener, &proxy_core_events, p);
#  360|   

Error: CPPCHECK_WARNING (CWE-190): [#def973]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:361: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  359|   	pw_proxy_add_listener(&p->proxy, &p->proxy_core_listener, &proxy_core_events, p);
#  360|   
#  361|-> 	pw_core_hello(p, PW_VERSION_CORE);
#  362|   	pw_client_update_properties(p->client, &p->properties->dict);
#  363|   

Error: CPPCHECK_WARNING (CWE-190): [#def974]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.c:362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  360|   
#  361|   	pw_core_hello(p, PW_VERSION_CORE);
#  362|-> 	pw_client_update_properties(p->client, &p->properties->dict);
#  363|   
#  364|   	spa_list_append(&context->core_list, &p->link);

Error: CPPCHECK_WARNING (CWE-190): [#def975]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.h:361: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  359|   	vsnprintf(buffer, sizeof(buffer), message, args);
#  360|   	buffer[1023] = '\0';
#  361|-> 	return pw_core_error(core, id, seq, res, buffer);
#  362|   }
#  363|   

Error: CPPCHECK_WARNING (CWE-190): [#def976]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.h:381: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  379|   {
#  380|   	struct pw_registry *res = NULL;
#  381|-> 	spa_interface_call_res((struct spa_interface*)core,
#  382|   			struct pw_core_methods, res,
#  383|   			get_registry, 0, version, user_data_size);

Error: CPPCHECK_WARNING (CWE-190): [#def977]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.h:396: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  394|   {
#  395|   	void *res = NULL;
#  396|-> 	spa_interface_call_res((struct spa_interface*)core,
#  397|   			struct pw_core_methods, res,
#  398|   			create_object, 0, factory_name,

Error: CPPCHECK_WARNING (CWE-190): [#def978]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/core.h:537: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  535|   {
#  536|   	void *res = NULL;
#  537|-> 	spa_interface_call_res((struct spa_interface*)registry,
#  538|   			struct pw_registry_methods, res,
#  539|   			bind, 0, id, type, version, user_data_size);

Error: CPPCHECK_WARNING (CWE-190): [#def979]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/data-loop.c:49: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   47|   	pw_log_debug("%p: leave thread", this);
#   48|   	this->running = false;
#   49|-> 	pw_loop_leave(this->loop);
#   50|   }
#   51|   

Error: CPPCHECK_WARNING (CWE-190): [#def980]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/data-loop.c:62: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   60|   
#   61|   	pw_log_debug("%p: enter thread", this);
#   62|-> 	pw_loop_enter(this->loop);
#   63|   
#   64|   	pthread_cleanup_push(thread_cleanup, this);

Error: CPPCHECK_WARNING (CWE-190): [#def981]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def982]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/data-loop.c:283: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  281|   		} else {
#  282|   			pw_log_debug("%p signal", loop);
#  283|-> 			pw_loop_invoke(loop->loop, do_stop, 1, NULL, 0, false, loop);
#  284|   		}
#  285|   		pw_log_debug("%p join", loop);

Error: CPPCHECK_WARNING (CWE-190): [#def983]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/data-loop.c:323: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  321|   		bool block, void *user_data)
#  322|   {
#  323|-> 	return pw_loop_invoke(loop->loop, func, seq, data, size, block, user_data);
#  324|   }
#  325|   

Error: CPPCHECK_WARNING (CWE-190): [#def984]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/client-node.h:322: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  320|   {
#  321|   	struct pw_node *res = NULL;
#  322|-> 	spa_interface_call_res((struct spa_interface*)p,
#  323|   			struct pw_client_node_methods, res,
#  324|   			get_node, 0, version, user_data_size);

Error: GCC_ANALYZER_WARNING (CWE-401): [#def985]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h: scope_hint: In function ‘pw_session_info_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:55:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
#   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): [#def986]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:42:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
#   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): [#def987]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
#   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-688): [#def988]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*info.params’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:42:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   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-688): [#def989]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:61:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(size)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#   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): [#def990]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h: scope_hint: In function ‘pw_endpoint_info_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:125:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
#  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): [#def991]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:131:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:106:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
#  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-688): [#def992]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:131:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*info.params’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:106:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  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-688): [#def993]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:131:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(size)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  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): [#def994]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h: scope_hint: In function ‘pw_endpoint_stream_info_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:183:35: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.link_params’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:176:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
#  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): [#def995]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:194:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
#  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): [#def996]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:200:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:176:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
#  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-688): [#def997]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:200:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*info.params’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:176:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  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-688): [#def998]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:200:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(size)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  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): [#def999]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h: scope_hint: In function ‘pw_endpoint_link_info_update’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:257:29: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.error’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:249:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
#  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): [#def1000]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:267:12: warning[-Wanalyzer-malloc-leak]: leak of ‘ext’
#  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): [#def1001]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:273:25: warning[-Wanalyzer-malloc-leak]: leak of ‘*info.params’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:249:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
#  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-688): [#def1002]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:273:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘*info.params’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:249:23: note: in expansion of macro ‘SPA_CONTAINER_OF’
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  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-688): [#def1003]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/extensions/session-manager/introspect-funcs.h:273:25: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘malloc(size)’ where non-null expected
<built-in>: note: argument 1 of ‘__builtin_memcpy’ must be non-null
#  271|   			size_t size = info->n_params * sizeof(struct spa_param_info);
#  272|   			info->params = (struct spa_param_info *) malloc(size);
#  273|-> 			memcpy(info->params, update->params, size);
#  274|   		}
#  275|   		else

Error: CPPCHECK_WARNING (CWE-190): [#def1004]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  411|   
#  412|   		filter->state = state;
#  413|-> 		pw_filter_emit_state_changed(filter, old, state, error);
#  414|   	}
#  415|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def1005]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:452: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  450|   		spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
#  451|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  452|-> 			spa_node_emit_result(&d->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  453|   			count++;
#  454|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1006]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:475: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  473|   	struct pw_filter *filter = &impl->this;
#  474|   	if (impl->in_emit_param_changed++ == 0)
#  475|-> 		pw_filter_emit_param_changed(filter, port, id, param);
#  476|   	impl->in_emit_param_changed--;
#  477|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1007]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:492: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  490|   	pw_log_debug("%p: io %d %p/%zd", impl, id, data, size);
#  491|   
#  492|-> 	pw_filter_emit_io_changed(&impl->this, NULL, id, data, size);
#  493|   
#  494|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1008]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:510: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  508|   	case SPA_NODE_COMMAND_Flush:
#  509|   	case SPA_NODE_COMMAND_Pause:
#  510|-> 		pw_loop_invoke(impl->main_loop,
#  511|   			NULL, 0, NULL, 0, false, impl);
#  512|   		if (filter->state == PW_FILTER_STATE_STREAMING && id != SPA_NODE_COMMAND_Flush) {

Error: CPPCHECK_WARNING (CWE-190): [#def1009]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:545: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  543|   			}
#  544|   		}
#  545|-> 		spa_node_emit_info(&d->hooks, &d->info);
#  546|   	}
#  547|   	d->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1010]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:565: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  563|   			}
#  564|   		}
#  565|-> 		spa_node_emit_port_info(&d->hooks, p->direction, p->id, &p->info);
#  566|   	}
#  567|   	p->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1011]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:622: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  620|   	}
#  621|   
#  622|-> 	pw_filter_emit_io_changed(&impl->this, port->user_data, id, data, size);
#  623|   
#  624|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1012]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:746: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  744|   
#  745|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_ADDED))
#  746|-> 			pw_filter_emit_remove_buffer(&impl->this, port->user_data, &b->this);
#  747|   
#  748|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_MAPPED)) {

Error: CPPCHECK_WARNING (CWE-190): [#def1013]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:953: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  951|   
#  952|   		SPA_FLAG_SET(b->flags, BUFFER_FLAG_ADDED);
#  953|-> 		pw_filter_emit_add_buffer(filter, port->user_data, &b->this);
#  954|   	}
#  955|   

Error: CPPCHECK_WARNING (CWE-190): [#def1014]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:991: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  989|   	struct pw_filter *filter = &impl->this;
#  990|   	pw_log_trace("%p: drained", filter);
#  991|-> 	pw_filter_emit_drained(filter);
#  992|   	return 0;
#  993|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1015]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:997: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  995|   static void call_drained(struct filter *impl)
#  996|   {
#  997|-> 	pw_loop_invoke(impl->main_loop,
#  998|   		do_call_drained, 1, NULL, 0, false, impl);
#  999|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1016]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:1125: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1123|   	 * If this is supposed to be a permanent error, the app should
# 1124|   	 * do a pw_filter_set_error() */
# 1125|-> 	pw_filter_emit_state_changed(filter, filter->state,
# 1126|   			PW_FILTER_STATE_ERROR, message);
# 1127|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1017]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:1272: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1270|   	this->core = core;
# 1271|   	spa_list_append(&this->core->filter_list, &this->link);
# 1272|-> 	pw_core_add_listener(core,
# 1273|   			&this->core_listener, &core_events, this);
# 1274|   

Error: CPPCHECK_WARNING (CWE-190): [#def1018]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:1375: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1373|   {
# 1374|   	spa_list_remove(&port->link);
# 1375|-> 	spa_node_emit_port_info(&impl->hooks, port->direction, port->id, NULL);
# 1376|   	pw_map_remove(&impl->ports[port->direction], port->id);
# 1377|   	clear_buffers(port);

Error: CPPCHECK_WARNING (CWE-190): [#def1019]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:1393: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1391|   	pw_log_debug("%p: destroy", filter);
# 1392|   
# 1393|-> 	pw_filter_emit_destroy(filter);
# 1394|   
# 1395|   	if (!impl->disconnecting)

Error: CPPCHECK_WARNING (CWE-190): [#def1020]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:1440: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1438|   	struct filter *impl = hook->priv;
# 1439|   	if (impl->data_loop)
# 1440|-> 		pw_loop_invoke(impl->data_loop, do_remove_callbacks, 1, NULL, 0, true, impl);
# 1441|   	else
# 1442|   		spa_zero(impl->rt_callbacks);

Error: CPPCHECK_WARNING (CWE-190): [#def1021]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:1643: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1641|   		}
# 1642|   		spa_list_append(&filter->core->filter_list, &filter->link);
# 1643|-> 		pw_core_add_listener(filter->core,
# 1644|   				&filter->core_listener, &core_events, filter);
# 1645|   		impl->disconnect_core = true;

Error: CPPCHECK_WARNING (CWE-190): [#def1022]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2056: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2054|   {
# 2055|   	struct filter *impl = SPA_CONTAINER_OF(filter, struct filter, this);
# 2056|-> 	pw_loop_invoke(impl->data_loop,
# 2057|   			drain ? do_drain : do_flush, 1, NULL, 0, true, impl);
# 2058|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1023]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2084: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2082|   
# 2083|   	spa_pod_builder_init(&b, buffer, sizeof(buffer));
# 2084|-> 	spa_node_emit_event(&impl->hooks,
# 2085|   			spa_pod_builder_add_object(&b,
# 2086|   				SPA_TYPE_EVENT_Node, SPA_NODE_EVENT_RequestProcess));

Error: CPPCHECK_WARNING (CWE-190): [#def1024]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2101: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2099|   		pw_impl_node_trigger(filter->node);
# 2100|   	} else if (filter->node->driving) {
# 2101|-> 		res = pw_loop_invoke(impl->data_loop,
# 2102|   			do_trigger_process, 1, NULL, 0, false, impl);
# 2103|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def1025]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/filter.c:2104: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2102|   			do_trigger_process, 1, NULL, 0, false, impl);
# 2103|   	} else {
# 2104|-> 		res = pw_loop_invoke(impl->main_loop,
# 2105|   			do_trigger_request_process, 1, NULL, 0, false, impl);
# 2106|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1026]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1027]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1028]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1029]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1030]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1031]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1032]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1033]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1034]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1035]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1036]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1037]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:217: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  215|   	client->info.change_mask |= PW_CLIENT_CHANGE_MASK_PROPS;
#  216|   
#  217|-> 	pw_impl_client_emit_info_changed(client, &client->info);
#  218|   
#  219|   	if (client->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1038]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:221: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  219|   	if (client->global)
#  220|   		spa_list_for_each(resource, &client->global->resource_list, link)
#  221|-> 			pw_client_resource_info(resource, &client->info);
#  222|   
#  223|   	client->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1039]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  252|   	current = client->context->current_client;
#  253|   	client->context->current_client = NULL;
#  254|-> 	pw_context_emit_check_access(client->context, client);
#  255|   	client->context->current_client = current;
#  256|   

Error: CPPCHECK_WARNING (CWE-190): [#def1040]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:300: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  298|   		num = len - index;
#  299|   
#  300|-> 	pw_client_resource_permissions(resource, index,
#  301|   			num, pw_array_get_unchecked(&impl->permissions, index, struct pw_permission));
#  302|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1041]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  364|   
#  365|   	this->info.change_mask = PW_CLIENT_CHANGE_MASK_ALL;
#  366|-> 	pw_client_resource_info(resource, &this->info);
#  367|   	this->info.change_mask = 0;
#  368|   

Error: CPPCHECK_WARNING (CWE-190): [#def1042]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:383: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  381|   	pw_log_debug("%p: added block %d", client, block->id);
#  382|   	if (client->core_resource) {
#  383|-> 		pw_core_resource_add_mem(client->core_resource,
#  384|   				block->id, block->type, block->fd,
#  385|   				block->flags & (PW_MEMBLOCK_FLAG_READWRITE | PW_MEMBLOCK_FLAG_UNMAPPABLE));

Error: CPPCHECK_WARNING (CWE-190): [#def1043]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:395: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  393|   	pw_log_debug("%p: removed block %d", client, block->id);
#  394|   	if (client->core_resource)
#  395|-> 		pw_core_resource_remove_mem(client->core_resource, block->id);
#  396|   }
#  397|   

Error: CPPCHECK_WARNING (CWE-190): [#def1044]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:561: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  559|   	pw_global_update_keys(client->global, client->info.props, keys);
#  560|   
#  561|-> 	pw_impl_client_emit_initialized(client);
#  562|   
#  563|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1045]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:638: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  636|   	assert(client->destroyed);
#  637|   
#  638|-> 	pw_impl_client_emit_free(client);
#  639|   
#  640|   	spa_hook_list_clean(&client->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1046]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:668: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  666|   	client->destroyed = true;
#  667|   
#  668|-> 	pw_impl_client_emit_destroy(client);
#  669|   
#  670|   	spa_hook_remove(&impl->context_listener);

Error: CPPCHECK_WARNING (CWE-190): [#def1047]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-client.c:794: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  792|   		pw_log_debug("%p: busy %d", client, busy);
#  793|   		client->busy = busy;
#  794|-> 		pw_impl_client_emit_busy_changed(client, busy);
#  795|   	}
#  796|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1048]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1049]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1050]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1051]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1052]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1053]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1054]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1055]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1056]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1057]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1058]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1059]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1060]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1061]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:215: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  213|   
#  214|   	pw_log_debug("%p: destroy", device);
#  215|-> 	pw_impl_device_emit_destroy(device);
#  216|   
#  217|   	spa_list_consume(od, &device->object_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1062]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:231: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  229|   	}
#  230|   	pw_log_debug("%p: free", device);
#  231|-> 	pw_impl_device_emit_free(device);
#  232|   
#  233|   	pw_param_clear(&impl->param_list, SPA_ID_INVALID);

Error: CPPCHECK_WARNING (CWE-190): [#def1063]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:373: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  371|   
#  372|   		spa_zero(listener);
#  373|-> 		spa_device_add_listener(device->device, &listener,
#  374|   				&device_events, &user_data);
#  375|   		res = spa_device_enum_params(device->device, seq,

Error: CPPCHECK_WARNING (CWE-190): [#def1064]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:375: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  373|   		spa_device_add_listener(device->device, &listener,
#  374|   				&device_events, &user_data);
#  375|-> 		res = spa_device_enum_params(device->device, seq,
#  376|   				param_id, index, max, filter);
#  377|   		spa_hook_remove(&listener);

Error: CPPCHECK_WARNING (CWE-190): [#def1065]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:394: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  392|   	pw_log_debug("%p: set_param id:%d (%s) flags:%08x param:%p", device, id,
#  393|   			spa_debug_type_find_name(spa_type_param, id), flags, param);
#  394|-> 	return spa_device_set_param(device->device, id, flags, param);
#  395|   }
#  396|   

Error: CPPCHECK_WARNING (CWE-190): [#def1066]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:402: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  400|   {
#  401|   	struct resource_data *d = data;
#  402|-> 	pw_device_resource_param(d->resource, seq, id, index, next, param);
#  403|   	return 0;
#  404|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1067]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:449: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  447|   			(filter == NULL && start == 0);
#  448|   		if (data->end == -1)
#  449|-> 			spa_device_add_listener(device->device, &data->listener,
#  450|   				&device_events, data);
#  451|   		data->pi = pw_param_info_find(device->info.params,

Error: CPPCHECK_WARNING (CWE-190): [#def1068]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:455: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  453|   		data->orig_seq = seq;
#  454|   		data->seq = res;
#  455|-> 		data->end = spa_device_sync(device->device, res);
#  456|   	}
#  457|   

Error: CPPCHECK_WARNING (CWE-190): [#def1069]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:504: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  502|   	};
#  503|   
#  504|-> 	if ((res = spa_device_set_param(device->device, id, flags, param)) < 0) {
#  505|   		pw_resource_errorf(resource, res,
#  506|   				"set param id:%d (%s) flags:%08x failed", id,

Error: CPPCHECK_WARNING (CWE-190): [#def1070]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:512: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  510|   		data->data.data = data;
#  511|   		if (data->end == -1)
#  512|-> 			spa_device_add_listener(device->device, &data->listener,
#  513|   				&device_events, data);
#  514|   		data->seq = res;

Error: CPPCHECK_WARNING (CWE-190): [#def1071]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:515: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  513|   				&device_events, data);
#  514|   		data->seq = res;
#  515|-> 		data->end = spa_device_sync(device->device, res);
#  516|   	}
#  517|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def1072]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:556: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  554|   
#  555|   	this->info.change_mask = PW_DEVICE_CHANGE_MASK_ALL;
#  556|-> 	pw_device_resource_info(resource, &this->info);
#  557|   	this->info.change_mask = 0;
#  558|   

Error: CPPCHECK_WARNING (CWE-190): [#def1073]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:623: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  621|   	pw_global_update_keys(device->global, device->info.props, keys);
#  622|   
#  623|-> 	pw_impl_device_emit_initialized(device);
#  624|   
#  625|   	pw_global_add_listener(device->global, &device->global_listener, &global_events, device);

Error: CPPCHECK_WARNING (CWE-190): [#def1074]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:668: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  666|   	struct pw_resource *resource;
#  667|   
#  668|-> 	pw_impl_device_emit_info_changed(device, &device->info);
#  669|   
#  670|   	if (device->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1075]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:672: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  670|   	if (device->global)
#  671|   		spa_list_for_each(resource, &device->global->resource_list, link)
#  672|-> 			pw_device_resource_info(resource, &device->info);
#  673|   
#  674|   	device->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1076]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:724: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  722|   
#  723|   		pw_log_debug("%p: resource %p notify param %d", device, resource, id);
#  724|-> 		pw_device_resource_param(resource, seq, id, index, next, param);
#  725|   	}
#  726|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1077]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-device.c:986: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  984|   	}
#  985|   	device->device = spa_device;
#  986|-> 	res = spa_device_add_listener(device->device,
#  987|   			&device->listener, &device_events, device);
#  988|   

Error: CPPCHECK_WARNING (CWE-190): [#def1078]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-factory.c:66: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   64|   {
#   65|   	pw_log_debug("%p: destroy", factory);
#   66|-> 	pw_impl_factory_emit_destroy(factory);
#   67|   
#   68|   	if (factory->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def1079]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-factory.c:76: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   74|   	}
#   75|   
#   76|-> 	pw_impl_factory_emit_free(factory);
#   77|   	pw_log_debug("%p: free", factory);
#   78|   

Error: CPPCHECK_WARNING (CWE-190): [#def1080]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-factory.c:104: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  102|   
#  103|   	this->info.change_mask = PW_FACTORY_CHANGE_MASK_ALL;
#  104|-> 	pw_factory_resource_info(resource, &this->info);
#  105|   	this->info.change_mask = 0;
#  106|   

Error: CPPCHECK_WARNING (CWE-190): [#def1081]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-factory.c:150: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  148|   	if (factory->global)
#  149|   		spa_list_for_each(resource, &factory->global->resource_list, link)
#  150|-> 			pw_factory_resource_info(resource, &factory->info);
#  151|   	factory->info.change_mask = 0;
#  152|   

Error: CPPCHECK_WARNING (CWE-190): [#def1082]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-factory.c:197: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  195|   	pw_global_update_keys(factory->global, factory->info.props, keys);
#  196|   
#  197|-> 	pw_impl_factory_emit_initialized(factory);
#  198|   
#  199|   	pw_global_add_listener(factory->global, &factory->global_listener, &global_events, factory);

Error: CPPCHECK_WARNING (CWE-190): [#def1083]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-factory.c:253: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  251|   {
#  252|   	void *res = NULL;
#  253|-> 	spa_callbacks_call_res(&factory->impl,
#  254|   			struct pw_impl_factory_implementation,
#  255|   			res, create_object, 0,

Error: CPPCHECK_WARNING (CWE-190): [#def1084]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:62: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   60|   		return;
#   61|   
#   62|-> 	pw_impl_link_emit_info_changed(link, &link->info);
#   63|   
#   64|   	if (link->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1085]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:66: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   64|   	if (link->global)
#   65|   		spa_list_for_each(resource, &link->global->resource_list, link)
#   66|-> 			pw_link_resource_info(resource, &link->info);
#   67|   
#   68|   	link->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1086]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:124: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  122|   	}
#  123|   
#  124|-> 	pw_impl_link_emit_state_changed(link, old, state, error);
#  125|   
#  126|   	link->info.change_mask |= PW_LINK_CHANGE_MASK_STATE;

Error: CPPCHECK_WARNING (CWE-190): [#def1087]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:398: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  396|   		}
#  397|   		if (SPA_RESULT_IS_ASYNC(res)) {
#  398|-> 			res = spa_node_sync(output->node->node, res);
#  399|   			busy_id = pw_work_queue_add(impl->work, &this->output_link, res,
#  400|   					complete_ready, this);

Error: CPPCHECK_WARNING (CWE-190): [#def1088]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:417: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  415|   		}
#  416|   		if (SPA_RESULT_IS_ASYNC(res2)) {
#  417|-> 			res2 = spa_node_sync(input->node->node, res2);
#  418|   			busy_id = pw_work_queue_add(impl->work, &this->input_link, res2,
#  419|   					complete_ready, this);

Error: CPPCHECK_WARNING (CWE-190): [#def1089]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:458: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  456|   			port, port->port_id, mix->port.port_id, id, data, size);
#  457|   
#  458|-> 	if ((res = spa_node_port_set_io(port->mix,
#  459|   			     mix->port.direction,
#  460|   			     mix->port.port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def1090]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:582: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  580|   		}
#  581|   		if (SPA_RESULT_IS_ASYNC(res)) {
#  582|-> 			res = spa_node_sync(output->node->node, res);
#  583|   			busy_id = pw_work_queue_add(impl->work, &this->output_link, res,
#  584|   					complete_paused, this);

Error: CPPCHECK_WARNING (CWE-190): [#def1091]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:605: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  603|   
#  604|   	if (SPA_RESULT_IS_ASYNC(res)) {
#  605|-> 		res = spa_node_sync(input->node->node, res);
#  606|   		busy_id = pw_work_queue_add(impl->work, &this->input_link, res,
#  607|   				complete_paused, this);

Error: CPPCHECK_WARNING (CWE-190): [#def1092]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:710: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  708|   	if (output->busy_count > 0) {
#  709|   		pw_log_debug("%p: output port %p was busy %d", this, output, output->busy_count);
#  710|-> 		res = spa_node_sync(output->node->node, 0);
#  711|   		pw_work_queue_add(impl->work, &this->output_link, res, complete_sync, this);
#  712|   		goto exit;

Error: CPPCHECK_WARNING (CWE-190): [#def1093]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:716: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  714|   	else if (input->busy_count > 0) {
#  715|   		pw_log_debug("%p: input port %p was busy %d", this, input, input->busy_count);
#  716|-> 		res = spa_node_sync(input->node->node, 0);
#  717|   		pw_work_queue_add(impl->work, &this->input_link, res, complete_sync, this);
#  718|   		goto exit;

Error: CPPCHECK_WARNING (CWE-190): [#def1094]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:752: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  750|   
#  751|   	spa_list_remove(&this->input_link);
#  752|-> 	pw_impl_port_emit_link_removed(this->input, this);
#  753|   
#  754|   	pw_impl_port_recalc_latency(this->input);

Error: CPPCHECK_WARNING (CWE-190): [#def1095]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:782: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  780|   
#  781|   	spa_list_remove(&this->output_link);
#  782|-> 	pw_impl_port_emit_link_removed(this->output, this);
#  783|   
#  784|   	pw_impl_port_recalc_latency(this->output);

Error: CPPCHECK_WARNING (CWE-190): [#def1096]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:857: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  855|   
#  856|   	this->info.change_mask = PW_LINK_CHANGE_MASK_ALL;
#  857|-> 	pw_link_resource_info(resource, &this->info);
#  858|   	this->info.change_mask = 0;
#  859|   

Error: CPPCHECK_WARNING (CWE-190): [#def1097]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:1384: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1382|   			output->flags, input->flags, impl->async);
# 1383|   
# 1384|-> 	pw_impl_port_emit_link_added(output, this);
# 1385|   	pw_impl_port_emit_link_added(input, this);
# 1386|   

Error: CPPCHECK_WARNING (CWE-190): [#def1098]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:1385: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1383|   
# 1384|   	pw_impl_port_emit_link_added(output, this);
# 1385|-> 	pw_impl_port_emit_link_added(input, this);
# 1386|   
# 1387|   	try_link_controls(impl, output, input);

Error: CPPCHECK_WARNING (CWE-190): [#def1099]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:1502: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1500|   	pw_global_update_keys(link->global, link->info.props, keys);
# 1501|   
# 1502|-> 	pw_impl_link_emit_initialized(link);
# 1503|   
# 1504|   	pw_global_add_listener(link->global, &link->global_listener, &global_events, link);

Error: CPPCHECK_WARNING (CWE-190): [#def1100]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:1526: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1524|   
# 1525|   	link->destroyed = true;
# 1526|-> 	pw_impl_link_emit_destroy(link);
# 1527|   
# 1528|   	pw_impl_link_deactivate(link);

Error: CPPCHECK_WARNING (CWE-190): [#def1101]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-link.c:1550: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1548|   
# 1549|   	pw_log_debug("%p: free", impl);
# 1550|-> 	pw_impl_link_emit_free(link);
# 1551|   
# 1552|   	pw_work_queue_cancel(impl->work, link, SPA_ID_INVALID);

Error: CPPCHECK_WARNING (CWE-190): [#def1102]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1103]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1104]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1105]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1106]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:330: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  328|   
#  329|   	metadata->metadata = meta;
#  330|-> 	pw_metadata_add_listener(meta, &metadata->metadata_listener,
#  331|   			&metadata_events, metadata);
#  332|   

Error: CPPCHECK_WARNING (CWE-190): [#def1107]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1108]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1109]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1110]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  411|   		goto error;
#  412|   
#  413|-> 	pw_metadata_set_property(impl->metadata, subject, key, type, value);
#  414|   	return 0;
#  415|   

Error: CPPCHECK_WARNING (CWE-190): [#def1111]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:426: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  424|   	struct resource_data *d = object;
#  425|   	struct pw_impl_metadata *impl = d->impl;
#  426|-> 	pw_metadata_clear(impl->metadata);
#  427|   	return 0;
#  428|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1112]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:482: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  480|   
#  481|   	/* implementation events -> resource */
#  482|-> 	pw_metadata_add_listener(this->metadata,
#  483|   			&data->metadata_listener,
#  484|   			&metadata_resource_events, data);

Error: CPPCHECK_WARNING (CWE-190): [#def1113]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:591: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  589|   			const char *value)
#  590|   {
#  591|-> 	return pw_metadata_set_property(metadata->metadata, subject, key, type, value);
#  592|   }
#  593|   

Error: CPPCHECK_WARNING (CWE-190): [#def1114]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:103: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  101|   
#  102|   	this->info.change_mask = PW_MODULE_CHANGE_MASK_ALL;
#  103|-> 	pw_module_resource_info(resource, &this->info);
#  104|   	this->info.change_mask = 0;
#  105|   

Error: CPPCHECK_WARNING (CWE-190): [#def1115]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:240: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  238|   	pw_global_update_keys(this->global, &this->properties->dict, keys);
#  239|   
#  240|-> 	pw_impl_module_emit_initialized(this);
#  241|   
#  242|   	pw_global_add_listener(this->global, &this->global_listener, &global_events, this);

Error: CPPCHECK_WARNING (CWE-190): [#def1116]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:249: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  247|   	pw_global_register(this->global);
#  248|   
#  249|-> 	pw_impl_module_emit_registered(this);
#  250|   
#  251|   	pw_log_debug("%p: loaded module: %s", this, this->info.name);

Error: CPPCHECK_WARNING (CWE-190): [#def1117]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  300|   
#  301|   	pw_log_debug("%p: destroy %s", module, module->info.name);
#  302|-> 	pw_impl_module_emit_destroy(module);
#  303|   
#  304|   	spa_list_remove(&module->link);

Error: CPPCHECK_WARNING (CWE-190): [#def1118]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:312: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  310|   
#  311|   	pw_log_debug("%p: free", module);
#  312|-> 	pw_impl_module_emit_free(module);
#  313|   	free((char *) module->info.name);
#  314|   	free((char *) module->info.filename);

Error: CPPCHECK_WARNING (CWE-190): [#def1119]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-module.c:366: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  364|   	if (module->global)
#  365|   		spa_list_for_each(resource, &module->global->resource_list, link)
#  366|-> 			pw_module_resource_info(resource, &module->info);
#  367|   	module->info.change_mask = 0;
#  368|   

Error: CPPCHECK_WARNING (CWE-190): [#def1120]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:194: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  192|   			pw_log_warn("%p: read failed %m", this);
#  193|   
#  194|-> 		spa_loop_add_source(loop, &this->source);
#  195|   	}
#  196|   	if (!this->remote || this->rt.target.activation->client_version < 1)

Error: CPPCHECK_WARNING (CWE-190): [#def1121]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:209: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  207|   static void add_node_to_graph(struct pw_impl_node *node)
#  208|   {
#  209|-> 	pw_loop_invoke(node->data_loop, do_node_prepare, 1, NULL, 0, true, node);
#  210|   }
#  211|   

Error: CPPCHECK_WARNING (CWE-190): [#def1122]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:237: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  235|   
#  236|   	if (!this->remote)
#  237|-> 		spa_loop_remove_source(loop, &this->source);
#  238|   
#  239|   	spa_list_for_each(t, &this->rt.target_list, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1123]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:248: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  246|   static void remove_node_from_graph(struct pw_impl_node *node)
#  247|   {
#  248|-> 	pw_loop_invoke(node->data_loop, do_node_unprepare, 1, NULL, 0, true, node);
#  249|   }
#  250|   

Error: CPPCHECK_WARNING (CWE-190): [#def1124]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:289: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  287|   	node_deactivate(this);
#  288|   
#  289|-> 	res = spa_node_send_command(this->node,
#  290|   				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Pause));
#  291|   	if (res < 0)

Error: CPPCHECK_WARNING (CWE-190): [#def1125]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:329: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  327|   	if (!(this->driving && this->driver)) {
#  328|   		impl->pending_play = true;
#  329|-> 		res = spa_node_send_command(this->node,
#  330|   			&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Start));
#  331|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def1126]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:350: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  348|   		return;
#  349|   
#  350|-> 	pw_impl_node_emit_info_changed(node, &node->info);
#  351|   
#  352|   	if (node->global && node->info.change_mask != 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def1127]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:355: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  353|   		struct pw_resource *resource;
#  354|   		spa_list_for_each(resource, &node->global->resource_list, link)
#  355|-> 			pw_node_resource_info(resource, &node->info);
#  356|   	}
#  357|   

Error: CPPCHECK_WARNING (CWE-190): [#def1128]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:384: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  382|   
#  383|   		pw_log_debug("%p: resource %p notify param %d", node, resource, id);
#  384|-> 		pw_node_resource_param(resource, seq, id, index, next, param);
#  385|   	}
#  386|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1129]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:433: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  431|   		}
#  432|   		if (node->driving && node->driver) {
#  433|-> 			res = spa_node_send_command(node->node,
#  434|   				&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Start));
#  435|   			if (res < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def1130]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:472: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  470|   		     pw_node_state_as_string(old), pw_node_state_as_string(state));
#  471|   	}
#  472|-> 	pw_impl_node_emit_state_changed(node, old, state, error);
#  473|   
#  474|   	if (emit_pending_request_process) {

Error: CPPCHECK_WARNING (CWE-190): [#def1131]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:477: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  475|   		pw_log_debug("%p: request process:%d", node, node->pending_request_process);
#  476|   		node->pending_request_process = 0;
#  477|-> 		spa_node_send_command(node->node,
#  478|   			    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_RequestProcess));
#  479|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1132]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:512: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  510|   			this->driving, this->driver, this->rt.prepared);
#  511|   
#  512|-> 	res = spa_node_send_command(this->node,
#  513|   				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Suspend));
#  514|   	if (res == -ENOTSUP)

Error: CPPCHECK_WARNING (CWE-190): [#def1133]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:515: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  513|   				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Suspend));
#  514|   	if (res == -ENOTSUP)
#  515|-> 		res = spa_node_send_command(this->node,
#  516|   				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Pause));
#  517|   	if (res < 0 && res != -EIO)

Error: CPPCHECK_WARNING (CWE-190): [#def1134]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:556: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  554|   	struct resource_data *d = data;
#  555|   	pw_log_debug("%p: resource %p reply param %d", d->node, d->resource, seq);
#  556|-> 	pw_node_resource_param(d->resource, seq, id, index, next, param);
#  557|   	return 0;
#  558|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1135]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:634: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  632|   			id, spa_debug_type_find_name(spa_type_param, id), flags);
#  633|   
#  634|-> 	res = spa_node_set_param(node->node, id, flags, param);
#  635|   
#  636|   	if (res < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def1136]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:644: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  642|   		pw_impl_client_set_busy(client, true);
#  643|   		if (data->end == -1)
#  644|-> 			spa_node_add_listener(node->node, &data->listener,
#  645|   				&node_events, data);
#  646|   		data->seq = res;

Error: CPPCHECK_WARNING (CWE-190): [#def1137]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:647: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  645|   				&node_events, data);
#  646|   		data->seq = res;
#  647|-> 		data->end = spa_node_sync(node->node, res);
#  648|   	}
#  649|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1138]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:666: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  664|   		break;
#  665|   	default:
#  666|-> 		spa_node_send_command(node->node, command);
#  667|   		break;
#  668|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1139]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:731: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  729|   
#  730|   	this->info.change_mask = PW_NODE_CHANGE_MASK_ALL;
#  731|-> 	pw_node_resource_info(resource, &this->info);
#  732|   	this->info.change_mask = 0;
#  733|   

Error: CPPCHECK_WARNING (CWE-190): [#def1140]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:798: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  796|   			return -EINVAL;
#  797|   		pw_log_debug("%p: set position %p", this, data);
#  798|-> 		pw_loop_invoke(this->data_loop,
#  799|   				do_update_position, SPA_ID_INVALID, &data, sizeof(void*), true, this);
#  800|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def1141]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:820: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  818|   
#  819|   	spa_list_for_each(port, &this->input_ports, link)
#  820|-> 		spa_node_set_io(port->mix, id, data, size);
#  821|   	spa_list_for_each(port, &this->output_ports, link)
#  822|   		spa_node_set_io(port->mix, id, data, size);

Error: CPPCHECK_WARNING (CWE-190): [#def1142]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:822: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  820|   		spa_node_set_io(port->mix, id, data, size);
#  821|   	spa_list_for_each(port, &this->output_ports, link)
#  822|-> 		spa_node_set_io(port->mix, id, data, size);
#  823|   
#  824|   	res = spa_node_set_io(this->node, id, data, size);

Error: CPPCHECK_WARNING (CWE-190): [#def1143]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:824: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  822|   		spa_node_set_io(port->mix, id, data, size);
#  823|   
#  824|-> 	res = spa_node_set_io(this->node, id, data, size);
#  825|   
#  826|   	if (res >= 0 && !SPA_RESULT_IS_ASYNC(res) && this->rt.position)

Error: CPPCHECK_WARNING (CWE-190): [#def1144]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:855: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  853|   int pw_impl_node_add_target(struct pw_impl_node *node, struct pw_node_target *t)
#  854|   {
#  855|-> 	pw_loop_invoke(node->data_loop,
#  856|   			do_add_target, SPA_ID_INVALID, &node, sizeof(void *), true, t);
#  857|   	if (t->node)

Error: CPPCHECK_WARNING (CWE-190): [#def1145]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:858: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  856|   			do_add_target, SPA_ID_INVALID, &node, sizeof(void *), true, t);
#  857|   	if (t->node)
#  858|-> 		pw_impl_node_emit_peer_added(node, t->node);
#  859|   
#  860|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1146]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:891: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  889|   	/* we also update the target list for remote nodes so that the profiler
#  890|   	 * can inspect the nodes as well */
#  891|-> 	pw_loop_invoke(node->data_loop,
#  892|   			do_remove_target, SPA_ID_INVALID, &node, sizeof(void *), true, t);
#  893|   	if (t->node)

Error: CPPCHECK_WARNING (CWE-190): [#def1147]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:894: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  892|   			do_remove_target, SPA_ID_INVALID, &node, sizeof(void *), true, t);
#  893|   	if (t->node)
#  894|-> 		pw_impl_node_emit_peer_removed(node, t->node);
#  895|   
#  896|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1148]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1000: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  998|   {
#  999|   	pw_log_debug("%p initialized", this);
# 1000|-> 	pw_impl_node_emit_initialized(this);
# 1001|   	node_update_state(this, PW_NODE_STATE_SUSPENDED, 0, NULL);
# 1002|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1149]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1064: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1062|   	node->from_driver_peer = pw_node_peer_ref(driver, node);
# 1063|   
# 1064|-> 	pw_impl_node_emit_driver_changed(node, old, driver);
# 1065|   
# 1066|   	if (no_driver) {

Error: CPPCHECK_WARNING (CWE-190): [#def1150]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1076: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1074|   
# 1075|   	node->info.change_mask |= PW_NODE_CHANGE_MASK_PROPS;
# 1076|-> 	pw_impl_node_emit_info_changed(driver, &node->info);
# 1077|   
# 1078|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1151]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1514: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1512|   		a->signal_time = this->driver_start;
# 1513|   		calculate_stats(this, a);
# 1514|-> 		pw_impl_node_rt_emit_complete(this);
# 1515|   	}
# 1516|   

Error: CPPCHECK_WARNING (CWE-190): [#def1152]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1518: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1516|   
# 1517|   	if (SPA_UNLIKELY(status & SPA_STATUS_DRAINED))
# 1518|-> 		pw_impl_node_rt_emit_drained(this);
# 1519|   
# 1520|   	return status;

Error: CPPCHECK_WARNING (CWE-457): [#def1153]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1547: error[uninitvar]: Uninitialized variable: cmd
# 1545|   		if (SPA_UNLIKELY(spa_system_eventfd_read(data_system, this->source.fd, &cmd) < 0))
# 1546|   			pw_log_warn("%p: read failed %m", this);
# 1547|-> 		else if (SPA_UNLIKELY(cmd > 1)) {
# 1548|   			pw_log_info("(%s-%u) client missed %"PRIu64" wakeups",
# 1549|   				this->name, this->info.id, cmd - 1);

Error: CPPCHECK_WARNING (CWE-190): [#def1154]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1888: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1886|   	        pw_work_queue_complete(impl->work, &impl->this, SPA_RESULT_ASYNC_SEQ(seq), res);
# 1887|   
# 1888|-> 	pw_impl_node_emit_result(node, seq, res, type, result);
# 1889|   }
# 1890|   

Error: CPPCHECK_WARNING (CWE-190): [#def1155]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1897: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1895|   		pw_log_debug("request process %d %d", node->info.state, impl->pending_state);
# 1896|   		if (node->info.state == PW_NODE_STATE_RUNNING) {
# 1897|-> 			spa_node_send_command(node->driver_node->node,
# 1898|   				    &SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_RequestProcess));
# 1899|   		} else if (impl->pending_state == PW_NODE_STATE_RUNNING) {

Error: CPPCHECK_WARNING (CWE-190): [#def1156]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:1931: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1929|   		break;
# 1930|   	}
# 1931|-> 	pw_impl_node_emit_event(node, event);
# 1932|   }
# 1933|   

Error: CPPCHECK_WARNING (CWE-190): [#def1157]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2017: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2015|   	if (SPA_UNLIKELY(a->position.state == SPA_IO_POSITION_STATE_STARTING)) {
# 2016|   		if (!all_ready && --a->sync_left == 0) {
# 2017|-> 			pw_impl_node_rt_emit_timeout(node);
# 2018|   			debug_sync_timeout(node, nsec);
# 2019|   			all_ready = true;

Error: CPPCHECK_WARNING (CWE-190): [#def1158]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2077: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2075|   				/* otherwise, something was wrong and we debug */
# 2076|   				debug_xrun_graph(node, nsec, old_status);
# 2077|-> 				pw_impl_node_rt_emit_incomplete(driver);
# 2078|   			}
# 2079|   			SPA_FLAG_SET(cl->flags, SPA_IO_CLOCK_FLAG_XRUN_RECOVER);

Error: CPPCHECK_WARNING (CWE-190): [#def1159]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2177: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2175|   
# 2176|   	a->position.clock.cycle++;
# 2177|-> 	pw_impl_node_rt_emit_start(node);
# 2178|   
# 2179|   	/* now signal all the nodes we drive */

Error: CPPCHECK_WARNING (CWE-190): [#def1160]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2192: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2190|   		if (p->port_id != port_id)
# 2191|   			continue;
# 2192|-> 		spa_node_port_reuse_buffer(p->mix, 0, buffer_id);
# 2193|   		break;
# 2194|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1161]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2225: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2223|   	}
# 2224|   
# 2225|-> 	pw_impl_node_rt_emit_xrun(this);
# 2226|   
# 2227|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1162]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2276: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2274|   
# 2275|   	node->node = spa_node;
# 2276|-> 	spa_node_set_callbacks(node->node, &node_callbacks, node);
# 2277|   	res = spa_node_add_listener(node->node, &node->listener, &node_events, node);
# 2278|   

Error: CPPCHECK_WARNING (CWE-190): [#def1163]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2277: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2275|   	node->node = spa_node;
# 2276|   	spa_node_set_callbacks(node->node, &node_callbacks, node);
# 2277|-> 	res = spa_node_add_listener(node->node, &node->listener, &node_events, node);
# 2278|   
# 2279|   again:

Error: CPPCHECK_WARNING (CWE-190): [#def1164]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2334: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2332|   {
# 2333|   	struct listener_data d = { .listener = listener, .events = events, .data = data };
# 2334|-> 	pw_loop_invoke(node->data_loop,
# 2335|                          do_add_rt_listener, SPA_ID_INVALID, &d, sizeof(d), false, node);
# 2336|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1165]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2350: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2348|   			  struct spa_hook *listener)
# 2349|   {
# 2350|-> 	pw_loop_invoke(node->data_loop,
# 2351|                          do_remove_listener, SPA_ID_INVALID, NULL, 0, true, listener);
# 2352|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1166]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2380: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2378|   	suspend_node(node);
# 2379|   
# 2380|-> 	pw_impl_node_emit_destroy(node);
# 2381|   
# 2382|   	pw_log_debug("%p: driver node %p", impl, node->driver_node);

Error: CPPCHECK_WARNING (CWE-190): [#def1167]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2404: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2402|   	if (node->node) {
# 2403|   		spa_hook_remove(&node->listener);
# 2404|-> 		spa_node_set_callbacks(node->node, NULL, NULL);
# 2405|   	}
# 2406|   

Error: CPPCHECK_WARNING (CWE-190): [#def1168]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2423: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2421|   
# 2422|   	pw_log_debug("%p: free", node);
# 2423|-> 	pw_impl_node_emit_free(node);
# 2424|   
# 2425|   	spa_hook_list_clean(&node->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1169]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2578: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2576|   
# 2577|   		spa_zero(listener);
# 2578|-> 		spa_node_add_listener(node->node, &listener, &node_events, &user_data);
# 2579|   		res = spa_node_enum_params(node->node, seq,
# 2580|   						param_id, index, max,

Error: CPPCHECK_WARNING (CWE-190): [#def1170]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2579: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2577|   		spa_zero(listener);
# 2578|   		spa_node_add_listener(node->node, &listener, &node_events, &user_data);
# 2579|-> 		res = spa_node_enum_params(node->node, seq,
# 2580|   						param_id, index, max,
# 2581|   						filter);

Error: CPPCHECK_WARNING (CWE-190): [#def1171]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2598: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2596|   	pw_log_debug("%p: set_param id:%d (%s) flags:%08x param:%p", node, id,
# 2597|   			spa_debug_type_find_name(spa_type_param, id), flags, param);
# 2598|-> 	return spa_node_set_param(node->node, id, flags, param);
# 2599|   }
# 2600|   

Error: CPPCHECK_WARNING (CWE-190): [#def1172]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2734: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2732|   
# 2733|   	if (old != state)
# 2734|-> 		pw_impl_node_emit_state_request(node, state);
# 2735|   
# 2736|   	switch (state) {

Error: CPPCHECK_WARNING (CWE-190): [#def1173]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2760: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2758|   
# 2759|   	if (SPA_RESULT_IS_ASYNC(res)) {
# 2760|-> 		res = spa_node_sync(node->node, res);
# 2761|   	}
# 2762|   

Error: CPPCHECK_WARNING (CWE-190): [#def1174]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2809: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2807|   
# 2808|   		node->active = active;
# 2809|-> 		pw_impl_node_emit_active_changed(node, active);
# 2810|   
# 2811|   		if (node->registered)

Error: CPPCHECK_WARNING (CWE-190): [#def1175]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-node.c:2837: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2835|   		break;
# 2836|   	default:
# 2837|-> 		res = spa_node_send_command(node->node, command);
# 2838|   	}
# 2839|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def1176]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:68: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   66|   		return;
#   67|   
#   68|-> 	pw_impl_port_emit_info_changed(port, &port->info);
#   69|   	if (port->node)
#   70|   		pw_impl_node_emit_port_info_changed(port->node, port, &port->info);

Error: CPPCHECK_WARNING (CWE-190): [#def1177]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:70: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   68|   	pw_impl_port_emit_info_changed(port, &port->info);
#   69|   	if (port->node)
#   70|-> 		pw_impl_node_emit_port_info_changed(port->node, port, &port->info);
#   71|   
#   72|   	if (port->global)

Error: CPPCHECK_WARNING (CWE-190): [#def1178]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:74: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   72|   	if (port->global)
#   73|   		spa_list_for_each(resource, &port->global->resource_list, link)
#   74|-> 			pw_port_resource_info(resource, &port->info);
#   75|   
#   76|   	port->info.change_mask = 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1179]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:113: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  111|   		pw_impl_port_state_as_string(state), error);
#  112|   
#  113|-> 	pw_impl_port_emit_state_changed(port, old, state, error);
#  114|   
#  115|   	if (state == PW_IMPL_PORT_STATE_ERROR && port->global) {

Error: CPPCHECK_WARNING (CWE-190): [#def1180]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:179: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  177|   		goto next;
#  178|   
#  179|-> 	spa_node_emit_result(&impl->mix_hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  180|   
#  181|   	if (++count != max)

Error: CPPCHECK_WARNING (CWE-190): [#def1181]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:243: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  241|   	case SPA_IO_AsyncBuffers:
#  242|   		if (data == NULL || size == 0) {
#  243|-> 			pw_loop_invoke(this->node->data_loop,
#  244|   			       do_remove_mix, SPA_ID_INVALID, NULL, 0, true, mix);
#  245|   			mix->io_data = mix->io[0] = mix->io[1] = NULL;

Error: CPPCHECK_WARNING (CWE-190): [#def1182]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:255: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  253|   				mix->io_data = mix->io[0] = mix->io[1] = data;
#  254|   			}
#  255|-> 			pw_loop_invoke(this->node->data_loop,
#  256|   			       do_add_mix, SPA_ID_INVALID, NULL, 0, false, mix);
#  257|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1183]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:287: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  285|   
#  286|   	pw_log_trace_fp("%p: tee reuse buffer %d %d", this, port_id, buffer_id);
#  287|-> 	spa_node_port_reuse_buffer(this->node->node, this->port_id, buffer_id);
#  288|   	return 0;
#  289|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1184]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:354: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  352|   		return -errno;
#  353|   
#  354|-> 	if ((res = spa_node_add_port(port->mix, port->direction, port_id, NULL)) < 0 &&
#  355|   	    res != -ENOTSUP)
#  356|   		goto error_remove_map;

Error: CPPCHECK_WARNING (CWE-190): [#def1185]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:362: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  360|   	mix->p = port;
#  361|   
#  362|-> 	if ((res = pw_impl_port_call_init_mix(port, mix)) < 0)
#  363|   		goto error_remove_port;
#  364|   

Error: CPPCHECK_WARNING (CWE-190): [#def1186]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:377: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  375|   				pw_direction_reverse(port->direction), 0,
#  376|   				SPA_PARAM_Format, &idx, NULL, &param, &b.b) == 1) {
#  377|-> 			spa_node_port_set_param(port->mix,
#  378|   				port->direction, port_id,
#  379|   				SPA_PARAM_Format, 0, param);

Error: CPPCHECK_WARNING (CWE-190): [#def1187]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:394: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  392|   
#  393|   error_remove_port:
#  394|-> 	spa_node_remove_port(port->mix, port->direction, port_id);
#  395|   error_remove_map:
#  396|   	pw_map_remove(&port->mix_port_map, port_id);

Error: CPPCHECK_WARNING (CWE-190): [#def1188]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:413: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  411|   			port->n_mix, port->port_id, mix->port.port_id);
#  412|   
#  413|-> 	res = pw_impl_port_call_release_mix(port, mix);
#  414|   
#  415|   	if (port->destroying)

Error: CPPCHECK_WARNING (CWE-190): [#def1189]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:418: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  416|   		return res;
#  417|   
#  418|-> 	if ((res = spa_node_remove_port(port->mix, port->direction, port_id)) < 0 &&
#  419|   	    res != -ENOTSUP)
#  420|   		pw_log_warn("can't remove mix port %d: %s", port_id, spa_strerror(res));

Error: CPPCHECK_WARNING (CWE-190): [#def1190]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:475: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  473|   
#  474|   		pw_log_debug("%p: resource %p notify param %d", port, resource, id);
#  475|-> 		pw_port_resource_param(resource, seq, id, index, next, param);
#  476|   	}
#  477|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1191]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:800: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  798|   	if (port->mix != NULL && port->mix != node) {
#  799|   		spa_list_for_each(mix, &port->mix_list, link)
#  800|-> 			spa_node_remove_port(port->mix, mix->port.direction, mix->port.port_id);
#  801|   
#  802|   		spa_node_port_set_io(port->mix,

Error: CPPCHECK_WARNING (CWE-190): [#def1192]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:802: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  800|   			spa_node_remove_port(port->mix, mix->port.direction, mix->port.port_id);
#  801|   
#  802|-> 		spa_node_port_set_io(port->mix,
#  803|   			     pw_direction_reverse(port->direction), 0,
#  804|   			     SPA_IO_Buffers, NULL, 0);

Error: CPPCHECK_WARNING (CWE-190): [#def1193]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:817: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  815|   	if (port->mix && !port->destroying) {
#  816|   		spa_list_for_each(mix, &port->mix_list, link)
#  817|-> 			spa_node_add_port(port->mix, mix->port.direction, mix->port.port_id, NULL);
#  818|   
#  819|   		if (port->node && port->node->rt.position) {

Error: CPPCHECK_WARNING (CWE-190): [#def1194]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:820: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  818|   
#  819|   		if (port->node && port->node->rt.position) {
#  820|-> 			spa_node_set_io(port->mix,
#  821|   				     SPA_IO_Position,
#  822|   				     port->node->rt.position,

Error: CPPCHECK_WARNING (CWE-190): [#def1195]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1000: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  998|   	pw_log_debug("%p: resource %p reply param %u %u %u", d->port,
#  999|   			resource, id, index, next);
# 1000|-> 	pw_port_resource_param(resource, seq, id, index, next, param);
# 1001|   	return 0;
# 1002|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1196]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1092: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1090|   
# 1091|   	this->info.change_mask = PW_PORT_CHANGE_MASK_ALL;
# 1092|-> 	pw_port_resource_info(resource, &this->info);
# 1093|   	this->info.change_mask = 0;
# 1094|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1197]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1162: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1160|   	pw_global_update_keys(port->global, &port->properties->dict, keys);
# 1161|   
# 1162|-> 	pw_impl_port_emit_initialized(port);
# 1163|   
# 1164|   	return pw_global_register(port->global);

Error: CPPCHECK_WARNING (CWE-190): [#def1198]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1201: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1199|   	port->node = node;
# 1200|   
# 1201|-> 	pw_impl_node_emit_port_init(node, port);
# 1202|   
# 1203|   	check_params(port);

Error: CPPCHECK_WARNING (CWE-190): [#def1199]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1327: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1325|   	} else {
# 1326|   		pw_log_debug("%p: setting mixer position io", port);
# 1327|-> 		spa_node_set_io(port->mix,
# 1328|   			     SPA_IO_Position,
# 1329|   			     node->rt.position,

Error: CPPCHECK_WARNING (CWE-190): [#def1200]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1351: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1349|   		pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_CONFIGURE, 0, NULL);
# 1350|   
# 1351|-> 	pw_impl_node_emit_port_added(node, port);
# 1352|   	emit_info_changed(port);
# 1353|   

Error: CPPCHECK_WARNING (CWE-190): [#def1201]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1392: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1390|   	pw_log_debug("%p: remove", port);
# 1391|   
# 1392|-> 	pw_loop_invoke(node->data_loop, do_remove_port, SPA_ID_INVALID, NULL, 0, true, port);
# 1393|   
# 1394|   	if (SPA_FLAG_IS_SET(port->flags, PW_IMPL_PORT_FLAG_TO_REMOVE)) {

Error: CPPCHECK_WARNING (CWE-190): [#def1202]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1395: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1393|   
# 1394|   	if (SPA_FLAG_IS_SET(port->flags, PW_IMPL_PORT_FLAG_TO_REMOVE)) {
# 1395|-> 		if ((res = spa_node_remove_port(node->node, port->direction, port->port_id)) < 0)
# 1396|   			pw_log_warn("%p: can't remove: %s", port, spa_strerror(res));
# 1397|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1203]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1412: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1410|   
# 1411|   	spa_list_remove(&port->link);
# 1412|-> 	pw_impl_node_emit_port_removed(node, port);
# 1413|   	port->node = NULL;
# 1414|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1204]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1424: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1422|   
# 1423|   	port->destroying = true;
# 1424|-> 	pw_impl_port_emit_destroy(port);
# 1425|   
# 1426|   	pw_impl_port_unlink(port);

Error: CPPCHECK_WARNING (CWE-190): [#def1205]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1442: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1440|   
# 1441|   	pw_log_debug("%p: free", port);
# 1442|-> 	pw_impl_port_emit_free(port);
# 1443|   
# 1444|   	spa_hook_list_clean(&port->listener_list);

Error: CPPCHECK_WARNING (CWE-190): [#def1206]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1575: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1573|   			break;
# 1574|   		}
# 1575|-> 		spa_node_add_listener(qnode, &listener, &node_events, &user_data);
# 1576|   		res = spa_node_port_enum_params(qnode, seq,
# 1577|   				port->direction, qport,

Error: CPPCHECK_WARNING (CWE-190): [#def1207]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1576: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1574|   		}
# 1575|   		spa_node_add_listener(qnode, &listener, &node_events, &user_data);
# 1576|-> 		res = spa_node_port_enum_params(qnode, seq,
# 1577|   				port->direction, qport,
# 1578|   				param_id, index, max, filter);

Error: CPPCHECK_WARNING (CWE-190): [#def1208]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1821: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1819|   
# 1820|   	if (id == SPA_PARAM_Format) {
# 1821|-> 		pw_loop_invoke(node->data_loop, do_remove_port, SPA_ID_INVALID, NULL, 0, true, port);
# 1822|   		spa_node_port_set_io(node->node,
# 1823|   				     port->direction, port->port_id,

Error: CPPCHECK_WARNING (CWE-190): [#def1209]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1822: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1820|   	if (id == SPA_PARAM_Format) {
# 1821|   		pw_loop_invoke(node->data_loop, do_remove_port, SPA_ID_INVALID, NULL, 0, true, port);
# 1822|-> 		spa_node_port_set_io(node->node,
# 1823|   				     port->direction, port->port_id,
# 1824|   				     SPA_IO_Buffers, NULL, 0);

Error: CPPCHECK_WARNING (CWE-190): [#def1210]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1828: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1826|   
# 1827|   	/* set parameter on node */
# 1828|-> 	res = spa_node_port_set_param(node->node,
# 1829|   			port->direction, port->port_id,
# 1830|   			id, flags, param);

Error: CPPCHECK_WARNING (CWE-190): [#def1211]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1848: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1846|   
# 1847|   		spa_list_for_each(mix, &port->mix_list, link) {
# 1848|-> 			spa_node_port_set_param(port->mix,
# 1849|   				mix->port.direction, mix->port.port_id,
# 1850|   				id, flags, param);

Error: CPPCHECK_WARNING (CWE-190): [#def1212]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1852: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1850|   				id, flags, param);
# 1851|   		}
# 1852|-> 		spa_node_port_set_param(port->mix,
# 1853|   				pw_direction_reverse(port->direction), 0,
# 1854|   				id, flags, param);

Error: CPPCHECK_WARNING (CWE-190): [#def1213]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1903: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1901|   				alloc_flags);
# 1902|   
# 1903|-> 		spa_node_port_set_io(node->node,
# 1904|   				     port->direction, port->port_id,
# 1905|   				     SPA_IO_Buffers, NULL, 0);

Error: CPPCHECK_WARNING (CWE-190): [#def1214]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1907: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1905|   				     SPA_IO_Buffers, NULL, 0);
# 1906|   
# 1907|-> 		pw_loop_invoke(node->data_loop, do_remove_port, SPA_ID_INVALID, NULL, 0, true, port);
# 1908|   
# 1909|   		pw_buffers_clear(&port->mix_buffers);

Error: CPPCHECK_WARNING (CWE-190): [#def1215]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1929: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1927|   			port, port->direction, port->port_id, n_buffers, node->node);
# 1928|   
# 1929|-> 	res = spa_node_port_use_buffers(node->node,
# 1930|   			port->direction, port->port_id,
# 1931|   			flags, buffers, n_buffers);

Error: CPPCHECK_WARNING (CWE-190): [#def1216]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1934: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1932|   
# 1933|   	if (SPA_RESULT_IS_OK(res)) {
# 1934|-> 		spa_node_port_use_buffers(port->mix,
# 1935|   			     pw_direction_reverse(port->direction), 0,
# 1936|   			     0, buffers, n_buffers);

Error: CPPCHECK_WARNING (CWE-190): [#def1217]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1939: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1937|   	}
# 1938|   	if (n_buffers > 0) {
# 1939|-> 		spa_node_port_set_io(node->node,
# 1940|   				     port->direction, port->port_id,
# 1941|   				     SPA_IO_Buffers,

Error: CPPCHECK_WARNING (CWE-190): [#def1218]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1943: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1941|   				     SPA_IO_Buffers,
# 1942|   				     &port->rt.io, sizeof(port->rt.io));
# 1943|-> 		spa_node_port_set_io(port->mix,
# 1944|   			     pw_direction_reverse(port->direction), 0,
# 1945|   			     SPA_IO_Buffers,

Error: CPPCHECK_WARNING (CWE-190): [#def1219]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1947: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1945|   			     SPA_IO_Buffers,
# 1946|   			     &port->rt.io, sizeof(port->rt.io));
# 1947|-> 		pw_loop_invoke(node->data_loop, do_add_port, SPA_ID_INVALID, NULL, 0, false, port);
# 1948|   	}
# 1949|   	return res;

Error: CPPCHECK_WARNING (CWE-190): [#def1220]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1974: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1972|   			pw_impl_port_update_state(port, PW_IMPL_PORT_STATE_READY, 0, NULL);
# 1973|   
# 1974|-> 		spa_node_port_set_io(port->mix,
# 1975|   				mix->port.direction, mix->port.port_id,
# 1976|   				SPA_IO_Buffers, NULL, 0);

Error: CPPCHECK_WARNING (CWE-190): [#def1221]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-port.c:1998: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1996|   		flags &= ~SPA_NODE_BUFFERS_FLAG_ALLOC;
# 1997|   
# 1998|-> 	res2 = spa_node_port_use_buffers(port->mix,
# 1999|   			mix->port.direction, mix->port.port_id, flags,
# 2000|   			buffers, n_buffers);

Error: CPPCHECK_WARNING (CWE-401): [#def1222]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1223]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.c:364: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  362|   		va_list args;
#  363|   		va_start(args, fmt);
#  364|-> 		spa_log_logtv(global_log, level, topic, file, line, func, fmt, args);
#  365|   		va_end(args);
#  366|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1224]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.c:389: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  387|   	     va_list args)
#  388|   {
#  389|-> 	spa_log_logtv(global_log, level, topic, file, line, func, fmt, args);
#  390|   }
#  391|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1225]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c: scope_hint: In function ‘pw_context_create_metadata’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:167:12: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:299:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:299:9: note: in expansion of macro ‘pw_log_debug’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:171:25: note: in expansion of macro ‘pw_logt’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/log.h:176:29: note: in expansion of macro ‘pw_log’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-metadata.c:299:9: note: in expansion of macro ‘pw_log_debug’
#  165|   #define pw_logt(lev,topic,...)							\
#  166|   ({										\
#  167|-> 	if (SPA_UNLIKELY(pw_log_topic_enabled(lev,topic)))			\
#  168|   		pw_log_logt(lev,topic,__FILE__,__LINE__,__func__,__VA_ARGS__);	\
#  169|   })

Error: CPPCHECK_WARNING (CWE-190): [#def1226]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:114: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  112|           }
#  113|   	this->control = iface;
#  114|-> 	if (!spa_interface_callback_check(&this->control->iface,
#  115|   			struct spa_loop_control_methods, iterate, 0)) {
#  116|   		res = -EINVAL;

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1227]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c: scope_hint: In function ‘pw_loop_new’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:138:16: warning[-Wanalyzer-malloc-leak]: leak of ‘impl’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:73:20: note: in expansion of macro ‘spa_handle_get_interface’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:97:20: note: in expansion of macro ‘spa_handle_get_interface’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/loop.h:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:7: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:189:9: note: in expansion of macro ‘SPA_CALLBACK_CHECK’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:222:4: note: in expansion of macro ‘spa_callback_check’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.c:114:14: note: in expansion of macro ‘spa_interface_callback_check’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/plugin.h:54:42: note: in definition of macro ‘spa_handle_get_interface’
#  136|   	this->name = impl->name;
#  137|   
#  138|-> 	return this;
#  139|   
#  140|   error_unload_loop:

Error: CPPCHECK_WARNING (CWE-190): [#def1228]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1229]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/main-loop.c:110: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  108|   {
#  109|   	pw_log_debug("%p: quit", loop);
#  110|-> 	return pw_loop_invoke(loop->loop, do_stop, 1, NULL, 0, false, loop);
#  111|   }
#  112|   

Error: CPPCHECK_WARNING (CWE-190): [#def1230]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/main-loop.c:128: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  126|   
#  127|   	loop->running = true;
#  128|-> 	pw_loop_enter(loop->loop);
#  129|   	while (loop->running) {
#  130|   		if ((res = pw_loop_iterate(loop->loop, -1)) < 0) {

Error: CPPCHECK_WARNING (CWE-190): [#def1231]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/main-loop.c:137: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  135|   		}
#  136|   	}
#  137|-> 	pw_loop_leave(loop->loop);
#  138|   
#  139|   	if (res > 0) // This is the number of fds last polled, not useful for the caller.

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1232]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:27: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl.h:23: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-core.c:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/map.h: scope_hint: In function ‘pw_map_insert_at’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/map.h:163:32: warning[-Wanalyzer-malloc-leak]: leak of ‘*client.objects.items.data’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/type-info.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/debug/types.h:17: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/impl-core.c:9: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:202:62: note: in definition of macro ‘SPA_PTROFF’
#  161|   		item = (union pw_map_item *) pw_array_add(&map->items, sizeof(union pw_map_item));
#  162|   		if (item == NULL)
#  163|-> 			return -errno;
#  164|   	} else {
#  165|   		item = pw_map_get_item(map, id);

Error: CPPCHECK_WARNING (CWE-190): [#def1233]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/mem.c:198: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  196|   	pw_log_debug("%p: destroy", pool);
#  197|   
#  198|-> 	pw_mempool_emit_destroy(impl);
#  199|   
#  200|   	pw_mempool_clear(pool);

Error: CPPCHECK_WARNING (CWE-190): [#def1234]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/mem.c:612: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  610|   
#  611|   	if (!SPA_FLAG_IS_SET(flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  612|-> 		pw_mempool_emit_added(impl, &b->this);
#  613|   
#  614|   	return &b->this;

Error: CPPCHECK_WARNING (CWE-190): [#def1235]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/mem.c:682: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  680|   
#  681|   	if (!SPA_FLAG_IS_SET(flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  682|-> 		pw_mempool_emit_added(impl, &b->this);
#  683|   
#  684|   	return &b->this;

Error: CPPCHECK_WARNING (CWE-190): [#def1236]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/mem.c:839: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  837|   
#  838|   	if (!SPA_FLAG_IS_SET(block->flags, PW_MEMBLOCK_FLAG_DONT_NOTIFY))
#  839|-> 		pw_mempool_emit_removed(impl, block);
#  840|   
#  841|   	if (b->owner) {

Error: CPPCHECK_WARNING (CWE-190): [#def1237]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/mem.c:846: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  844|   	}
#  845|   
#  846|-> 	memblock_emit_invalidated(b);
#  847|   
#  848|   	spa_list_consume(mm, &b->memmaps, link)

Error: CPPCHECK_WARNING (CWE-190): [#def1238]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1239]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1240]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1241]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1242]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.c:217: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  215|   		 * destroy if we can */
#  216|   		if (proxy->core && !proxy->core->removed) {
#  217|-> 			pw_core_destroy(proxy->core, proxy);
#  218|   			proxy->refcount++;
#  219|   		} else {

Error: CPPCHECK_WARNING (CWE-190): [#def1243]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.c:230: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  228|   		 * events will be emitted on zombie objects */
#  229|   		proxy->zombie = true;
#  230|-> 		pw_proxy_emit_destroy(proxy);
#  231|   	}
#  232|   

Error: CPPCHECK_WARNING (CWE-190): [#def1244]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.c:254: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  252|   		proxy->removed = true;
#  253|   		if (!proxy->destroyed)
#  254|-> 			pw_proxy_emit_removed(proxy);
#  255|   	}
#  256|   	if (proxy->destroyed)

Error: CPPCHECK_WARNING (CWE-190): [#def1245]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.c:305: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  303|   
#  304|   	if (core && !core->removed) {
#  305|-> 		res = pw_core_sync(core, proxy->id, seq);
#  306|   		pw_log_debug("%p: %u seq:%d sync %u", proxy, proxy->id, seq, res);
#  307|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1246]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.c:333: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  331|   
#  332|   	if (core && !core->removed)
#  333|-> 		r = pw_core_error(core, proxy->id,
#  334|   				core->recv_seq, res, error);
#  335|   	return r;

Error: CPPCHECK_WARNING (CWE-190): [#def1247]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1248]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1249]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1250]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1251]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1252]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1253]
pipewire-1.2.6-build/pipewire-1.2.6/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-401): [#def1254]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:265: error[memleak]: Memory leak: p
#  263|   		impl->port_params[idx].user++;
#  264|   	}
#  265|-> 	return 0;
#  266|   }
#  267|   

Error: CPPCHECK_WARNING (CWE-190): [#def1255]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:400: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  398|   
#  399|   		stream->state = state;
#  400|-> 		pw_stream_emit_state_changed(stream, old, state, error);
#  401|   	}
#  402|   	return changed;

Error: CPPCHECK_WARNING (CWE-190): [#def1256]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:451: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  449|   	struct pw_stream *stream = &impl->this;
#  450|   	pw_log_trace_fp("%p: drained", stream);
#  451|-> 	pw_stream_emit_drained(stream);
#  452|   	return 0;
#  453|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1257]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:458: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  456|   {
#  457|   	pw_log_info("%p: drained", impl);
#  458|-> 	pw_loop_invoke(impl->main_loop,
#  459|   		do_call_drained, 1, NULL, 0, false, impl);
#  460|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1258]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:480: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  478|   			spa_callbacks_call(&impl->rt_callbacks, struct pw_stream_events, trigger_done, 2);
#  479|   	} else {
#  480|-> 		pw_loop_invoke(impl->main_loop,
#  481|   			do_call_trigger_done, 1, NULL, 0, false, impl);
#  482|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1259]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:493: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  491|   			spa_debug_type_find_name(spa_type_io, id), data, size);
#  492|   
#  493|-> 	pw_stream_emit_io_changed(stream, id, data, size);
#  494|   
#  495|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1260]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:533: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  531|   		spa_pod_dynamic_builder_init(&b, buffer, sizeof(buffer), 4096);
#  532|   		if (spa_pod_filter(&b.b, &result.param, param, filter) == 0) {
#  533|-> 			spa_node_emit_result(&d->hooks, seq, 0, SPA_RESULT_TYPE_NODE_PARAMS, &result);
#  534|   			count++;
#  535|   		}

Error: CPPCHECK_WARNING (CWE-190): [#def1261]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:555: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  553|   	struct pw_stream *stream = &impl->this;
#  554|   	if (impl->in_emit_param_changed++ == 0)
#  555|-> 		pw_stream_emit_param_changed(stream, id, param);
#  556|   	impl->in_emit_param_changed--;
#  557|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1262]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:574: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  572|   			}
#  573|   		}
#  574|-> 		spa_node_emit_info(&d->hooks, &d->info);
#  575|   	}
#  576|   	d->info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1263]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:594: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  592|   			}
#  593|   		}
#  594|-> 		spa_node_emit_port_info(&d->hooks, d->direction, 0, &d->port_info);
#  595|   	}
#  596|   	d->port_info.change_mask = old;

Error: CPPCHECK_WARNING (CWE-190): [#def1264]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:658: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  656|   	case SPA_NODE_COMMAND_Flush:
#  657|   	case SPA_NODE_COMMAND_Pause:
#  658|-> 		pw_loop_invoke(impl->main_loop,
#  659|   			NULL, 0, NULL, 0, false, impl);
#  660|   		if (stream->state == PW_STREAM_STATE_STREAMING && id != SPA_NODE_COMMAND_Flush) {

Error: CPPCHECK_WARNING (CWE-190): [#def1265]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:733: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  731|   		break;
#  732|   	}
#  733|-> 	pw_stream_emit_io_changed(stream, id, data, size);
#  734|   
#  735|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1266]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:801: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  799|   
#  800|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_ADDED))
#  801|-> 			pw_stream_emit_remove_buffer(stream, &b->this);
#  802|   
#  803|   		if (SPA_FLAG_IS_SET(b->flags, BUFFER_FLAG_MAPPED)) {

Error: CPPCHECK_WARNING (CWE-190): [#def1267]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:977: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  975|   		SPA_FLAG_SET(b->flags, BUFFER_FLAG_ADDED);
#  976|   
#  977|-> 		pw_stream_emit_add_buffer(stream, &b->this);
#  978|   	}
#  979|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1268]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1138: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1136|   	 * If this is supposed to be a permanent error, the app should
# 1137|   	 * do a pw_stream_set_error() */
# 1138|-> 	pw_stream_emit_state_changed(stream, stream->state,
# 1139|   			PW_STREAM_STATE_ERROR, message);
# 1140|   }

Error: CPPCHECK_WARNING (CWE-457): [#def1269]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1188: error[uninitvar]: Uninitialized variable: iid
# 1186|   			return -EINVAL;
# 1187|   
# 1188|-> 		c = find_control(stream, iid);
# 1189|   		if (c != NULL)
# 1190|   			return 0;

Error: CPPCHECK_WARNING (CWE-457): [#def1270]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1208: error[uninitvar]: Uninitialized variable: type
# 1206|   		}
# 1207|   
# 1208|-> 		pod = spa_pod_get_values(type, &n_vals, &choice);
# 1209|   		if (n_vals == 0) {
# 1210|   			free(c);

Error: CPPCHECK_WARNING (CWE-758): [#def1271]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1331: warning[objectIndex]: The address of variable 'value_f' might be accessed at non-zero index.
# 1329|   					prop->key, c->control.name, n_values);
# 1330|   			for (i = 0; i < n_values; i++)
# 1331|-> 				pw_log_debug("%p:  value %d %f", stream, i, values[i]);
# 1332|   
# 1333|   			pw_stream_emit_control_info(stream, prop->key, &c->control);

Error: CPPCHECK_WARNING (CWE-190): [#def1272]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1333: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1331|   				pw_log_debug("%p:  value %d %f", stream, i, values[i]);
# 1332|   
# 1333|-> 			pw_stream_emit_control_info(stream, prop->key, &c->control);
# 1334|   		}
# 1335|   		break;

Error: CPPCHECK_WARNING (CWE-190): [#def1273]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1548: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1546|   	this->core = core;
# 1547|   	spa_list_append(&core->stream_list, &this->link);
# 1548|-> 	pw_core_add_listener(core,
# 1549|   			&this->core_listener, &core_events, this);
# 1550|   

Error: CPPCHECK_WARNING (CWE-190): [#def1274]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1659: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1657|   	pw_log_debug("%p: destroy", stream);
# 1658|   
# 1659|-> 	pw_stream_emit_destroy(stream);
# 1660|   
# 1661|   	if (!impl->disconnecting)

Error: CPPCHECK_WARNING (CWE-190): [#def1275]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:1707: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 1705|   	struct stream *impl = hook->priv;
# 1706|   	if (impl->data_loop)
# 1707|-> 		pw_loop_invoke(impl->data_loop, do_remove_callbacks, 1, NULL, 0, true, impl);
# 1708|   	else
# 1709|   		spa_zero(impl->rt_callbacks);

Error: CPPCHECK_WARNING (CWE-190): [#def1276]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2057: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2055|   		}
# 2056|   		spa_list_append(&stream->core->stream_list, &stream->link);
# 2057|-> 		pw_core_add_listener(stream->core,
# 2058|   				&stream->core_listener, &core_events, stream);
# 2059|   		impl->disconnect_core = true;

Error: CPPCHECK_WARNING (CWE-190): [#def1277]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2457: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2455|   	    stream->node->driving && !impl->using_trigger) {
# 2456|   		pw_log_debug("deprecated: use pw_stream_trigger_process() to drive the stream.");
# 2457|-> 		res = pw_loop_invoke(impl->data_loop,
# 2458|   			do_trigger_deprecated, 1, NULL, 0, false, impl);
# 2459|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1278]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2511: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2509|   		return -EIO;
# 2510|   
# 2511|-> 	pw_loop_invoke(impl->data_loop,
# 2512|   			drain ? do_drain : do_flush, 1, NULL, 0, true, impl);
# 2513|   

Error: CPPCHECK_WARNING (CWE-190): [#def1279]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2515: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2513|   
# 2514|   	if (!drain)
# 2515|-> 		spa_node_send_command(stream->node->node,
# 2516|   				&SPA_NODE_COMMAND_INIT(SPA_NODE_COMMAND_Flush));
# 2517|   	return 0;

Error: CPPCHECK_WARNING (CWE-190): [#def1280]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2549: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2547|   
# 2548|   	spa_pod_builder_init(&b, buffer, sizeof(buffer));
# 2549|-> 	spa_node_emit_event(&impl->hooks,
# 2550|   			spa_pod_builder_add_object(&b,
# 2551|   				SPA_TYPE_EVENT_Node, SPA_NODE_EVENT_RequestProcess));

Error: CPPCHECK_WARNING (CWE-190): [#def1281]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2569: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2567|   		pw_impl_node_trigger(stream->node);
# 2568|   	} else if (stream->node->driving) {
# 2569|-> 		res = pw_loop_invoke(impl->data_loop,
# 2570|   			do_trigger_driver, 1, NULL, 0, false, impl);
# 2571|   	} else {

Error: CPPCHECK_WARNING (CWE-190): [#def1282]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/stream.c:2572: error[integerOverflow]: Signed integer overflow for expression '0-1'.
# 2570|   			do_trigger_driver, 1, NULL, 0, false, impl);
# 2571|   	} else {
# 2572|-> 		res = pw_loop_invoke(impl->main_loop,
# 2573|   			do_trigger_request_process, 1, NULL, 0, false, impl);
# 2574|   	}

Error: CPPCHECK_WARNING (CWE-190): [#def1283]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/thread-loop.c:175: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  173|   	CHECK(pthread_cond_init(&this->accept_cond, &cattr), clean_cond);
#  174|   
#  175|-> 	if ((this->event = pw_loop_add_event(this->loop, do_stop, this)) == NULL) {
#  176|   		res = -errno;
#  177|   		goto clean_acceptcond;

Error: CPPCHECK_WARNING (CWE-190): [#def1284]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/thread-loop.c:181: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  179|   
#  180|   	pw_loop_set_callbacks(loop, &impl_callbacks, this);
#  181|-> 	pw_loop_add_hook(loop, &this->hook, &impl_hooks, this);
#  182|   
#  183|   	return this;

Error: CPPCHECK_WARNING (CWE-190): [#def1285]
pipewire-1.2.6-build/pipewire-1.2.6/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-190): [#def1286]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/thread-loop.c:253: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  251|   	spa_hook_list_clean(&loop->listener_list);
#  252|   
#  253|-> 	pw_loop_destroy_source(loop->loop, loop->event);
#  254|   
#  255|   	if (loop->created)

Error: CPPCHECK_WARNING (CWE-190): [#def1287]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/thread-loop.c:288: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  286|   	do_lock(this);
#  287|   	pw_log_debug("%p: enter thread", this);
#  288|-> 	pw_loop_enter(this->loop);
#  289|   
#  290|   	if (this->start_signal)

Error: CPPCHECK_WARNING (CWE-190): [#def1288]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/thread-loop.c:302: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  300|   	}
#  301|   	pw_log_debug("%p: leave thread", this);
#  302|-> 	pw_loop_leave(this->loop);
#  303|   	do_unlock(this);
#  304|   

Error: CPPCHECK_WARNING (CWE-190): [#def1289]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/thread-loop.c:353: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  351|   	if (loop->running) {
#  352|   		pw_log_debug("%p signal", loop);
#  353|-> 		pw_loop_signal_event(loop->loop, loop->event);
#  354|   		pw_log_debug("%p join", loop);
#  355|   		pthread_join(loop->thread, NULL);

Error: CPPCHECK_WARNING (CWE-190): [#def1290]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/work-queue.c:92: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#   90|   	this->loop = loop;
#   91|   
#   92|-> 	this->wakeup = pw_loop_add_event(this->loop, process_work_queue, this);
#   93|   	if (this->wakeup == NULL) {
#   94|   		res = -errno;

Error: CPPCHECK_WARNING (CWE-190): [#def1291]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/work-queue.c:119: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  117|   	pw_log_debug("%p: destroy", queue);
#  118|   
#  119|-> 	pw_loop_destroy_source(queue->loop, queue->wakeup);
#  120|   
#  121|   	spa_list_for_each_safe(item, tmp, &queue->work_list, link) {

Error: CPPCHECK_WARNING (CWE-190): [#def1292]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/work-queue.c:185: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  183|   
#  184|   	if (have_work)
#  185|-> 		pw_loop_signal_event(queue->loop, queue->wakeup);
#  186|   
#  187|   	return item->id;

Error: CPPCHECK_WARNING (CWE-401): [#def1293]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/work-queue.c:187: error[memleak]: Memory leak: item
#  185|   		pw_loop_signal_event(queue->loop, queue->wakeup);
#  186|   
#  187|-> 	return item->id;
#  188|   }
#  189|   

Error: CPPCHECK_WARNING (CWE-190): [#def1294]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/work-queue.c:216: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  214|   	}
#  215|   
#  216|-> 	pw_loop_signal_event(queue->loop, queue->wakeup);
#  217|   	return 0;
#  218|   }

Error: CPPCHECK_WARNING (CWE-190): [#def1295]
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/work-queue.c:247: error[integerOverflow]: Signed integer overflow for expression '0-1'.
#  245|   	}
#  246|   
#  247|-> 	pw_loop_signal_event(queue->loop, queue->wakeup);
#  248|   	return 0;
#  249|   }

Error: COMPILER_WARNING (CWE-252): [#def1296]
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/pw-container.c: scope_hint: In function ‘main’
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def1297]
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/pw-dot.c:91:21: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘data.dot_data.data’
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/pw-dot.c: scope_hint: In function ‘main’
#   89|   
#   90|   	dd->data = malloc(sizeof (char) * size);
#   91|-> 	dd->data[0] = '\0';
#   92|   	dd->size = 0;
#   93|   	dd->max_size = size;

Error: CPPCHECK_WARNING (CWE-587): [#def1298]
pipewire-1.2.6-build/pipewire-1.2.6/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-401): [#def1299]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-401): [#def1300]
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/reserve.c: scope_hint: In function ‘rd_device_new’
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/reserve.c:398:9: warning[-Wanalyzer-malloc-leak]: leak of ‘<unknown>’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/reserve.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/reserve.c:361:26: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/src/tools/reserve.c:361:26: note: in expansion of macro ‘spa_aprintf’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:14: included_from: Included from here.
#  396|   	free(d->service_name);
#  397|   	free(d->object_path);
#  398|-> 	free(d);
#  399|   	errno = -res;
#  400|   	return NULL;

Error: CPPCHECK_WARNING (CWE-401): [#def1301]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-476): [#def1302]
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c: scope_hint: In function ‘add_suite’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:545:17: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘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): [#def1303]
pipewire-1.2.6-build/pipewire-1.2.6/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): [#def1304]
pipewire-1.2.6-build/pipewire-1.2.6/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: GCC_ANALYZER_WARNING (CWE-775): [#def1305]
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c: scope_hint: In function ‘start_pwdaemon’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:737:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘r’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1219:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1224:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1226:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1240:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1246:17: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:767:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1045:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:732:17: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:732:17: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:734:17: note: in expansion of macro ‘spa_assert_se’
#  735|   
#  736|   		execl(daemon, daemon, (char*)NULL);
#  737|-> 		return -errno;
#  738|   
#  739|   	} else if (pid < 0) {

Error: GCC_ANALYZER_WARNING (CWE-775): [#def1306]
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c: scope_hint: In function ‘close_pipes’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:798:24: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘read_fds[i]’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1219:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1220:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1224:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1226:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1240:9: note: in expansion of macro ‘spa_list_for_each’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/list.h:102:9: note: in expansion of macro ‘spa_list_for_each_next’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.c:1246:17: note: in expansion of macro ‘spa_list_for_each’
#  796|   		if (fds[i] >= 0)
#  797|   			close(fds[i]);
#  798|-> 		fds[i] = -1;
#  799|   	}
#  800|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1307]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c: scope_hint: In function ‘array_test’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c:40:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c:7: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c: scope_hint: In function ‘array_test’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:14: included_from: Included from here.
#   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): [#def1308]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c: scope_hint: In function ‘array_clear’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c:101:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-array.c: scope_hint: In function ‘array_clear’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/array.h:115:25: note: in expansion of macro ‘SPA_ROUND_UP’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:296:46: note: in definition of macro ‘SPA_UNLIKELY’
#   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): [#def1309]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-config.c: scope_hint: In function ‘config_load_abspath’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-config.c:19:9: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&path, "we")’ where non-null expected
<built-in>: note: argument 4 of ‘__builtin_fwrite’ must be non-null
#   17|   	pwtest_mkstemp(path);
#   18|   	fp = fopen(path, "we");
#   19|-> 	fputs("data = x", fp);
#   20|   	fclose(fp);
#   21|   

Error: CPPCHECK_WARNING (CWE-476): [#def1310]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-example.c:90: error[nullPointer]: Null pointer dereference: x
#   88|   {
#   89|   	int *x = NULL;
#   90|-> 	*x = 20;
#   91|   	return PWTEST_PASS;
#   92|   }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1311]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-example.c: scope_hint: In function ‘catch_segfault_test’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-example.c:90:12: 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): [#def1312]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c: scope_hint: In function ‘logger_truncate_long_lines’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:47:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:42: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:5: included_from: Included from here.
/usr/include/stdio.h:654:14: note: argument 3 of ‘fgets’ must be non-null
#   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): [#def1313]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c: scope_hint: In function ‘logger_no_ansi’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:94:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
/usr/include/stdio.h:654:14: note: argument 3 of ‘fgets’ must be non-null
#   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): [#def1314]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c: scope_hint: In function ‘test_log_levels’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:141:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
/usr/include/stdio.h:654:14: note: argument 3 of ‘fgets’ must be non-null
#  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): [#def1315]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c: scope_hint: In function ‘logger_debug_env_alpha’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:252:9: warning[-Wanalyzer-null-argument]: use of NULL ‘lvl’ where non-null expected
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:15: included_from: Included from here.
/usr/include/stdlib.h:792:12: note: argument 2 of ‘setenv’ must be non-null
#  250|   			break;
#  251|   	}
#  252|-> 	setenv("PIPEWIRE_DEBUG", lvl, 1);
#  253|   
#  254|   	/* Disable logging, let PIPEWIRE_DEBUG set the level */

Error: GCC_ANALYZER_WARNING: [#def1316]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c: scope_hint: In function ‘logger_debug_env_invalid’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:349:14: warning[-Wanalyzer-fd-use-without-check]: ‘dup2’ on possibly invalid file descriptor ‘open(&fname, 2)’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:142: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:191:9: note: in expansion of macro ‘pwtest_errno_check’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:348:9: note: in expansion of macro ‘pwtest_errno_ok’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:191:9: note: in expansion of macro ‘pwtest_errno_check’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:348:9: note: in expansion of macro ‘pwtest_errno_ok’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:14: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:191:9: note: in expansion of macro ‘pwtest_errno_check’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:348:9: note: in expansion of macro ‘pwtest_errno_ok’
#  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): [#def1317]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:379:16: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘rc’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:191:9: note: in expansion of macro ‘pwtest_errno_check’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:348:9: note: in expansion of macro ‘pwtest_errno_ok’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:191:9: note: in expansion of macro ‘pwtest_errno_check’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:351:9: note: in expansion of macro ‘pwtest_errno_ok’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:191:9: note: in expansion of macro ‘pwtest_errno_check’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:351:9: note: in expansion of macro ‘pwtest_errno_ok’
#  377|   	pw_deinit();
#  378|   
#  379|-> 	return PWTEST_PASS;
#  380|   }
#  381|   

Error: GCC_ANALYZER_WARNING (CWE-688): [#def1318]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c: scope_hint: In function ‘logger_topics’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-logger.c:413:16: warning[-Wanalyzer-possible-null-argument]: use of possibly-NULL ‘fopen(&fname, "re")’ where non-null expected
/usr/include/stdio.h:654:14: note: argument 3 of ‘fgets’ must be non-null
#  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): [#def1319]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:93:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
#   91|   	pw_deinit();
#   92|   
#   93|-> 	return PWTEST_PASS;
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1320]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c: scope_hint: In function ‘pwtest_loop_destroy2’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:93:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
#   91|   	pw_deinit();
#   92|   
#   93|-> 	return PWTEST_PASS;
#   94|   }
#   95|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1321]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:221:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.a’
#  219|   	pw_deinit();
#  220|   
#  221|-> 	return PWTEST_PASS;
#  222|   }
#  223|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1322]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c: scope_hint: In function ‘pwtest_loop_recurse2’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:221:16: warning[-Wanalyzer-malloc-leak]: leak of ‘data.b’
#  219|   	pw_deinit();
#  220|   
#  221|-> 	return PWTEST_PASS;
#  222|   }
#  223|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def1323]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c: scope_hint: In function ‘destroy_managed_source_before_dispatch’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:272:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘data.source’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/proxy.h:12: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/client.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/pipewire.h:15: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:13: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/hook.h:243:9: note: in expansion of macro ‘spa_callbacks_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/loop.h:341:9: note: in expansion of macro ‘spa_interface_call_res’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/support/loop.h:348:49: note: in expansion of macro ‘spa_loop_utils_method_s’
pipewire-1.2.6-build/pipewire-1.2.6/src/pipewire/loop.h:56:41: note: in expansion of macro ‘spa_loop_utils_add_io’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:267:23: note: in expansion of macro ‘pw_loop_add_io’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:142: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:11: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:259:9: note: in expansion of macro ‘pwtest_comparison_ptr_’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:268:9: note: in expansion of macro ‘pwtest_ptr_notnull’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:259:9: note: in expansion of macro ‘pwtest_comparison_ptr_’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-loop.c:268:9: note: in expansion of macro ‘pwtest_ptr_notnull’
#  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): [#def1324]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-buffer.c: scope_hint: In function ‘buffer_alloc’
pipewire-1.2.6-build/pipewire-1.2.6/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.2.6-build/pipewire-1.2.6/test/test-spa-buffer.c:6: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-buffer.c:8: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:279:45: note: in definition of macro ‘SPA_ROUND_UP_N’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/buffer/alloc.h:147:35: note: in expansion of macro ‘SPA_MAX’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:279:55: note: in expansion of macro ‘SPA_ROUND_MASK’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/buffer/alloc.h:159:19: note: in expansion of macro ‘SPA_ROUND_UP_N’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:276:61: note: in definition of macro ‘SPA_ROUND_MASK’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/buffer/alloc.h:159:19: note: in expansion of macro ‘SPA_ROUND_UP_N’
/usr/include/stdio.h:34: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/defs.h:42: included_from: Included from here.
#   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-775): [#def1325]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-json.c:1000:13: warning[-Wanalyzer-file-leak]: leak of FILE ‘fopen(&path, "r")’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:222:13: note: in expansion of macro ‘SPA_LIKELY’
#  998|   	pwtest_ptr_notnull(basedir);
#  999|   	spa_scnprintf(path, sizeof(path), "%s/test-spa-json.txt", basedir);
# 1000|-> 	f = fopen(path, "r");
# 1001|   	pwtest_ptr_notnull(f);
# 1002|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1326]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-json.c:1000:13: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen(&path, "r")’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:222:13: note: in expansion of macro ‘SPA_LIKELY’
#  998|   	pwtest_ptr_notnull(basedir);
#  999|   	spa_scnprintf(path, sizeof(path), "%s/test-spa-json.txt", basedir);
# 1000|-> 	f = fopen(path, "r");
# 1001|   	pwtest_ptr_notnull(f);
# 1002|   

Error: GCC_ANALYZER_WARNING (CWE-401): [#def1327]
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-json.c: scope_hint: In function ‘json_data’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-json.c:1066:1: warning[-Wanalyzer-malloc-leak]: leak of ‘name’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-json.c:8: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:467:35: note: in definition of macro ‘PWTEST’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:19: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:18: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:217:9: note: in expansion of macro ‘spa_assert_se’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:222:13: note: in expansion of macro ‘SPA_LIKELY’
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:142: included_from: Included from here.
pipewire-1.2.6-build/pipewire-1.2.6/test/pwtest.h:259:9: note: in expansion of macro ‘pwtest_comparison_ptr_’
pipewire-1.2.6-build/pipewire-1.2.6/test/test-spa-json.c:1001:9: note: in expansion of macro ‘pwtest_ptr_notnull’
pipewire-1.2.6-build/pipewire-1.2.6/spa/include/spa/utils/string.h:62:9: note: in expansion of macro ‘spa_assert_se’
# 1064|   
# 1065|   	return PWTEST_PASS;
# 1066|-> }
# 1067|   
# 1068|   PWTEST_SUITE(spa_json)

Error: CPPCHECK_WARNING (CWE-457): [#def1328]
pipewire-1.2.6-build/pipewire-1.2.6/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|   

Scan Properties

analyzer-version-clippy1.82.0
analyzer-version-cppcheck2.16.0
analyzer-version-gcc14.2.1
analyzer-version-gcc-analyzer15.0.0
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-227.us-west-2.compute.internal
mock-configfedora-rawhide-gcc-latest-x86_64
project-namepipewire-1.2.6-1.fc42
store-results-to/tmp/tmpuofmh28i/pipewire-1.2.6-1.fc42.tar.xz
time-created2024-11-13 02:33:15
time-finished2024-11-13 02:46:39
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-gcc-latest-x86_64' '-t' 'clippy,cppcheck,gcc,unicontrol,shellcheck' '-o' '/tmp/tmpuofmh28i/pipewire-1.2.6-1.fc42.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install=gcc-latest' '--gcc-analyzer-bin=/opt/gcc-latest/bin/gcc' '/tmp/tmpuofmh28i/pipewire-1.2.6-1.fc42.src.rpm'
tool-versioncsmock-3.7.1.20241107.094801.gb3f0f26.pr_192-1.el9