Ticket #587 (closed defect: fixed)

Opened 19 months ago

Last modified 19 months ago

Avoid integer overflow in av_resample's rate calculation

Reported by: radford Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: resample
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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).

Attachments

ffmpeg-resample2-rate-overflow.patch Download (834 bytes) - added by radford 19 months ago.
Patch to avoid an overflow in av_resample's rate calculations

Change History

Changed 19 months ago by radford

Patch to avoid an overflow in av_resample's rate calculations

comment:1 Changed 19 months ago by michael

  • Status changed from new to closed
  • Resolution set to fixed

Fixed differently (simpler), will be in main git in a moment
thanks

Note: See TracTickets for help on using tickets.