summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-03-09 01:22:31 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-03-09 01:22:31 +0100
commita8cedbebf163ad376abc4703b3156c44d0858404 (patch)
tree7198ad7a96b58d3ea53b2208601b707da2db3c00 /libavcodec/tiff.c
parenta4524930d9299dbb8fafe165105d83bf7b6d3b89 (diff)
parentea1d64ab1066145ba919b79a2080f3091d562217 (diff)
Merge remote-tracking branch 'qatar/master'
* qatar/master: ttadec: unbreak playback of matroska files vorbisdec: avoid invalid memory access Fix uninitialized reads on malformed ogg files. huffyuv: add padding to classic (v1) huffman tables. png: convert to bytestream2 API. dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2 avs: fix infinite loop on end-of-stream. tiffdec: Prevent illegal memory access caused by recycled pointers. rtpenc: Fix the AVRational used for av_rescale_q_rnd wma: fix off-by-one in array bounds check. Conflicts: libavcodec/huffyuv.c libavcodec/pngdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 5adf5a3b55..28bae611c1 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -606,6 +606,8 @@ static int decode_frame(AVCodecContext *avctx,
av_log(avctx, AV_LOG_ERROR, "The answer to life, universe and everything is not correct!\n");
return -1;
}
+ // Reset these pointers so we can tell if they were set this frame
+ s->stripsizes = s->stripdata = NULL;
/* parse image file directory */
off = tget_long(&buf, le);
if (off >= UINT_MAX - 14 || end_buf - orig_buf < off + 14) {