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

 
 

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

Submitted by:  None
Submitted on:  Fri 21 Jan 2005 02:53:29 PM UTC  
 
Category: NoneSeverity: 4 - Important
Priority: 9 - ImmediateItem Group: None
Status: FixedPercent Complete: 0%
Assigned to: Joerg Wunsch <joerg_wunsch>Originator Email: -unavailable-
Open/Closed: ClosedRelease: None
Fixed Release: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 23 Jan 2005 09:24:00 PM UTCjoerg_wunschStatusNone=>Fixed
  Open/ClosedOpen=>Closed
Fri 21 Jan 2005 03:09:02 PM UTCjoerg_wunschSeverity3 - Normal=>4 - Important
  Priority5 - Normal=>240(Error - Not Found)
  Assigned toNone=>joerg_wunsch

Back to the top


Powered by Savane 3.1-cleanup1