aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2024-11-03 20:43:21 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2024-11-11 01:28:05 +0100
commit898f6582eb51bf77b1f88e8f55eab67ee6ee13b8 (patch)
treec3174c92cab341ab7d7eb592800a6b527c3f17f2
parentbf8e43083f68c383b9d905d2c8c791ac33ecc7bc (diff)
downloadffmpeg-898f6582eb51bf77b1f88e8f55eab67ee6ee13b8.tar.gz
avformat/nistspheredec: Clear buffer
Fixes: use-of-uninitialized-value Fixes: 42537627/clusterfuzz-testcase-minimized-fuzzer_protocol_memory-6515855798632448-cut Found-by: ossfuzz Reported-by: Kacper Michajlow Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/nistspheredec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nistspheredec.c b/libavformat/nistspheredec.c
index 1e6c567e01..e624036149 100644
--- a/libavformat/nistspheredec.c
+++ b/libavformat/nistspheredec.c
@@ -35,7 +35,7 @@ static int nist_probe(const AVProbeData *p)
static int nist_read_header(AVFormatContext *s)
{
- char buffer[256], coding[32] = "pcm", format[32] = "01";
+ char buffer[256]= {0}, coding[32] = "pcm", format[32] = "01";
int bps = 0, be = 0;
int32_t header_size = -1;
AVStream *st;