Opened 5 years ago

Closed 5 years ago

#587 closed defect (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by radford

Patch to avoid an overflow in av_resample's rate calculations

comment:1 Changed 5 years ago by michael

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

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

Note: See TracTickets for help on using tickets.