[FFmpeg-devel] [PATCH] flicvideo: fix crash on flic files with invalid frame size
Stefano Sabatini
stefano.sabatini-lala at poste.it
Sat Apr 23 12:18:14 CEST 2011
On date Saturday 2011-04-23 02:17:58 +0200, Michael Niedermayer encoded:
> On Sat, Apr 23, 2011 at 12:15:25AM +0200, Stefano Sabatini wrote:
> > Add a check on flic_decode_frame_8BPP(), in case chunk_size is >
> > frame_size issue a warning and resize chunk_size to frame_size, in
> > order to avoid out-of-buffer reads.
> >
> > Fix roundup issue #2520, trac issue #69.
> >
> > Signed-off-by: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> > ---
> > libavcodec/flicvideo.c | 5 +++++
> > 1 files changed, 5 insertions(+), 0 deletions(-)
>
> should be ok
>
> & thx for the bugfixing
Applied (with a minor change in the error message for consistency reasons).
--
FFmpeg = Fascinating and Frenzy Muttering Plastic Encoding/decoding Gymnast
More information about the ffmpeg-devel
mailing list