From 769168da5ba4161d73d11608c9d3be80cec65675 Mon Sep 17 00:00:00 2001 From: lwvmobile Date: Fri, 11 Aug 2023 14:59:50 -0400 Subject: [PATCH] Prevent Possible Overflow in lbuf and lbuf2; --- src/dsd_frame_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsd_frame_sync.c b/src/dsd_frame_sync.c index 8b08be2..81ea748 100644 --- a/src/dsd_frame_sync.c +++ b/src/dsd_frame_sync.c @@ -220,7 +220,7 @@ getFrameSync (dsd_opts * opts, dsd_state * state) } else t_max = 24; //24 for everything else - int lbuf[t_max], lbuf2[t_max]; + int lbuf[48], lbuf2[48]; //if we use t_max in these arrays, and t >= t_max in condition below, then it can overflow those checks in there if t exceeds t_max int lsum; char spectrum[64]; //init the lbuf