Roland Mainz wrote:
>> ))) - IMO in many places the usage of |malloc()| should be replaced with
>> |alloca()| or C99's variable length arrays assuming the size does not
>> exceed a given size
First you need to redefine alloca and/or VLA's to allow the application
to do something other than crash with stack overflow fault when there
isn't enough memory available. We (X.Org) just finished removing all
the alloca() usage from Xorg because it just caused too many crashes
(including ones that could be remotely triggered, aka Denial of Service
attacks).
alloca() just isn't a sane interface as currently defined.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering