]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/proresdec_lgpl.c
avcodec/h264: clean up and expand x86 function definitions
[ffmpeg] / libavcodec / proresdec_lgpl.c
index 467a423f232f1271a897f2a69f9fb8494e7268c1..bc5bdb5a4d5ee129bb0222bf2285a5013b6aa691 100644 (file)
@@ -625,7 +625,7 @@ static int decode_slice(AVCodecContext *avctx, void *tdata)
 
     /* if V or alpha component size is negative that means that previous
        component sizes are too large */
-    if (v_data_size < 0 || a_data_size < 0 || hdr_size < 6) {
+    if (v_data_size < 0 || a_data_size < 0 || hdr_size < 6 || coff[3] > slice_data_size) {
         av_log(avctx, AV_LOG_ERROR, "invalid data size\n");
         return AVERROR_INVALIDDATA;
     }