diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-02-02 04:47:36 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-02 04:48:34 +0400 |
commit | a744064c4155bde063b9e8a47699542be3b8e5eb (patch) | |
tree | ca7e15c7a2cc3a1e383fe5f9df9bffe6a9674779 /libavcodec/tiff.c | |
parent | 0997c2504b25cbc2856800fc063395dcd40b2bf7 (diff) |
avcodec/tiff: reset geotag_count in free_geotags()
Fixes null pointer dereference
Fixes: signal_sigsegv_19d922e_3688_cov_1577641655_aletrek_tiff.mov
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r-- | libavcodec/tiff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c index cd209674ca..679fd5e053 100644 --- a/libavcodec/tiff.c +++ b/libavcodec/tiff.c @@ -79,6 +79,7 @@ static void free_geotags(TiffContext *const s) av_freep(&s->geotags[i].val); } av_freep(&s->geotags); + s->geotag_count = 0; } #define RET_GEOKEY(TYPE, array, element)\ |