Re: [FFmpeg-devel] [PATCH] diracdec: prevent overflow in data_unit_size check

2015-05-05 Thread Michael Niedermayer
On Tue, May 05, 2015 at 09:33:08PM +0200, Andreas Cadhalpun wrote: > buf_idx + data_unit_size can overflow, causing the '> buf_size' check to > wrongly fail. > > This causes a segmentation fault. > > Signed-off-by: Andreas Cadhalpun > --- > libavcodec/diracdec.c | 4 ++-- > 1 file changed, 2 in

[FFmpeg-devel] [PATCH] diracdec: prevent overflow in data_unit_size check

2015-05-05 Thread Andreas Cadhalpun
buf_idx + data_unit_size can overflow, causing the '> buf_size' check to wrongly fail. This causes a segmentation fault. Signed-off-by: Andreas Cadhalpun --- libavcodec/diracdec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/diracdec.c b/libavcodec/diracdec