[FFmpeg-devel] [PATCH V1 1/2] avutil/common: Fix underflow for ROUNDED_DIV with unsigned integer

mypopy at gmail.com mypopy at gmail.com
Tue Oct 8 03:58:38 EEST 2019


On Sat, Oct 5, 2019 at 10:16 PM Michael Niedermayer
<michael at niedermayer.cc> wrote:
>
> On Thu, Oct 03, 2019 at 09:53:15AM +0800, Jun Zhao wrote:
> > From: Mengye Lv <mengyelv at tencent.com>
> >
> > When used ROUNDED_DIV(a,b), if a is unsigned integer zero, it's
> > will lead to an underflow issue(it called unsigned integer
> > wrapping).
> >
> > Fixes #8062
> >
> > Signed-off-by: Mengye Lv <mengyelv at tencent.com>
> > Signed-off-by: Jun Zhao <barryjzhao at tencent.com>
> > ---
> >  libavutil/common.h |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
>
> LGTM
>
> thx
>
Applied, Thx


More information about the ffmpeg-devel mailing list