[vlc-devel] [PATCH] avformat: check malloc() result

Zhao Zhili wantlamy at gmail.com
Sat Feb 27 11:45:09 CET 2016


As Rémi Denis-Courmont <remi at remlab.net> says

>> +    p_sys = malloc( sizeof( filter_sys_t ) );>> +    if( p_sys == NULL) {>> +        return VLC_ENOMEM;>> +    }
>
> Not needed since your whole state is a single pointer.

https://patches.videolan.org/patch/12164/


On Sat, Feb 27, 2016 at 4:41 PM, Jean-Baptiste Kempf <jb at videolan.org>
wrote:

> On 27 Feb, Zhao Zhili wrote :
> > It's just an int, it is very unlikely to happen.
>
> How do you know?
>
> With my kindest regards,
>
> --
> Jean-Baptiste Kempf
> http://www.jbkempf.com/ - +33 672 704 734
> Sent from my Electronic Device
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160227/ececa253/attachment.html>


More information about the vlc-devel mailing list