Re: [FFmpeg-devel] ffmpeg: Check read_ffserver_streams() return value

2017-11-27 Thread Michael Niedermayer
On Mon, Nov 27, 2017 at 01:23:24AM +, Rostislav Pehlivanov wrote: > On 27 November 2017 at 01:12, Pan Bian wrote: > > > The function avformat_alloc_context() will return a NULL pointer on > > failure. However, in function read_ffserver_streams(), its return value > > is not validated and the

Re: [FFmpeg-devel] ffmpeg: Check read_ffserver_streams() return value

2017-11-26 Thread Rostislav Pehlivanov
On 27 November 2017 at 01:12, Pan Bian wrote: > The function avformat_alloc_context() will return a NULL pointer on > failure. However, in function read_ffserver_streams(), its return value > is not validated and the subsequent dereference may result in a bad > memory access bug. Check its return