[FFmpeg-devel] [PATCH 9/9] avfilter/signature_lookup: fix potential uninitialized reads
Timo Rothenpieler
timo at rothenpieler.org
Wed Nov 8 20:17:53 EET 2017
Fixes CID #1403238 and #1403239
---
libavfilter/signature_lookup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/signature_lookup.c b/libavfilter/signature_lookup.c
index 272c717c77..7de4a88ca2 100644
--- a/libavfilter/signature_lookup.c
+++ b/libavfilter/signature_lookup.c
@@ -421,7 +421,7 @@ static MatchingInfo evaluate_parameters(AVFilterContext *ctx, SignatureContext *
int fcount = 0, goodfcount = 0, gooda = 0, goodb = 0;
double meandist, minmeandist = bestmatch.meandist;
int tolerancecount = 0;
- FineSignature *a, *b, *aprev, *bprev;
+ FineSignature *a, *b, *aprev = NULL, *bprev = NULL;
int status = STATUS_NULL;
for (; infos != NULL; infos = infos->next) {
--
2.14.2
More information about the ffmpeg-devel
mailing list