[FFmpeg-devel] [PATCH] Fix a buffer overflow in libx264 interface to x264 encoder.

Mike Scheutzow mike.scheutzow at alcatel-lucent.com
Mon Sep 26 18:17:10 CEST 2011


My application was reliably segfaulting with certain High Def video.

The reason is that libx264.c ignores the compressed buffer size passed 
in, and writes into memory it doesn't own.

This is the code I use to prevent the buffer overflow.

I am not following ffmpeg-devel closely these days; please cc: me if you 
see a logic error in this patch.

The approver can commit to git.


Mike Scheutzow

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-libx264-buf-overflow-v1.patch
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110926/aa872c4e/attachment.ksh>


More information about the ffmpeg-devel mailing list