Changeset e70edd1 in mainline


Ignore:
Timestamp:
2010-02-11T18:15:27Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
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.