[FFmpeg-trac] #764(avcodec:new): Increasing robustness of runlength decoding for scantable access in mpeg12.c

FFmpeg trac at avcodec.org
Thu Dec 15 16:46:19 CET 2011


#764: Increasing robustness of runlength decoding for scantable access in
mpeg12.c
-------------------------------------+-------------------------------------
             Reporter:  erik         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  avcodec      |                  Version:
             Keywords:  mpeg         |  unspecified
  robustness                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 When decoding australian MPEG2 video broadcast with many stream errors the
 decoder causes a memory error crash because the index into the scan table
 is far outside the array.
 The simple dirty fix is to mask the index into the scan table to a value
 between 0 and 63 to prevent memory access error.
 The attached diff files documents the required patch.
 As a result the robustness of the decoder has increased.

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


More information about the FFmpeg-trac mailing list