[vlc-devel] [VLC] #2366: realloc is generally used incorrectly

Rémi Denis-Courmont remi at remlab.net
Tue May 26 10:46:26 CEST 2009


On Tue, 26 May 2009 10:06:25 +0200, Laurent Aimar <fenrir at via.ecp.fr>
wrote:
>> But anyway, that won't work - the caller will often assume the data was
>> stored successfully in the table, and who knows what it's going to do.
>> In some cases, it will just leak. In other cases, it will cause
>> corruption. Then that's a case where a state is corrupted, an abort()
>> seems fine then.
> 
>  Anyway, I do agree that forking for input would be the best way to cope
> (ie with an abort), but I fear a bit the complexity/overhead of such a
> solution with the current code.

According to some Mozilla documentation, fork()+XEmbed is easier than using
Xft...

Certainly, within (lib)vlc it would be more tricky.

-- 
Rémi Denis-Courmont




More information about the vlc-devel mailing list