[FFmpeg-devel] [PATCH 09/11] avfilter/signature_lookup: fix potential uninitialized reads
Timo Rothenpieler
timo at rothenpieler.org
Sun Jun 11 17:05:51 EEST 2017
Fixes CIDs 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.13.0
More information about the ffmpeg-devel
mailing list