aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/tiff.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 7e42aabcbd..7e789b4759 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -176,6 +176,11 @@ static int tiff_decode_tag(TiffContext *s, const uint8_t *start, const uint8_t *
value = off;
buf = NULL;
break;
+ case TIFF_STRING:
+ if(count <= 4){
+ buf -= 4;
+ break;
+ }
default:
value = -1;
buf = start + off;