]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/iff.c
ffmpeg: stop accessing deprecated stream-embedded codec context
[ffmpeg] / libavformat / iff.c
index a70184f105632b71eae70b1b65495c85be0b4133..f0176846207f83ab9e4272f726f46725e4192941 100644 (file)
@@ -259,6 +259,9 @@ static int parse_dsd_prop(AVFormatContext *s, AVStream *st, uint64_t eof)
         uint64_t size     = avio_rb64(pb);
         uint64_t orig_pos = avio_tell(pb);
 
+        if (size >= INT64_MAX)
+            return AVERROR_INVALIDDATA;
+
         switch(tag) {
         case MKTAG('A','B','S','S'):
             if (size < 8)