Re: [Openocd-development] malloc: Vote what to do

2009-12-18 Thread Nico Coesel
Subject: Re: [Openocd-development] malloc: Vote what to do > > On Thu, 2009-12-17 at 21:44 +0100, Carsten Breuer wrote: > > Hi all, > > > > > > after finding out, that malloc come back with NULL > > even on linux (where people says here, it don't), > > im sta

Re: [Openocd-development] malloc: Vote what to do

2009-12-17 Thread Liam Redmond (Rock Software)
mount of memory. Killing the app is not a good idea I think. Again this is probably me thinking "embedded" rather than PC. -- Liam. - Original Message - From: "Carsten Breuer" To: Sent: Thursday, December 17, 2009 8:44 PM Subject: [Openocd-development] malloc: Vote wh

Re: [Openocd-development] malloc: Vote what to do

2009-12-17 Thread Zach Welch
On Thu, 2009-12-17 at 21:44 +0100, Carsten Breuer wrote: > Hi all, > > > after finding out, that malloc come back with NULL > even on linux (where people says here, it don't), > im starting to loose interest in the hole thing. > > So what should we do? > > I think now, that all this arguments n

Re: [Openocd-development] malloc: Vote what to do

2009-12-17 Thread David Brownell
On Thursday 17 December 2009, Øyvind Harboe wrote: > As a maintainer I would summarize the status quo as(and there > are no plans to change this): > > - accept all clean patches to fix propagation of error handling. > malloc() is just one example of broken error propagation > > - leave malloc()'s

Re: [Openocd-development] malloc: Vote what to do

2009-12-17 Thread Øyvind Harboe
As a maintainer I would summarize the status quo as(and there are no plans to change this): - accept all clean patches to fix propagation of error handling. malloc() is just one example of broken error propagation - leave malloc()'s as-is meanwhile, we have tools to identify the cases where we're

Re: [Openocd-development] malloc: Vote what to do

2009-12-17 Thread Thomas Kindler
Carsten Breuer wrote: > Hi all, > Hi! > after finding out, that malloc come back with NULL > even on linux (where people says here, it don't), It does, but it's a tricky topic. Please post your test program! I've tried this one on Ubuntu 9.10 in VirtualBox: #include #include #include

[Openocd-development] malloc: Vote what to do

2009-12-17 Thread Carsten Breuer
Hi all, after finding out, that malloc come back with NULL even on linux (where people says here, it don't), im starting to loose interest in the hole thing. So what should we do? I think now, that all this arguments not to check malloc result is academical and some arguments are not even true.