[FFmpeg-trac] #587(avcodec:new): Avoid integer overflow in av_resample's rate calculation

FFmpeg trac at avcodec.org
Tue Oct 25 05:40:46 CEST 2011


#587: Avoid integer overflow in av_resample's rate calculation
----------------------------------+--------------------------------------
             Reporter:  radford   |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avcodec   |                  Version:  git-master
             Keywords:  resample  |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 The attached patch tries to avoid an overflow in av_resample's rate
 calculation (when scaling by the phase) by reducing by the gcd if possible
 and failing if it's not possible (avoiding scribbling on memory).

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


More information about the FFmpeg-trac mailing list