AVR 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: |
Joerg Wunsch <joerg_wunsch> |
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.
|
Anonymous |
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 | Status | None | Fixed | |
Open/Closed | Open | Closed | |||
2005-01-21 | joerg_wunsch | Severity | 3 - Normal | 4 - Important | |
Priority | 5 - Normal | 240 (Error - Not Found) | |||
Assigned to | None | joerg_wunsch |
Powered by Savane 3.13-02a9.
Corresponding source code
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.