[FFmpeg-trac] #3220(avcodec:new): mpeg2 decoder crash

FFmpeg trac at avcodec.org
Thu Dec 12 07:49:47 CET 2013


#3220: mpeg2 decoder crash
----------------------------------+--------------------------------------
             Reporter:  kyh96403  |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avcodec   |                  Version:  git-master
             Keywords:  mpeg2     |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Lastest git version, decode "http://pan.baidu.com/s/1kXZkD" crash.

 detail desc...
 static void mpeg_decode_user_data(AVCodecContext *avctx,
                                   const uint8_t *p, int buf_size)
 ...
 ...
 ...
         if (S3D_video_format_type == 0x03 ||
             S3D_video_format_type == 0x04 ||
             S3D_video_format_type == 0x08 ||
             S3D_video_format_type == 0x23) {
             Mpeg1Context *s1   = avctx->priv_data;
             MpegEncContext *s  = &s1->mpeg_enc_ctx;
             AVStereo3D *stereo =
 av_stereo3d_create_side_data(&s->current_picture_ptr->f);

 s->current_picture_ptr can be NULL.
 So access NULL pointer error.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3220>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list