Re: [FFmpeg-devel] [PATCH] jpegls: allocate large enough zero buffer

2015-12-31 Thread Andreas Cadhalpun
On 31.12.2015 17:24, Michael Niedermayer wrote: > On Thu, Dec 31, 2015 at 05:02:14PM +0100, Andreas Cadhalpun wrote: >> On 30.12.2015 21:12, Andreas Cadhalpun wrote: >>> It is read up to length s->width * stride, which can be larger than the >>> linesize. (stride = (s->nb_components > 1) ? 3 : 1) >

Re: [FFmpeg-devel] [PATCH] jpegls: allocate large enough zero buffer

2015-12-31 Thread Michael Niedermayer
On Thu, Dec 31, 2015 at 05:02:14PM +0100, Andreas Cadhalpun wrote: > On 30.12.2015 21:12, Andreas Cadhalpun wrote: > > It is read up to length s->width * stride, which can be larger than the > > linesize. (stride = (s->nb_components > 1) ? 3 : 1) > > > > This fixes an out of bounds read. > > > >

Re: [FFmpeg-devel] [PATCH] jpegls: allocate large enough zero buffer

2015-12-31 Thread Andreas Cadhalpun
On 30.12.2015 21:12, Andreas Cadhalpun wrote: > It is read up to length s->width * stride, which can be larger than the > linesize. (stride = (s->nb_components > 1) ? 3 : 1) > > This fixes an out of bounds read. > > Signed-off-by: Andreas Cadhalpun > --- > libavcodec/jpeglsdec.c | 2 +- > 1 fil

[FFmpeg-devel] [PATCH] jpegls: allocate large enough zero buffer

2015-12-30 Thread Andreas Cadhalpun
It is read up to length s->width * stride, which can be larger than the linesize. (stride = (s->nb_components > 1) ? 3 : 1) This fixes an out of bounds read. Signed-off-by: Andreas Cadhalpun --- libavcodec/jpeglsdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcode