Re: [FFmpeg-devel] [FFmpeg-devel 1/1] avcodec/samidec: check av_strdup() return value

2017-11-29 Thread Clément Bœsch
On Mon, Nov 27, 2017 at 02:56:32PM +0800, Pan Bian wrote: > In function sami_paragraph_to_ass(), the return value of av_strdup() is > not checked. To avoid potential NULL dereference, the return value > should be checked against NULL. > > Signed-off-by: Pan Bian > --- > V2: fix patcheck warnings

[FFmpeg-devel] [FFmpeg-devel 1/1] avcodec/samidec: check av_strdup() return value

2017-11-26 Thread Pan Bian
In function sami_paragraph_to_ass(), the return value of av_strdup() is not checked. To avoid potential NULL dereference, the return value should be checked against NULL. Signed-off-by: Pan Bian --- V2: fix patcheck warnings --- libavcodec/samidec.c | 3 +++ 1 file changed, 3 insertions(+) diff