[asterisk-dev] [Code Review] remove checks for alloca and ast_strdupa NULL return value

Simon Perreault simon.perreault at viagenie.ca
Thu Jul 12 14:00:19 CDT 2012


On 07/12/2012 02:28 PM, wdoekes wrote:
> But, I believe the gcc __builtin_alloca guarantees it won't return NULL,
> but fail in more mysterious ways instead or SEGFAULT. So, I added an
> ast_alloca macro that expands to that.

What do you think alloca() expands to on FreeBSD?

That's right! __builtin_alloca()!

Simon
-- 
DTN made easy, lean, and smart --> http://postellation.viagenie.ca
NAT64/DNS64 open-source        --> http://ecdysis.viagenie.ca
STUN/TURN server               --> http://numb.viagenie.ca





More information about the asterisk-dev mailing list