[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-devel] bmc-config: PEF config checkout
From: |
Anand Babu |
Subject: |
Re: [Freeipmi-devel] bmc-config: PEF config checkout |
Date: |
Sat, 9 Sep 2006 20:40:02 -0700 |
User-agent: |
GNU/Emacs/Mutt |
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
address@hidden
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
_______________________________________________
Freeipmi-devel mailing list
address@hidden
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]
Re: [Freeipmi-devel] bmc-config: PEF config checkout, Anand Babu, 2006/09/09