[FFmpeg-devel,09/11] avfilter/signature_lookup: fix potential uninitialized reads

Submitted by Timo Rothenpieler on June 11, 2017, 2:05 p.m.

Details

Message ID 20170611140551.11844-9-timo@rothenpieler.org
State New
Headers show

Commit Message

Timo Rothenpieler June 11, 2017, 2:05 p.m.
Fixes CIDs 1403238 and 1403239
---
 libavfilter/signature_lookup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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) {