- Timestamp:
- Jul 3, 2005, 12:56:38 AM (20 years ago)
- Location:
- trunk/src/emx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/ChangeLog.LIBC
-
Property cvs2svn:cvs-rev
changed from
1.82
to1.83
r2158 r2159 5 5 o Added obstack.h and it's implementation from GLIBC. 6 6 o malloc and realloc must set errno to ENOMEM on failure. 7 o Fixed assertion during realloc(p, -256) to return failure 8 instead. Added a few more overflow checks. 7 9 8 10 2005-07-01: knut st. osmundsen <bird-gccos2-spam@anduin.net> -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/emx/src/lib/malloc/irealloc.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r2158 r2159 77 77 rsize = _UM_ROUND_LUMP (new_size); 78 78 nsize = (char *)_UM_ADD (lump, rsize) - (char *)seg->mem; 79 assert (nsize > seg->size); 79 if (nsize <= seg->size) 80 return 0; 80 81 81 82 /* Attempt to expand the segment by calling EXPAND_FUN. */ … … 254 255 struct _um_lump *slack; 255 256 257 /* round the new size and make sure it doesn't accidentially wrap. */ 258 rsize = _UM_ROUND_LUMP (new_size); 259 if (rsize < new_size) 260 return NULL; 261 256 262 h = seg->parent_heap; 257 263 _um_heap_lock (h); … … 259 265 flags |= _UMFI_TILED; 260 266 osize = _UM_ROUND_LUMP (lump->size); 261 rsize = _UM_ROUND_LUMP (new_size);262 267 r = _UM_BLOCK_FROM_LUMP (lump); 263 268 if (rsize < osize) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.