[PATCH] Fix memory corruption bug in newlib 1.17,18].0

Martin Guy martinwguy@gmail.com
Fri Jan 13 03:47:00 GMT 2012


Hi all
   The attached patch for crosstool adds a patch to newlib 1.17.0 and
1.18.0 to fix a bug in malloc() that corrupts memory either when
sbrk() is called between two calls to malloc() or when a custom sbrk()
returns memory from several discontiguous memory regions (as in this
embedded target with two disjoint memory banks).
   Newlib fixed it in 1.19.0; this back-ports the fix (which is the
same as the difference between dlmalloc 2.6.4 and 2.6.5) to the other
versions present in crosstool-ng.

      M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crosstool-ng-newlib-update-dlmalloc-to-2.6.5.patch
Type: text/x-patch
Size: 3849 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20120113/f9584a63/attachment.bin>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list