Re: API freeze break request for glib



Le mercredi 03 mars 2010, à 11:18 -0500, Behdad Esfahbod a écrit :
> Hi,
> 
> I'd like to request API freeze break to add the following 6 new functions to glib:
> 
> g_malloc_n
> g_malloc0_n
> g_realloc_n
> g_try_malloc_n
> g_try_malloc0_n
> g_try_realloc_n
> 
> These are similar to their regular version but take two numbers instead, say A
> and B, and allocate A*B bytes, taking care of the possible overflow.  What
> these allow us to do is redefine the g_new() family of allocators to avoid the
> overflow that can currently happen in them.
> 
> Since this is fixing an entire class of security issues, we would like to get
> it in this cycle instead of next.

Sounds good (and looks good after a quick glance at the patch). Note
that you don't really need release team approval for glib stuff, but
thanks for asking :-)

Vincent

-- 
Les gens heureux ne sont pas pressés.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]