On Tue, Sep 05, 2006 at 08:59:57AM -0700, Al Chu wrote:
,----
| > - Several *_commit functions in bmc-sol-conf-section.c used to
| >    free the kv->value before actually parsing it, resulting in
| >    the actual parameter being set to 0.
| 
| ARGH!  This code worked on another machine.  I suppose the
| randomness of the compile/memory usage would allow the value read
| from the invalid pointer to still be correct for other machines.
`----
Memory de-allocation routines usually don't take extra effort to
destroy the content. They just de-reference the pointer. 

In this case, because the free'd pointer is referenced immediately, it
never faulted. Compilers usually can't see these bugs. 

I will use some memory debuggers to catch such errors and report soon.

-- 
Albert Chu
[EMAIL PROTECTED]
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel
---end quoted text---

-- 
Anand Babu 
GPG Key ID: 0x62E15A31
Blog [http://ab.freeshell.org]              
The GNU Operating System [http://www.gnu.org]  



_______________________________________________
Freeipmi-devel mailing list
Freeipmi-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/freeipmi-devel

Reply via email to