From c969143efbbf23e4e323e64787aeacd90c603d16 Mon Sep 17 00:00:00 2001 From: SunM <43372170+Ssroid@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:23:03 +0900 Subject: [PATCH] Fix for Potential CWE 457 Issue in video_driver.c (#16064) * Fix audio_statistics_t audio_stats to {0} CWE-457 Use of Uninitialized Variable * Fix audio_statistics_t audio_stats to {0} --- gfx/video_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 9a6070e9aa6c..186c6bba2377 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -4308,7 +4308,7 @@ void video_frame_rest(video_driver_state_t *video_st, static int frame_time_near_count = 0; static int frame_time_try_count = 0; double video_stddev = 0; - audio_statistics_t audio_stats; + audio_statistics_t audio_stats = {0}; /* Must require video and audio deviation standards */ video_monitor_fps_statistics(NULL, &video_stddev, NULL);