DragonFly bugs List (threaded) for 2009-06
DragonFly BSD
DragonFly bugs List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: zero-size malloc and ps: kvm_getprocs: Bad address


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 2 Jun 2009 12:14:18 -0700 (PDT)

:The standard however demands a unique pointer to be returned - we can't=20
:return a constant pointer.  I think rounding up to the minimal size sound=
:s=20
:good.
:
:cheers
:   simon

   Sure, go ahead and make the change.  I think that will actually reduce
   the size of the code slightly since we would not longer have to deal
   with the special pointer.  Remember to deal with realloc properly as
   well.

						-Matt



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