[FFmpeg-devel] [libav-devel] [PATCH] Checked get_bits.h functions to prevent overread
Ronald S. Bultje
rsbultje at gmail.com
Fri Sep 9 01:12:53 CEST 2011
On Thu, Sep 8, 2011 at 4:05 PM, Laurent Aimar <fenrir at elivagar.org> wrote:
> I attached a patch that make get_bits.h function checked for overread by
> default but let safe decoders disabling the checks at compilation time by
> defining UNCHECK_BITSTREAM_READER before including get_bits.h.
> If such patch would be including, I would gladly provide a patch
> adding the #define UNCHECK_BITSTREAM_READER to the decoder that are 'safe'.
I wanted to do this in exactly the same way but gut buried in some
other work. +1 from me.
> +#ifndef UNCHECK_BITSTREAM_READER
> +# warn "Checked bistream reader unimplemented"
More information about the ffmpeg-devel