avr-gcc-list
[Top][All Lists]
Advanced

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

[avr-gcc-list] I found a bug in avr-libc-1.20 realloc


From: Peter
Subject: [avr-gcc-list] I found a bug in avr-libc-1.20 realloc
Date: Thu, 20 Jan 2005 17:11:32 +0100
User-agent: KMail/1.7

Hi all!

I am new to this list. I am working on a projekt with an atmega103 right now,
and I am using avr-gcc. I must say, the whole toolset works very well for me
so far.
I am using ddd with avr-gdb and simulavrxx simulating an atmega128 for 
debugging right now.

Today I found a bug in libc's realloc function:
When you shrink a memory block by a size of 4 or more, realloc overwrites the 
first 2 bytes of the block, and I think it also doesn't add the block to the 
freelist correctly. Not sure about that yet - I'm not too familier with the 
implementation right now.

best wishes,

Peter Fuhrmann


reply via email to

[Prev in Thread] Current Thread [Next in Thread]