[FFmpeg-cvslog] avcodec/tiff: Fix use of uninitialized off variable

Michael Niedermayer git at videolan.org
Sun Oct 27 13:25:39 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Oct 27 12:43:59 2013 +0100| [0aba920d617defda09957fa99db5a9a95b831398] | committer: Michael Niedermayer

avcodec/tiff: Fix use of uninitialized off variable

Fixes CID1108608

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0aba920d617defda09957fa99db5a9a95b831398
---

 libavcodec/tiff.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index cfa7e8c..a22db43 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -597,9 +597,7 @@ static int tiff_decode_tag(TiffContext *s, AVFrame *frame)
             value = UINT_MAX;
         }
     } else {
-        if (type_sizes[type] * count > 4) {
-            off   = bytestream2_tell(&s->gb);
-        }
+        off   = bytestream2_tell(&s->gb);
     }
 
     switch (tag) {



More information about the ffmpeg-cvslog mailing list