pulseaudio-17.0-6.fc43

List of Findings

Error: SHELLCHECK_WARNING: [#def1]
/usr/bin/pa-info:27:25: warning[SC2179]: Use array+=("item") to append items to an array.
#   25|   	local cards=()
#   26|   	while read -r line; do
#   27|-> 		[[ $line =~ $re ]] && cards+="${BASH_REMATCH[1]} "
#   28|   	done <<< "$(ls --directory /proc/asound/card[0-9])"
#   29|   	echo $cards

Error: SHELLCHECK_WARNING (CWE-670): [#def2]
/usr/bin/pa-info:29:7: warning[SC2128]: Expanding an array without an index only gives the first element.
#   27|   		[[ $line =~ $re ]] && cards+="${BASH_REMATCH[1]} "
#   28|   	done <<< "$(ls --directory /proc/asound/card[0-9])"
#   29|-> 	echo $cards
#   30|   }
#   31|   function jacks_do {

Error: SHELLCHECK_WARNING (CWE-140): [#def3]
/usr/bin/pa-info:32:15: warning[SC2207]: Prefer mapfile or read -a to split command output (or quote to avoid splitting).
#   30|   }
#   31|   function jacks_do {
#   32|-> 	local cards=($(cards_get))
#   33|   	for card in "${cards[@]}" ; do
#   34|   		echo "card=$card"

Error: GCC_ANALYZER_WARNING (CWE-476): [#def4]
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1759:17: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1707:12: enter_function: entry to ‘mixer_class_event’
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1714:8: branch_false: following ‘false’ branch (when ‘mask != 4294967295’)...
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1721:16: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1721:15: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1722:38: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1723:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1724:34: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1733:25: call_function: calling ‘pa_alsa_mixer_find’ from ‘mixer_class_event’
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1733:25: return_function: returning to ‘mixer_class_event’ from ‘pa_alsa_mixer_find’
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1734:16: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1744:26: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1745:20: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1759:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/alsa/alsa-util.c:1759:17: danger: dereference of NULL ‘0’
# 1757|                       return 0;
# 1758|                   }
# 1759|->                 *_helem = helem;
# 1760|               }
# 1761|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
pulseaudio-17.0/redhat-linux-build/../src/modules/bluetooth/a2dp-codec-ldac-gst.c:376:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘channels’
#  374|       switch (codec_type) {
#  375|           case LDAC_EQMID_HQ:
#  376|->             return 4 / channels;
#  377|           case LDAC_EQMID_SQ:
#  378|               return 6 / channels;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def6]
pulseaudio-17.0/redhat-linux-build/../src/modules/bluetooth/a2dp-codec-ldac-gst.c:378:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘channels’
#  376|               return 4 / channels;
#  377|           case LDAC_EQMID_SQ:
#  378|->             return 6 / channels;
#  379|           case LDAC_EQMID_MQ:
#  380|               return 12 / channels;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def7]
pulseaudio-17.0/redhat-linux-build/../src/modules/bluetooth/a2dp-codec-ldac-gst.c:380:20: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘channels’
#  378|               return 6 / channels;
#  379|           case LDAC_EQMID_MQ:
#  380|->             return 12 / channels;
#  381|           default:
#  382|               break;

Error: GCC_ANALYZER_WARNING (CWE-457): [#def8]
pulseaudio-17.0/redhat-linux-build/../src/modules/bluetooth/a2dp-codec-ldac-gst.c:385:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘channels’
#  383|       }
#  384|   
#  385|->     return 6 / channels;
#  386|   }
#  387|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def9]
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:304:29: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*snapshot.plen’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:338:13: enter_function: entry to ‘time_callback’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:345:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:346:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:346:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:347:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:347:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:348:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:348:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:350:10: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:350:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:354:5: call_function: calling ‘pa_msgobject_cast’ from ‘time_callback’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:354:5: return_function: returning to ‘time_callback’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:355:5: call_function: calling ‘pa_msgobject_cast’ from ‘time_callback’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:355:5: return_function: returning to ‘time_callback’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:358:17: call_function: calling ‘calc_diff’ from ‘time_callback’
#  302|   
#  303|       /* get latency difference between playback and record */
#  304|->     plen = pa_bytes_to_usec(snapshot->plen, &u->sink_input->sample_spec);
#  305|       rlen = pa_bytes_to_usec(snapshot->rlen, &u->source_output->sample_spec);
#  306|       if (plen > rlen)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def10]
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:312:35: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*snapshot.sink_delay’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:707:13: enter_function: entry to ‘do_resync’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:715:5: call_function: calling ‘pa_msgobject_cast’ from ‘do_resync’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:715:5: return_function: returning to ‘do_resync’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/modules/echo-cancel/module-echo-cancel.c:723:17: call_function: calling ‘calc_diff’ from ‘do_resync’
#  310|   
#  311|       source_delay = pa_bytes_to_usec(snapshot->source_delay, &u->source_output->sample_spec);
#  312|->     sink_delay = pa_bytes_to_usec(snapshot->sink_delay, &u->sink_input->sample_spec);
#  313|       buffer_latency += source_delay + sink_delay;
#  314|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def11]
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:276:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘rdata.timestamp’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:249:13: enter_function: entry to ‘adjust_rates’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:262:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:263:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:263:5: call_function: calling ‘pa_sink_assert_ref’ from ‘adjust_rates’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:263:5: return_function: returning to ‘adjust_rates’ from ‘pa_sink_assert_ref’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:265:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:268:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:268:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:272:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:272:5: call_function: calling ‘pa_msgobject_cast’ from ‘adjust_rates’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:272:5: return_function: returning to ‘adjust_rates’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-combine-sink.c:276:5: danger: use of uninitialized value ‘rdata.timestamp’ here
#  274|       /* The sink snapshot time is the time when the last data was rendered.
#  275|        * Latency is calculated for that point in time. */
#  276|->     now = rdata.timestamp;
#  277|   
#  278|       /* Sink snapshot is not yet valid. */

Error: GCC_ANALYZER_WARNING (CWE-476): [#def12]
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:345:11: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘source’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:778:26: enter_function: entry to ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:783:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:785:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: call_function: calling ‘message_is_property_get_all’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get_all’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:822:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:829:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:831:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:832:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: call_function: calling ‘get_mediacontainer2_list_args’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: return_function: returning to ‘sinks_and_sources_handler’ from ‘get_mediacontainer2_list_args’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:16: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:835:32: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:837:20: branch_true: following ‘true’ branch (when the strings are equal)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:844:21: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:846:21: branch_true: following ‘true’ branch (when ‘sink’ is non-NULL)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:29: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:28: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:849:29: call_function: calling ‘append_sink_or_source_item_properties’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:849:29: return_function: returning to ‘sinks_and_sources_handler’ from ‘append_sink_or_source_item_properties’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:846:21: branch_true: following ‘true’ branch (when ‘sink’ is non-NULL)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:29: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:849:29: call_function: calling ‘append_sink_or_source_item_properties’ from ‘sinks_and_sources_handler’
#  343|       }
#  344|   
#  345|->     url = compute_url(u, sink ? sink->monitor_source->name : source->name);
#  346|   
#  347|       pa_assert_se(dbus_message_iter_open_container(iter, DBUS_TYPE_VARIANT, "as", &sub));

Error: GCC_ANALYZER_WARNING (CWE-476): [#def13]
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:376:20: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘source’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:778:26: enter_function: entry to ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:783:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:785:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: call_function: calling ‘message_is_property_get_all’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get_all’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:822:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:829:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:831:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:832:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: call_function: calling ‘get_mediacontainer2_list_args’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: return_function: returning to ‘sinks_and_sources_handler’ from ‘get_mediacontainer2_list_args’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:16: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:835:32: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:837:20: branch_true: following ‘true’ branch (when the strings are equal)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:844:21: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:846:21: branch_true: following ‘true’ branch (when ‘sink’ is non-NULL)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:29: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:28: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:849:29: call_function: calling ‘append_sink_or_source_item_properties’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:849:29: return_function: returning to ‘sinks_and_sources_handler’ from ‘append_sink_or_source_item_properties’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:846:21: branch_true: following ‘true’ branch (when ‘sink’ is non-NULL)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:29: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:849:29: call_function: calling ‘append_sink_or_source_item_properties’ from ‘sinks_and_sources_handler’
#  374|       pa_assert(sink || source);
#  375|   
#  376|->     display_name = pa_strna(pa_proplist_gets(sink ? sink->proplist : source->proplist, PA_PROP_DEVICE_DESCRIPTION));
#  377|       append_variant_string(m, iter, display_name);
#  378|   }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def14]
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:848:29: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:778:26: enter_function: entry to ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:783:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:785:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: call_function: calling ‘message_is_property_get_all’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get_all’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:822:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:829:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:831:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:832:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: call_function: calling ‘get_mediacontainer2_list_args’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: return_function: returning to ‘sinks_and_sources_handler’ from ‘get_mediacontainer2_list_args’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:16: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:835:32: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:837:20: branch_true: following ‘true’ branch (when the strings are equal)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:844:21: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:846:21: branch_true: following ‘true’ branch (when ‘sink’ is non-NULL)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:29: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:847:28: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:848:29: danger: out-of-bounds write from byte 78 till byte 123 but ‘sink_path’ ends at byte 78
#  846|                       PA_IDXSET_FOREACH(sink, u->core->sinks, idx) {
#  847|                           if (item_index >= offset && item_index < end) {
#  848|->                             sprintf(path_end, "%u", sink->index);
#  849|                               append_sink_or_source_item_properties(r, &sub, sink_path, u, sink, NULL, filter, filter_len);
#  850|                           }

Error: GCC_ANALYZER_WARNING (CWE-121): [#def15]
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:865:33: warning[-Wanalyzer-out-of-bounds]: stack-based buffer overflow
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:778:26: enter_function: entry to ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:783:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:785:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:792:16: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:791:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:796:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: call_function: calling ‘message_is_property_get’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:800:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: call_function: calling ‘message_is_property_get_all’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:20: return_function: returning to ‘sinks_and_sources_handler’ from ‘message_is_property_get_all’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:804:19: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:822:20: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:829:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:831:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:832:13: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: call_function: calling ‘get_mediacontainer2_list_args’ from ‘sinks_and_sources_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:17: return_function: returning to ‘sinks_and_sources_handler’ from ‘get_mediacontainer2_list_args’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:834:16: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:835:32: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:837:20: branch_false: following ‘false’ branch (when the strings are non-equal)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:860:21: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:862:21: branch_true: following ‘true’ branch (when ‘source’ is non-NULL)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:863:30: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:863:28: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:864:33: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:864:32: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-rygel-media-server.c:865:33: danger: out-of-bounds write from byte 80 till byte 127 but ‘source_path’ ends at byte 80
#  863|                           if (!source->monitor_of) {
#  864|                               if (item_index >= offset && item_index < end) {
#  865|->                                 sprintf(path_end, "%u", source->index);
#  866|                                   append_sink_or_source_item_properties(r, &sub, source_path, u, NULL, source, filter, filter_len);
#  867|                               }

Error: GCC_ANALYZER_WARNING (CWE-457): [#def16]
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:1016:24: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘send_counter’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:920:13: enter_function: entry to ‘stream_get_latency_callback’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:932:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:933:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:933:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:935:8: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:935:8: branch_false: following ‘false’ branch (when ‘command == 2’)...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:944:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:945:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:946:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:947:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:948:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:949:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:943:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:955:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:966:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:971:15: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:971:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:975:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:1015:5: call_function: calling ‘pa_msgobject_cast’ from ‘stream_get_latency_callback’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:1015:5: return_function: returning to ‘stream_get_latency_callback’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/modules/module-tunnel.c:1016:24: danger: use of uninitialized value ‘send_counter’ here
# 1014|   #ifdef TUNNEL_SINK
# 1015|       pa_asyncmsgq_send(u->sink->asyncmsgq, PA_MSGOBJECT(u->sink), SINK_MESSAGE_GET_LATENCY_SNAPSHOT, &send_counter, 0, NULL);
# 1016|->     delay += (int64_t) pa_bytes_to_usec(send_counter - u->receive_snapshot, ss);
# 1017|   #endif
# 1018|   

Error: COMPILER_WARNING (CWE-477): [#def17]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:89:5: warning[-Wdeprecated-declarations]: ‘RSA_new’ is deprecated: Since OpenSSL 3.0
#   87|       pa_assert(str);
#   88|   
#   89|->     rsa = RSA_new();
#   90|       if (!rsa) {
#   91|           pa_log("RSA_new() failed.");

Error: COMPILER_WARNING (CWE-477): [#def18]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:111:5: warning[-Wdeprecated-declarations]: ‘RSA_set0_key’ is deprecated: Since OpenSSL 3.0
#  109|       }
#  110|   
#  111|->     r = RSA_set0_key(rsa, n_bn, e_bn, NULL);
#  112|       if (r == 0) {
#  113|           pa_log("RSA_set0_key() failed.");

Error: COMPILER_WARNING (CWE-477): [#def19]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:123:5: warning[-Wdeprecated-declarations]: ‘RSA_public_encrypt’ is deprecated: Since OpenSSL 3.0
#  121|       e_bn = NULL;
#  122|   
#  123|->     size = RSA_public_encrypt(len, data, str, rsa, RSA_PKCS1_OAEP_PADDING);
#  124|       if (size == -1) {
#  125|           pa_log("RSA_public_encrypt() failed.");

Error: COMPILER_WARNING (CWE-477): [#def20]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:129:5: warning[-Wdeprecated-declarations]: ‘RSA_free’ is deprecated: Since OpenSSL 3.0
#  127|       }
#  128|   
#  129|->     RSA_free(rsa);
#  130|       return size;
#  131|   

Error: COMPILER_WARNING (CWE-477): [#def21]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:140:9: warning[-Wdeprecated-declarations]: ‘RSA_free’ is deprecated: Since OpenSSL 3.0
#  138|   
#  139|       if (rsa)
#  140|->         RSA_free(rsa);
#  141|   
#  142|       return -1;

Error: COMPILER_WARNING (CWE-477): [#def22]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:151:5: warning[-Wdeprecated-declarations]: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0
#  149|   
#  150|       pa_random(s->key, sizeof(s->key));
#  151|->     AES_set_encrypt_key(s->key, 128, &s->aes);
#  152|       pa_random(s->iv, sizeof(s->iv));
#  153|   

Error: COMPILER_WARNING (CWE-477): [#def23]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-crypto.c:207:9: warning[-Wdeprecated-declarations]: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0
#  205|               buffer[j] ^= nv[j];
#  206|   
#  207|->         AES_encrypt(buffer, buffer, &s->aes);
#  208|   
#  209|           memcpy(nv, buffer, AES_CHUNK_SIZE);

Error: GCC_ANALYZER_WARNING (CWE-476): [#def24]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:601:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pollfd’
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:430:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:432:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:454:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:456:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:456:17: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:459:31: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:560:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:573:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:585:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:586:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:587:42: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:588:31: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:588:17: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:589:21: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:589:20: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:598:27: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:598:27: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:598:48: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:598:28: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:601:25: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:601:25: danger: dereference of NULL ‘pollfd’
#  599|                       /* Buffer is full, wait for POLLOUT. */
#  600|                       if (!u->oob) {
#  601|->                         pollfd->events = POLLOUT;
#  602|                           pollfd->revents = 0;
#  603|                       }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def25]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:636:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pollfd’
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:430:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:432:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:454:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:456:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:456:17: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:459:31: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:560:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:573:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:585:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:586:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:634:27: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:635:25: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:635:24: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:636:25: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:636:25: danger: dereference of NULL ‘pollfd’
#  634|                   } else if (!u->oob) {
#  635|                       if (u->memchunk.length > 0) {
#  636|->                         pollfd->events = POLLOUT;
#  637|                           pollfd->revents = 0;
#  638|                       } else {

Error: GCC_ANALYZER_WARNING (CWE-476): [#def26]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:641:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘pollfd’
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:430:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:432:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:454:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:456:17: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:456:17: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:459:31: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:560:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:573:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:585:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:586:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:634:27: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:635:25: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:635:24: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:639:33: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-sink.c:641:25: danger: dereference of NULL ‘pollfd’
#  639|                           intvl = u->start + pa_bytes_to_usec(u->write_count, &u->sink->sample_spec);
#  640|                           pa_rtpoll_set_timer_absolute(u->rtpoll, intvl);
#  641|->                         pollfd->revents = 0;
#  642|                           pollfd->events = 0;
#  643|                       }

Error: COMPILER_WARNING (CWE-477): [#def27]
pulseaudio-17.0/redhat-linux-build/../src/modules/raop/raop-util.c:164:5: warning[-Wdeprecated-declarations]: ‘MD5’ is deprecated: Since OpenSSL 3.0
#  162|       pa_assert(str);
#  163|   
#  164|->     MD5((unsigned char*) data, len, d);
#  165|       s = pa_xnew(char, MD5_HASH_LENGTH);
#  166|       for (i = 0; i < MD5_DIGEST_LENGTH; i++)

Error: GCC_ANALYZER_WARNING (CWE-688): [#def28]
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:325:45: warning[-Wanalyzer-null-argument]: use of NULL ‘name_owner’ where non-null expected
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:289:26: enter_function: entry to ‘filter_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:296:15: release_memory: ‘name_owner’ is NULL
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:301:9: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:303:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:303:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:306:22: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:306:20: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:313:34: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:313:20: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:321:28: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:324:43: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:324:36: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:324:101: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:324:75: call_function: calling ‘rd_dbus_get_name_owner’ from ‘filter_handler’
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:324:75: return_function: returning to ‘filter_handler’ from ‘rd_dbus_get_name_owner’
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:324:37: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:325:45: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:325:45: release_memory: ‘name_owner’ is NULL
pulseaudio-17.0/redhat-linux-build/../src/modules/reserve.c:325:45: danger: argument 1 (‘name_owner’) NULL where non-null expected
#  323|   
#  324|   				if ((un = dbus_bus_get_unique_name(c)) && rd_dbus_get_name_owner(c, d->service_name, &name_owner, &error) == 0)
#  325|-> 					if (strcmp(name_owner, un) == 0)
#  326|   						goto invalid; /* Name still owned by us */
#  327|   			}

Error: GCC_ANALYZER_WARNING (CWE-401): [#def29]
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:202:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(to,  from)’
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:197:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:198:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:198:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:199:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:199:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:201:10: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:201:10: acquire_memory: allocated here
pulseaudio-17.0/redhat-linux-build/../src/pulse/utf8.c:202:8: danger: ‘iconv_open(to,  from)’ leaks here; was allocated at [(7)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/6)
#  200|   
#  201|       cd = iconv_open(to, from);
#  202|->     if (cd == (iconv_t)-1)
#  203|           return NULL;
#  204|   

Error: GCC_ANALYZER_WARNING (CWE-1341): [#def30]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:572:18: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3755:6: enter_function: entry to ‘pa_nullify_stdfds’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3758:9: call_function: calling ‘pa_close’ from ‘pa_nullify_stdfds’
#  570|           int r;
#  571|   
#  572|->         if ((r = close(fd)) < 0)
#  573|               if (errno == EINTR)
#  574|                   continue;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def31]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3762:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3762:9: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3762:9: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(1)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/0)
# 3760|           pa_close(STDERR_FILENO);
# 3761|   
# 3762|->         pa_assert_se(open("/dev/null", O_RDONLY) == STDIN_FILENO);
# 3763|           pa_assert_se(open("/dev/null", O_WRONLY) == STDOUT_FILENO);
# 3764|           pa_assert_se(open("/dev/null", O_WRONLY) == STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def32]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3763:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3762:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3763:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3763:9: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3763:9: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(3)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/2)
# 3761|   
# 3762|           pa_assert_se(open("/dev/null", O_RDONLY) == STDIN_FILENO);
# 3763|->         pa_assert_se(open("/dev/null", O_WRONLY) == STDOUT_FILENO);
# 3764|           pa_assert_se(open("/dev/null", O_WRONLY) == STDERR_FILENO);
# 3765|   #else

Error: GCC_ANALYZER_WARNING (CWE-775): [#def33]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3764:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3762:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3763:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3763:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3764:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3764:9: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/core-util.c:3764:9: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(5)](sarif:/runs/0/results/3/codeFlows/0/threadFlows/0/locations/4)
# 3762|           pa_assert_se(open("/dev/null", O_RDONLY) == STDIN_FILENO);
# 3763|           pa_assert_se(open("/dev/null", O_WRONLY) == STDOUT_FILENO);
# 3764|->         pa_assert_se(open("/dev/null", O_WRONLY) == STDERR_FILENO);
# 3765|   #else
# 3766|           FreeConsole();

Error: GCC_ANALYZER_WARNING: [#def34]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:96:21: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:177:20: enter_function: entry to ‘av_resample_init’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:188:5: call_function: calling ‘av_build_filter’ from ‘av_resample_init’
#   94|   void av_build_filter(FELEM *filter, double factor, int tap_count, int phase_count, int scale, int type){
#   95|       int ph, i;
#   96|->     double x, y, w, tab[tap_count];
#   97|       const int center= (tap_count-1)/2;
#   98|   

Error: GCC_ANALYZER_WARNING (CWE-476): [#def35]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:135:13: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘filter’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:177:20: enter_function: entry to ‘av_resample_init’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:187:21: acquire_memory: this call could return NULL
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:188:5: call_function: calling ‘av_build_filter’ from ‘av_resample_init’
#  133|               filter[ph * tap_count + i] = tab[i] / norm;
#  134|   #else
#  135|->             filter[ph * tap_count + i] = av_clip(lrintf(tab[i] * scale / norm), FELEM_MIN, FELEM_MAX);
#  136|   #endif
#  137|           }

Error: GCC_ANALYZER_WARNING (CWE-476): [#def36]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:182:5: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘c’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:178:27: acquire_memory: this call could return NULL
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:182:5: danger: ‘c’ could be NULL: unchecked value from [(1)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/0)
#  180|       int phase_count= 1<<phase_shift;
#  181|   
#  182|->     c->phase_shift= phase_shift;
#  183|       c->phase_mask= phase_count-1;
#  184|       c->linear= linear;

Error: GCC_ANALYZER_WARNING: [#def37]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/ffmpeg/resample2.c:187:21: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results
#  185|   
#  186|       c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);
#  187|->     c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
#  188|       av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
#  189|       memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));

Error: GCC_ANALYZER_WARNING (CWE-457): [#def38]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2404:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2393:6: enter_function: entry to ‘pa_sink_get_mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2395:5: call_function: calling ‘pa_sink_assert_ref’ from ‘pa_sink_get_mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2395:5: return_function: returning to ‘pa_sink_get_mute’ from ‘pa_sink_assert_ref’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2396:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2397:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2397:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2399:10: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2399:9: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2402:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2402:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2403:17: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2403:17: call_function: calling ‘pa_msgobject_cast’ from ‘pa_sink_get_mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2403:17: return_function: returning to ‘pa_sink_get_mute’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2403:16: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2404:17: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:2404:17: danger: use of uninitialized value ‘mute’ here
# 2402|           if (s->flags & PA_SINK_DEFERRED_VOLUME) {
# 2403|               if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_MUTE, &mute, 0, NULL) >= 0)
# 2404|->                 pa_sink_mute_changed(s, mute);
# 2405|           } else {
# 2406|               if (s->get_mute(s, &mute) >= 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def39]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3464:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3454:8: enter_function: entry to ‘pa_sink_get_max_rewind’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3456:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3457:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3457:5: call_function: calling ‘pa_sink_assert_ref’ from ‘pa_sink_get_max_rewind’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3457:5: return_function: returning to ‘pa_sink_get_max_rewind’ from ‘pa_sink_assert_ref’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3459:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3462:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3462:5: call_function: calling ‘pa_msgobject_cast’ from ‘pa_sink_get_max_rewind’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3462:5: return_function: returning to ‘pa_sink_get_max_rewind’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3462:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3464:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3464:12: danger: use of uninitialized value ‘r’ here
# 3462|       pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_MAX_REWIND, &r, 0, NULL) == 0);
# 3463|   
# 3464|->     return r;
# 3465|   }
# 3466|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def40]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3478:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3468:8: enter_function: entry to ‘pa_sink_get_max_request’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3470:5: call_function: calling ‘pa_sink_assert_ref’ from ‘pa_sink_get_max_request’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3470:5: return_function: returning to ‘pa_sink_get_max_request’ from ‘pa_sink_assert_ref’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3471:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3473:10: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3473:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3476:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3476:5: call_function: calling ‘pa_msgobject_cast’ from ‘pa_sink_get_max_request’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3476:5: return_function: returning to ‘pa_sink_get_max_request’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3476:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3478:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/sink.c:3478:12: danger: use of uninitialized value ‘r’ here
# 3476|       pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_MAX_REQUEST, &r, 0, NULL) == 0);
# 3477|   
# 3478|->     return r;
# 3479|   }
# 3480|   

Error: GCC_ANALYZER_WARNING (CWE-457): [#def41]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1927:17: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1916:6: enter_function: entry to ‘pa_source_get_mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1918:5: call_function: calling ‘pa_source_assert_ref’ from ‘pa_source_get_mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1918:5: return_function: returning to ‘pa_source_get_mute’ from ‘pa_source_assert_ref’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1919:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1920:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1920:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1922:10: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1922:9: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1925:13: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1925:12: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1926:17: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1926:17: call_function: calling ‘pa_msgobject_cast’ from ‘pa_source_get_mute’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1926:17: return_function: returning to ‘pa_source_get_mute’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1926:16: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1927:17: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:1927:17: danger: use of uninitialized value ‘mute’ here
# 1925|           if (s->flags & PA_SOURCE_DEFERRED_VOLUME) {
# 1926|               if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_MUTE, &mute, 0, NULL) >= 0)
# 1927|->                 pa_source_mute_changed(s, mute);
# 1928|           } else {
# 1929|               if (s->get_mute(s, &mute) >= 0)

Error: GCC_ANALYZER_WARNING (CWE-457): [#def42]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2673:12: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘r’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2663:8: enter_function: entry to ‘pa_source_get_max_rewind’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2665:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2666:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2666:5: call_function: calling ‘pa_source_assert_ref’ from ‘pa_source_get_max_rewind’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2666:5: return_function: returning to ‘pa_source_get_max_rewind’ from ‘pa_source_assert_ref’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2668:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2671:5: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2671:5: call_function: calling ‘pa_msgobject_cast’ from ‘pa_source_get_max_rewind’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2671:5: return_function: returning to ‘pa_source_get_max_rewind’ from ‘pa_msgobject_cast’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2671:5: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2673:12: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/source.c:2673:12: danger: use of uninitialized value ‘r’ here
# 2671|       pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_MAX_REWIND, &r, 0, NULL) == 0);
# 2672|   
# 2673|->     return r;
# 2674|   }
# 2675|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def43]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pipe_fds[1], 1)’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:50:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:55:18: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:55:8: branch_false: following ‘false’ branch (when ‘child != -1’)...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:59:15: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:59:15: branch_false: following ‘false’ branch (when ‘child == 0’)...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:71:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:73:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: danger: ‘dup2(pipe_fds[1], 1)’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
#   72|   
#   73|           pa_assert_se(pa_close(pipe_fds[0]) == 0);
#   74|->         pa_assert_se(dup2(pipe_fds[1], STDOUT_FILENO) == STDOUT_FILENO);
#   75|   
#   76|           if (pipe_fds[1] != STDOUT_FILENO)

Error: GCC_ANALYZER_WARNING (CWE-775): [#def44]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:80:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 0)’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:50:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:55:18: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:55:8: branch_false: following ‘false’ branch (when ‘child != -1’)...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:59:15: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:59:15: branch_false: following ‘false’ branch (when ‘child == 0’)...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:71:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:73:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:76:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:76:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:79:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:80:9: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:80:9: danger: ‘open("/dev/null", 0)’ leaks here; was opened at [(14)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/13)
#   78|   
#   79|           pa_close(STDIN_FILENO);
#   80|->         pa_assert_se(open("/dev/null", O_RDONLY) == STDIN_FILENO);
#   81|   
#   82|           pa_close(STDERR_FILENO);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def45]
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:83:9: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open("/dev/null", 1)’
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:50:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:55:18: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:55:8: branch_false: following ‘false’ branch (when ‘child != -1’)...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:59:15: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:59:15: branch_false: following ‘false’ branch (when ‘child == 0’)...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:71:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:73:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:74:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:76:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:76:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:79:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:80:9: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:82:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:83:9: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/pulsecore/start-child.c:83:9: danger: ‘open("/dev/null", 1)’ leaks here; was opened at [(16)](sarif:/runs/0/results/2/codeFlows/0/threadFlows/0/locations/15)
#   81|   
#   82|           pa_close(STDERR_FILENO);
#   83|->         pa_assert_se(open("/dev/null", O_WRONLY) == STDERR_FILENO);
#   84|   
#   85|           pa_close_all(-1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def46]
pulseaudio-17.0/redhat-linux-build/../src/tests/close-test.c:12:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#   10|   int main(int argc, char *argv[]) {
#   11|   
#   12|->     open("/dev/null", O_RDONLY);
#   13|       open("/dev/null", O_RDONLY);
#   14|       open("/dev/null", O_RDONLY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
pulseaudio-17.0/redhat-linux-build/../src/tests/close-test.c:13:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#   11|   
#   12|       open("/dev/null", O_RDONLY);
#   13|->     open("/dev/null", O_RDONLY);
#   14|       open("/dev/null", O_RDONLY);
#   15|       open("/dev/null", O_RDONLY);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def48]
pulseaudio-17.0/redhat-linux-build/../src/tests/close-test.c:14:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#   12|       open("/dev/null", O_RDONLY);
#   13|       open("/dev/null", O_RDONLY);
#   14|->     open("/dev/null", O_RDONLY);
#   15|       open("/dev/null", O_RDONLY);
#   16|   

Error: GCC_ANALYZER_WARNING (CWE-775): [#def49]
pulseaudio-17.0/redhat-linux-build/../src/tests/close-test.c:15:5: warning[-Wanalyzer-fd-leak]: leak of file descriptor
#   13|       open("/dev/null", O_RDONLY);
#   14|       open("/dev/null", O_RDONLY);
#   15|->     open("/dev/null", O_RDONLY);
#   16|   
#   17|       pa_close_all(5, -1);

Error: GCC_ANALYZER_WARNING (CWE-775): [#def50]
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(open(argv[1], 0), 0)’
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:47:8: branch_true: following ‘true’ branch (when ‘argc > 1’)...
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:50:19: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:50:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:13: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:12: danger: ‘dup2(open(argv[1], 0), 0)’ leaks here; was opened at [(5)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/4)
#   53|           }
#   54|   
#   55|->         if (dup2(fd, STDIN_FILENO) < 0) {
#   56|               fprintf(stderr, __FILE__": dup2() failed: %s\n", strerror(errno));
#   57|               goto finish;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def51]
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘open(argv[1], 0)’
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:47:8: branch_true: following ‘true’ branch (when ‘argc > 1’)...
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:50:19: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:50:19: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:50:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/tests/pacat-simple.c:55:12: danger: ‘open(argv[1], 0)’ leaks here; was opened at [(3)](sarif:/runs/0/results/1/codeFlows/0/threadFlows/0/locations/2)
#   53|           }
#   54|   
#   55|->         if (dup2(fd, STDIN_FILENO) < 0) {
#   56|               fprintf(stderr, __FILE__": dup2() failed: %s\n", strerror(errno));
#   57|               goto finish;

Error: GCC_ANALYZER_WARNING (CWE-775): [#def52]
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1025:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(pa_open_cloexec(filename,  <unknown>, 438), (int)(mode != PLAYBACK))’
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:790:8: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:791:9: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1010:8: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1015:9: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1015:8: branch_true: following ‘true’ branch...
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1018:24: branch_true: ...to here
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1020:12: branch_false: following ‘false’ branch...
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1025:13: branch_false: ...to here
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1025:13: acquire_resource: opened here
pulseaudio-17.0/redhat-linux-build/../src/utils/pacat.c:1025:12: danger: ‘dup2(pa_open_cloexec(filename,  <unknown>, 438), (int)(mode != PLAYBACK))’ leaks here; was opened at [(10)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/9)
# 1023|           }
# 1024|   
# 1025|->         if (dup2(fd, mode == PLAYBACK ? STDIN_FILENO : STDOUT_FILENO) < 0) {
# 1026|               pa_log(_("dup2(): %s"), strerror(errno));
# 1027|               goto quit;

Error: CPPCHECK_WARNING (CWE-457): [#def53]
pulseaudio-17.0/src/modules/alsa/alsa-mixer.c:3709: error[legacyUninitvar]: Uninitialized variable: a_limit
# 3707|                   pa_assert_not_reached();
# 3708|   
# 3709|->             if (a_limit > b->volume_limit)
# 3710|                   return false;
# 3711|           }

Error: CPPCHECK_WARNING (CWE-457): [#def54]
pulseaudio-17.0/src/modules/alsa/alsa-ucm.c:1092: 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
# 1090|   
# 1091|       /* Sort by alphabetical order so as to have a deterministic naming scheme */
# 1092|->     qsort(&sorted[0], num, sizeof(pa_alsa_ucm_device *), pa_alsa_ucm_device_cmp);
# 1093|   
# 1094|       for (i = 0; i < num; i++) {

Error: CPPCHECK_WARNING (CWE-457): [#def55]
pulseaudio-17.0/src/modules/alsa/alsa-ucm.c:1124: 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
# 1122|   
# 1123|       /* Sort by alphabetical order to match devset_name() */
# 1124|->     qsort(&sorted[0], num, sizeof(pa_alsa_ucm_device *), pa_alsa_ucm_device_cmp);
# 1125|   
# 1126|       for (i = 0; i < num; i++) {

Error: COMPILER_WARNING (CWE-457): [#def56]
pulseaudio-17.0/src/modules/bluetooth/a2dp-codec-ldac-gst.c: scope_hint: In function ‘get_ldac_num_frames’
pulseaudio-17.0/src/modules/bluetooth/a2dp-codec-ldac-gst.c:376:22: warning[-Wmaybe-uninitialized]: ‘channels’ may be used uninitialized
#  376 |             return 4 / channels;
#      |                    ~~^~~~~~~~~~
pulseaudio-17.0/src/modules/bluetooth/a2dp-codec-ldac-gst.c:360:13: note: ‘channels’ was declared here
#  360 |     uint8_t channels;
#      |             ^~~~~~~~
#  374|       switch (codec_type) {
#  375|           case LDAC_EQMID_HQ:
#  376|->             return 4 / channels;
#  377|           case LDAC_EQMID_SQ:
#  378|               return 6 / channels;

Error: CPPCHECK_WARNING (CWE-457): [#def57]
pulseaudio-17.0/src/modules/echo-cancel/module-echo-cancel.c:354: error[uninitvar]: Uninitialized variable: &latency_snapshot
#  352|   
#  353|       /* update our snapshots */
#  354|->     pa_asyncmsgq_send(u->source_output->source->asyncmsgq, PA_MSGOBJECT(u->source_output), SOURCE_OUTPUT_MESSAGE_LATENCY_SNAPSHOT, &latency_snapshot, 0, NULL);
#  355|       pa_asyncmsgq_send(u->sink_input->sink->asyncmsgq, PA_MSGOBJECT(u->sink_input), SINK_INPUT_MESSAGE_LATENCY_SNAPSHOT, &latency_snapshot, 0, NULL);
#  356|   

Error: CPPCHECK_WARNING (CWE-457): [#def58]
pulseaudio-17.0/src/modules/echo-cancel/module-echo-cancel.c:715: error[uninitvar]: Uninitialized variable: &latency_snapshot
#  713|       /* update our snapshot */
#  714|       /* 1. Get sink input latency snapshot, might cause buffers to be sent to source thread */
#  715|->     pa_asyncmsgq_send(u->sink_input->sink->asyncmsgq, PA_MSGOBJECT(u->sink_input), SINK_INPUT_MESSAGE_LATENCY_SNAPSHOT, &latency_snapshot, 0, NULL);
#  716|       /* 2. Pick up any in-flight buffers (and discard if needed) */
#  717|       while (pa_asyncmsgq_process_one(u->asyncmsgq))

Error: COMPILER_WARNING (CWE-457): [#def59]
pulseaudio-17.0/src/modules/echo-cancel/webrtc.cc: scope_hint: In function ‘pa_webrtc_ec_record’
pulseaudio-17.0/src/modules/echo-cancel/webrtc.cc:360:9: warning[-Wmaybe-uninitialized]: ‘old_volume’ may be used uninitialized
#  360 |         if (old_volume != new_volume)
#      |         ^~
pulseaudio-17.0/src/modules/echo-cancel/webrtc.cc:333:9: note: ‘old_volume’ was declared here
#  333 |     int old_volume, new_volume;
#      |         ^~~~~~~~~~
#  358|           }
#  359|   
#  360|->         if (old_volume != new_volume)
#  361|               pa_echo_canceller_set_capture_volume(ec, webrtc_volume_to_pa(new_volume));
#  362|       }

Error: CPPCHECK_WARNING (CWE-457): [#def60]
pulseaudio-17.0/src/modules/module-combine-sink.c:272: error[uninitvar]: Uninitialized variable: &rdata
#  270|   
#  271|       /* Get sink snapshot */
#  272|->     pa_asyncmsgq_send(u->sink->asyncmsgq, PA_MSGOBJECT(u->sink), SINK_MESSAGE_GET_SNAPSHOT, &rdata, 0, NULL);
#  273|   
#  274|       /* The sink snapshot time is the time when the last data was rendered.

Error: CPPCHECK_WARNING (CWE-909): [#def61]
pulseaudio-17.0/src/modules/module-combine-sink.c:276: error[uninitStructMember]: Uninitialized struct member: rdata.timestamp
#  274|       /* The sink snapshot time is the time when the last data was rendered.
#  275|        * Latency is calculated for that point in time. */
#  276|->     now = rdata.timestamp;
#  277|   
#  278|       /* Sink snapshot is not yet valid. */

Error: CPPCHECK_WARNING (CWE-909): [#def62]
pulseaudio-17.0/src/modules/module-combine-sink.c:303: error[uninitStructMember]: Uninitialized struct member: rdata.send_counter
#  301|           /* Add the data that was sent between taking the sink input snapshot
#  302|            * and the sink snapshot. */
#  303|->         snapshot_latency += pa_bytes_to_usec(rdata.send_counter - o->latency_snapshot.receive_counter, &o->sink_input->sample_spec);
#  304|   
#  305|           /* This is the current combined latency of the slave sink and the related

Error: COMPILER_WARNING (CWE-457): [#def63]
pulseaudio-17.0/src/modules/module-combine-sink.c:338:24: warning[-Wmaybe-uninitialized]: ‘o_max’ may be used uninitialized
#  338 |         target_latency = o_max->total_latency;
#      |         ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
pulseaudio-17.0/src/modules/module-combine-sink.c: scope_hint: In function ‘time_callback’
pulseaudio-17.0/src/modules/module-combine-sink.c:260:20: note: ‘o_max’ was declared here
#  260 |     struct output *o_max;
#      |                    ^~~~~
#  336|        * relative to it. */
#  337|       if (max_sink_latency > min_total_latency)
#  338|->         target_latency = o_max->total_latency;
#  339|       else
#  340|           target_latency = min_total_latency;

Error: COMPILER_WARNING (CWE-477): [#def64]
pulseaudio-17.0/src/modules/raop/raop-crypto.c: scope_hint: In function ‘rsa_encrypt’
pulseaudio-17.0/src/modules/raop/raop-crypto.c:89:5: warning[-Wdeprecated-declarations]: ‘RSA_new’ is deprecated: Since OpenSSL 3.0
#   89 |     rsa = RSA_new();
#      |     ^~~
pulseaudio-17.0/src/modules/raop/raop-crypto.c:32: included_from: Included from here.
/usr/include/openssl/rsa.h:212:28: note: declared here
#  212 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
#      |                            ^~~~~~~
#   87|       pa_assert(str);
#   88|   
#   89|->     rsa = RSA_new();
#   90|       if (!rsa) {
#   91|           pa_log("RSA_new() failed.");

Error: COMPILER_WARNING (CWE-477): [#def65]
pulseaudio-17.0/src/modules/raop/raop-crypto.c:111:5: warning[-Wdeprecated-declarations]: ‘RSA_set0_key’ is deprecated: Since OpenSSL 3.0
#  111 |     r = RSA_set0_key(rsa, n_bn, e_bn, NULL);
#      |     ^
/usr/include/openssl/rsa.h:218:27: note: declared here
#  218 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
#      |                           ^~~~~~~~~~~~
#  109|       }
#  110|   
#  111|->     r = RSA_set0_key(rsa, n_bn, e_bn, NULL);
#  112|       if (r == 0) {
#  113|           pa_log("RSA_set0_key() failed.");

Error: COMPILER_WARNING (CWE-477): [#def66]
pulseaudio-17.0/src/modules/raop/raop-crypto.c:123:5: warning[-Wdeprecated-declarations]: ‘RSA_public_encrypt’ is deprecated: Since OpenSSL 3.0
#  123 |     size = RSA_public_encrypt(len, data, str, rsa, RSA_PKCS1_OAEP_PADDING);
#      |     ^~~~
/usr/include/openssl/rsa.h:293:5: note: declared here
#  293 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to,
#      |     ^~~~~~~~~~~~~~~~~~
#  121|       e_bn = NULL;
#  122|   
#  123|->     size = RSA_public_encrypt(len, data, str, rsa, RSA_PKCS1_OAEP_PADDING);
#  124|       if (size == -1) {
#  125|           pa_log("RSA_public_encrypt() failed.");

Error: COMPILER_WARNING (CWE-477): [#def67]
pulseaudio-17.0/src/modules/raop/raop-crypto.c:129:5: warning[-Wdeprecated-declarations]: ‘RSA_free’ is deprecated: Since OpenSSL 3.0
#  129 |     RSA_free(rsa);
#      |     ^~~~~~~~
/usr/include/openssl/rsa.h:304:28: note: declared here
#  304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
#      |                            ^~~~~~~~
#  127|       }
#  128|   
#  129|->     RSA_free(rsa);
#  130|       return size;
#  131|   

Error: COMPILER_WARNING (CWE-477): [#def68]
pulseaudio-17.0/src/modules/raop/raop-crypto.c:140:9: warning[-Wdeprecated-declarations]: ‘RSA_free’ is deprecated: Since OpenSSL 3.0
#  140 |         RSA_free(rsa);
#      |         ^~~~~~~~
/usr/include/openssl/rsa.h:304:28: note: declared here
#  304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
#      |                            ^~~~~~~~
#  138|   
#  139|       if (rsa)
#  140|->         RSA_free(rsa);
#  141|   
#  142|       return -1;

Error: COMPILER_WARNING (CWE-477): [#def69]
pulseaudio-17.0/src/modules/raop/raop-crypto.c: scope_hint: In function ‘pa_raop_secret_new’
pulseaudio-17.0/src/modules/raop/raop-crypto.c:151:5: warning[-Wdeprecated-declarations]: ‘AES_set_encrypt_key’ is deprecated: Since OpenSSL 3.0
#  151 |     AES_set_encrypt_key(s->key, 128, &s->aes);
#      |     ^~~~~~~~~~~~~~~~~~~
pulseaudio-17.0/src/modules/raop/raop-crypto.c:31: included_from: Included from here.
/usr/include/openssl/aes.h:51:5: note: declared here
#   51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
#      |     ^~~~~~~~~~~~~~~~~~~
#  149|   
#  150|       pa_random(s->key, sizeof(s->key));
#  151|->     AES_set_encrypt_key(s->key, 128, &s->aes);
#  152|       pa_random(s->iv, sizeof(s->iv));
#  153|   

Error: COMPILER_WARNING (CWE-477): [#def70]
pulseaudio-17.0/src/modules/raop/raop-crypto.c: scope_hint: In function ‘pa_raop_aes_encrypt’
pulseaudio-17.0/src/modules/raop/raop-crypto.c:207:9: warning[-Wdeprecated-declarations]: ‘AES_encrypt’ is deprecated: Since OpenSSL 3.0
#  207 |         AES_encrypt(buffer, buffer, &s->aes);
#      |         ^~~~~~~~~~~
/usr/include/openssl/aes.h:57:6: note: declared here
#   57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
#      |      ^~~~~~~~~~~
#  205|               buffer[j] ^= nv[j];
#  206|   
#  207|->         AES_encrypt(buffer, buffer, &s->aes);
#  208|   
#  209|           memcpy(nv, buffer, AES_CHUNK_SIZE);

Error: COMPILER_WARNING (CWE-477): [#def71]
pulseaudio-17.0/src/modules/raop/raop-util.c: scope_hint: In function ‘pa_raop_md5_hash’
pulseaudio-17.0/src/modules/raop/raop-util.c:164:5: warning[-Wdeprecated-declarations]: ‘MD5’ is deprecated: Since OpenSSL 3.0
#  164 |     MD5((unsigned char*) data, len, d);
#      |     ^~~
pulseaudio-17.0/src/modules/raop/raop-util.c:35: included_from: Included from here.
/usr/include/openssl/md5.h:52:38: note: declared here
#   52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n,
#      |                                      ^~~
#  162|       pa_assert(str);
#  163|   
#  164|->     MD5((unsigned char*) data, len, d);
#  165|       s = pa_xnew(char, MD5_HASH_LENGTH);
#  166|       for (i = 0; i < MD5_DIGEST_LENGTH; i++)

Error: CPPCHECK_WARNING (CWE-476): [#def72]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:182: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  180|       int phase_count= 1<<phase_shift;
#  181|   
#  182|->     c->phase_shift= phase_shift;
#  183|       c->phase_mask= phase_count-1;
#  184|       c->linear= linear;

Error: CPPCHECK_WARNING (CWE-476): [#def73]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:183: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  181|   
#  182|       c->phase_shift= phase_shift;
#  183|->     c->phase_mask= phase_count-1;
#  184|       c->linear= linear;
#  185|   

Error: CPPCHECK_WARNING (CWE-476): [#def74]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:184: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  182|       c->phase_shift= phase_shift;
#  183|       c->phase_mask= phase_count-1;
#  184|->     c->linear= linear;
#  185|   
#  186|       c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);

Error: CPPCHECK_WARNING (CWE-476): [#def75]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:186: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  184|       c->linear= linear;
#  185|   
#  186|->     c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);
#  187|       c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
#  188|       av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);

Error: CPPCHECK_WARNING (CWE-476): [#def76]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:187: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  185|   
#  186|       c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);
#  187|->     c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
#  188|       av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
#  189|       memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));

Error: CPPCHECK_WARNING (CWE-476): [#def77]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:188: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  186|       c->filter_length= FFMAX((int)ceil(filter_size/factor), 1);
#  187|       c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
#  188|->     av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
#  189|       memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));
#  190|       c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];

Error: CPPCHECK_WARNING (CWE-476): [#def78]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:189: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  187|       c->filter_bank= av_mallocz(c->filter_length*(phase_count+1)*sizeof(FELEM));
#  188|       av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
#  189|->     memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));
#  190|       c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];
#  191|   

Error: CPPCHECK_WARNING (CWE-476): [#def79]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:190: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  188|       av_build_filter(c->filter_bank, factor, c->filter_length, phase_count, 1<<FILTER_SHIFT, WINDOW_TYPE);
#  189|       memcpy(&c->filter_bank[c->filter_length*phase_count+1], c->filter_bank, (c->filter_length-1)*sizeof(FELEM));
#  190|->     c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];
#  191|   
#  192|       c->src_incr= out_rate;

Error: CPPCHECK_WARNING (CWE-476): [#def80]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:192: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  190|       c->filter_bank[c->filter_length*phase_count]= c->filter_bank[c->filter_length - 1];
#  191|   
#  192|->     c->src_incr= out_rate;
#  193|       c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;
#  194|       c->index= -phase_count*((c->filter_length-1)/2);

Error: CPPCHECK_WARNING (CWE-476): [#def81]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:193: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  191|   
#  192|       c->src_incr= out_rate;
#  193|->     c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;
#  194|       c->index= -phase_count*((c->filter_length-1)/2);
#  195|   

Error: CPPCHECK_WARNING (CWE-476): [#def82]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:194: warning[nullPointerOutOfMemory]: If memory allocation fails, then there is a possible null pointer dereference: c
#  192|       c->src_incr= out_rate;
#  193|       c->ideal_dst_incr= c->dst_incr= in_rate * phase_count;
#  194|->     c->index= -phase_count*((c->filter_length-1)/2);
#  195|   
#  196|       return c;

Error: CPPCHECK_WARNING (CWE-758): [#def83]
pulseaudio-17.0/src/pulsecore/ffmpeg/resample2.c:259: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
#  257|   #else
#  258|           val = (val + (1<<(FILTER_SHIFT-1)))>>FILTER_SHIFT;
#  259|->         dst[dst_index] = (unsigned)(val + 32768) > 65535 ? (val>>31) ^ 32767 : val;
#  260|   #endif
#  261|   

Error: COMPILER_WARNING: [#def84]
pulseaudio-17.0/src/pulsecore/proplist-util.c: scope_hint: In function ‘pa_proplist_get_stream_group’
pulseaudio-17.0/src/pulsecore/proplist-util.c:274:44: warning[-Wformat-overflow=]: ‘%s’ directive argument is null
#  274 |         t = pa_sprintf_malloc("%s-fallback:%s", prefix, r);
#      |                                            ^~
#  272|           t = pa_sprintf_malloc("%s-by-media-name:%s", prefix, r);
#  273|       else
#  274|->         t = pa_sprintf_malloc("%s-fallback:%s", prefix, r);
#  275|   
#  276|       if (cache)

Error: CPPCHECK_WARNING (CWE-909): [#def85]
pulseaudio-17.0/src/pulsecore/protocol-native.c:2345: error[uninitStructMember]: Uninitialized struct member: volume.channels
# 2343|           CHECK_VALIDITY_GOTO(c->pstream, pa_sample_spec_valid(&ss), tag, PA_ERR_INVALID, finish);
# 2344|           CHECK_VALIDITY_GOTO(c->pstream, map.channels == ss.channels, tag, PA_ERR_INVALID, finish);
# 2345|->         CHECK_VALIDITY_GOTO(c->pstream, c->version < 22 || (volume.channels == ss.channels), tag, PA_ERR_INVALID, finish);
# 2346|           CHECK_VALIDITY_GOTO(c->pstream, pa_channel_map_valid(&map), tag, PA_ERR_INVALID, finish);
# 2347|       } else {

Error: CPPCHECK_WARNING (CWE-457): [#def86]
pulseaudio-17.0/src/pulsecore/sink.c:1588: error[uninitvar]: Uninitialized variable: &rewind_bytes
# 1586|       pa_assert(PA_SINK_IS_LINKED(s->state));
# 1587|   
# 1588|->     pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_LAST_REWIND, &rewind_bytes, 0, NULL) == 0);
# 1589|   
# 1590|       return rewind_bytes;

Error: CPPCHECK_WARNING (CWE-457): [#def87]
pulseaudio-17.0/src/pulsecore/sink.c:2403: error[uninitvar]: Uninitialized variable: &mute
# 2401|   
# 2402|           if (s->flags & PA_SINK_DEFERRED_VOLUME) {
# 2403|->             if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_MUTE, &mute, 0, NULL) >= 0)
# 2404|                   pa_sink_mute_changed(s, mute);
# 2405|           } else {

Error: CPPCHECK_WARNING (CWE-457): [#def88]
pulseaudio-17.0/src/pulsecore/sink.c:3395: error[uninitvar]: Uninitialized variable: &latency
# 3393|   
# 3394|       if (PA_SINK_IS_LINKED(s->state))
# 3395|->         pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_FIXED_LATENCY, &latency, 0, NULL) == 0);
# 3396|       else
# 3397|           latency = s->thread_info.fixed_latency;

Error: CPPCHECK_WARNING (CWE-457): [#def89]
pulseaudio-17.0/src/pulsecore/sink.c:3462: error[uninitvar]: Uninitialized variable: &r
# 3460|           return s->thread_info.max_rewind;
# 3461|   
# 3462|->     pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_MAX_REWIND, &r, 0, NULL) == 0);
# 3463|   
# 3464|       return r;

Error: CPPCHECK_WARNING (CWE-457): [#def90]
pulseaudio-17.0/src/pulsecore/sink.c:3476: error[uninitvar]: Uninitialized variable: &r
# 3474|           return s->thread_info.max_request;
# 3475|   
# 3476|->     pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_MAX_REQUEST, &r, 0, NULL) == 0);
# 3477|   
# 3478|       return r;

Error: CPPCHECK_WARNING (CWE-476): [#def91]
pulseaudio-17.0/src/pulsecore/socket-server.c:218: error[nullPointer]: Null pointer dereference: (struct sockaddr_un*)0
#  216|           pa_make_socket_low_delay(fd);
#  217|   
#  218|->         if (bind(fd, (struct sockaddr*) &sa, (socklen_t) SUN_LEN(&sa)) < 0) {
#  219|               pa_log("bind(): %s", pa_cstrerror(errno));
#  220|               goto fail;

Error: CPPCHECK_WARNING (CWE-457): [#def92]
pulseaudio-17.0/src/pulsecore/source.c:1172: error[uninitvar]: Uninitialized variable: &usec
# 1170|           return 0;
# 1171|   
# 1172|->     pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_LATENCY, &usec, 0, NULL) == 0);
# 1173|   
# 1174|       /* The return value is unsigned, so check that the offset can be added to usec without

Error: CPPCHECK_WARNING (CWE-457): [#def93]
pulseaudio-17.0/src/pulsecore/source.c:1926: error[uninitvar]: Uninitialized variable: &mute
# 1924|   
# 1925|           if (s->flags & PA_SOURCE_DEFERRED_VOLUME) {
# 1926|->             if (pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_MUTE, &mute, 0, NULL) >= 0)
# 1927|                   pa_source_mute_changed(s, mute);
# 1928|           } else {

Error: CPPCHECK_WARNING (CWE-457): [#def94]
pulseaudio-17.0/src/pulsecore/source.c:2609: error[uninitvar]: Uninitialized variable: &latency
# 2607|   
# 2608|       if (PA_SOURCE_IS_LINKED(s->state))
# 2609|->         pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_FIXED_LATENCY, &latency, 0, NULL) == 0);
# 2610|       else
# 2611|           latency = s->thread_info.fixed_latency;

Error: CPPCHECK_WARNING (CWE-457): [#def95]
pulseaudio-17.0/src/pulsecore/source.c:2671: error[uninitvar]: Uninitialized variable: &r
# 2669|           return s->thread_info.max_rewind;
# 2670|   
# 2671|->     pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SOURCE_MESSAGE_GET_MAX_REWIND, &r, 0, NULL) == 0);
# 2672|   
# 2673|       return r;

Error: CPPCHECK_WARNING (CWE-457): [#def96]
pulseaudio-17.0/src/pulsecore/thread-mq.c:50: error[legacyUninitvar]: Uninitialized variable: aq
#   48|           pa_assert_not_reached();
#   49|   
#   50|->     pa_asyncmsgq_read_after_poll(aq);
#   51|   
#   52|       for (;;) {

Scan Properties

analyzer-version-clippy1.86.0
analyzer-version-cppcheck2.17.1
analyzer-version-gcc15.0.1
analyzer-version-gcc-analyzer15.0.1
analyzer-version-shellcheck0.10.0
analyzer-version-unicontrol0.0.2
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-133.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-namepulseaudio-17.0-6.fc43
store-results-to/tmp/tmpp5h5jcxs/pulseaudio-17.0-6.fc43.tar.xz
time-created2025-04-25 15:07:57
time-finished2025-04-25 15:11:13
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmpp5h5jcxs/pulseaudio-17.0-6.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpp5h5jcxs/pulseaudio-17.0-6.fc43.src.rpm'
tool-versioncsmock-3.8.1.20250422.172604.g26bc3d6-1.el9