[vlc-devel] commit: Replace argument = realloc( argument, size	); with realloc_or_free( ) in modules/*, and while at it add assert(	argument ) to mark unhandled ENOMEM conditions, also for	malloc(). (JP Dinger )
    Rémi Denis-Courmont 
    remi at remlab.net
       
    Sun Dec  6 08:32:47 CET 2009
    
    
  
Le samedi 5 décembre 2009 23:35:16 git version control, vous avez écrit :
> vlc | branch: master | JP Dinger <jpd at videolan.org> | Sat Dec  5 15:24:19
>  2009 +0100| [15643af12d9eb61eff8a8e89d8170f3d2b73d7e1] | committer: JP
>  Dinger
> 
> Replace argument = realloc( argument, size ); with realloc_or_free() in
>  modules/*, and while at it add assert( argument ) to mark unhandled ENOMEM
>  conditions, also for malloc().
This is wrong. It will crash in non-debug builds.
-- 
Rémi Denis-Courmont
http://www.remlab.net/
http://fi.linkedin.com/in/remidenis
    
    
More information about the vlc-devel
mailing list