bugAVR C Runtime Library - Bugs: bug #11684, realloc overwrites first to bytes...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #11684: realloc overwrites first to bytes of memory block when shrinking

Submitter:  None
Submitted:  Fri 21 Jan 2005 02:53:29 PM UTC
   
 
Category:  None Severity:  4 - Important
Priority:  9 - Immediate Item Group:  None
Status:  Fixed Assigned to:  joerg_wunsch
Percent Complete:  0% Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  None
Fixed Release:  None

Sun 23 Jan 2005 09:24:00 PM UTC, comment #1: 

Thanks for pointing this out.  The mucking with the "nx"
fields was a brain-o on my side, and your suggestion was
indeed the correct fix for this problem.

Fixed both in HEAD of CVS, as well as in the 1.2 branch, so
the impending 1.2.1 release will have the fix.

Joerg Wunsch <joerg_wunsch>
Group administrator
Fri 21 Jan 2005 02:53:29 PM UTC, original submission:  

When shrinking a memory block by a size of 4 or more bytes, the realloc function overwrites the first 2 bytes of the block.
I have been able to fix it for me by removing lines 75 and 77 from the realloc.c file. But I am not to sure, if I haven't broken anything else by doing that.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-01-23 joerg_wunsch StatusNone Fixed
    Open/ClosedOpen Closed
2005-01-21 joerg_wunsch Severity3 - Normal 4 - Important
    Priority5 - Normal 240 (Error - Not Found)
    Assigned toNone joerg_wunsch

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code