[FFmpeg-devel] [PATCH 2/3] wavpackenc: report too small buffer

Timothy Gu timothygu99 at gmail.com
Tue Aug 19 16:06:35 CEST 2014


On Tue, Aug 19, 2014 at 5:26 AM, Christophe Gisquet
<christophe.gisquet at gmail.com> wrote:
> bytestream2_* will not cause buffer overflow, but on the other hand,
> it should be checked whether overflows have been prevented.
> ---
>  libavcodec/wavpackenc.c | 5 +++++
>  1 file changed, 5 insertions(+)
[...]
> +        return AVERROR_INVALIDDATA;

Shouldn't this be AVERROR_BUG?

[...]

Timothy


More information about the ffmpeg-devel mailing list