[vlc-devel] [PATCH] core: fix vlc_alloc() overflow detection

Rémi Denis-Courmont remi at remlab.net
Sun Nov 12 12:46:54 CET 2017


On dimanche 12 novembre 2017 12:44:31 EET Romain Vimont wrote:
> The only difference is that when size is 0, you call malloc(0) instead
> of returning NULL directly.
> 
> But yes, it might be better semantically, so that the condition tests
> only the overflow.

It's moot now.

-- 
Rémi Denis-Courmont


More information about the vlc-devel mailing list