Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e70edd1 in mainline for uspace/lib/libc/generic/malloc.c


Ignore:
Timestamp:
2010-02-11T18:15:27Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
827d73f, b473611
Parents:
ed903174
Message:

Check for heap wrap-around when growing the heap.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/malloc.c

    red903174 re70edd1  
    164164{
    165165        if (size == 0)
     166                return false;
     167
     168        if ((heap_start + size < heap_start) || (heap_end + size < heap_end))
    166169                return false;
    167170       
Note: See TracChangeset for help on using the changeset viewer.