Re: [FFmpeg-devel] [PATCH v2 1/3] lavc/hevc_mp4toannexb: Fix integer overflow

2019-12-04 Thread Andriy Gelman
On Tue, 03. Dec 21:42, Andriy Gelman wrote: > On Wed, 04. Dec 01:26, Andreas Rheinhardt wrote: > > On Wed, Dec 4, 2019 at 1:04 AM Andriy Gelman > > wrote: > > > > > From: Andriy Gelman > > > > > > Check packet grow size against INT_MAX instead of SIZE_MAX. > > > > > > Found with libFuzzer: > > >

Re: [FFmpeg-devel] [PATCH v2 1/3] lavc/hevc_mp4toannexb: Fix integer overflow

2019-12-03 Thread Andriy Gelman
On Wed, 04. Dec 01:26, Andreas Rheinhardt wrote: > On Wed, Dec 4, 2019 at 1:04 AM Andriy Gelman > wrote: > > > From: Andriy Gelman > > > > Check packet grow size against INT_MAX instead of SIZE_MAX. > > > > Found with libFuzzer: > > 4294967044 cannot be represented as int. > > > > Signed-off-by:

Re: [FFmpeg-devel] [PATCH v2 1/3] lavc/hevc_mp4toannexb: Fix integer overflow

2019-12-03 Thread Andreas Rheinhardt
On Wed, Dec 4, 2019 at 1:04 AM Andriy Gelman wrote: > From: Andriy Gelman > > Check packet grow size against INT_MAX instead of SIZE_MAX. > > Found with libFuzzer: > 4294967044 cannot be represented as int. > > Signed-off-by: Andriy Gelman > --- > libavcodec/hevc_mp4toannexb_bsf.c | 6 +++--- >

[FFmpeg-devel] [PATCH v2 1/3] lavc/hevc_mp4toannexb: Fix integer overflow

2019-12-03 Thread Andriy Gelman
From: Andriy Gelman Check packet grow size against INT_MAX instead of SIZE_MAX. Found with libFuzzer: 4294967044 cannot be represented as int. Signed-off-by: Andriy Gelman --- libavcodec/hevc_mp4toannexb_bsf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcode