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

Michael Niedermayer michael at niedermayer.cc
Tue May 5 22:00:35 CEST 2015


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 <Andreas.Cadhalpun at googlemail.com>
> ---
>  libavcodec/diracdec.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

applied

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

In fact, the RIAA has been known to suggest that students drop out
of college or go to community college in order to be able to afford
settlements. -- The RIAA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150505/effd7509/attachment.asc>


More information about the ffmpeg-devel mailing list