fix simple_malloc size restrictions
authorRich Felker <dalias@aerifal.cx>
Sun, 20 Feb 2011 21:10:38 +0000 (16:10 -0500)
committerRich Felker <dalias@aerifal.cx>
Sun, 20 Feb 2011 21:10:38 +0000 (16:10 -0500)
commita23baf586a1ca78213d43bce5fee2a30715b473b
treee6939397742a037f847d93e53c98afa79e980bdc
parent96f2197494791f5884c01b5caa908074cc7e90a6
fix simple_malloc size restrictions

do not allow allocations that overflow ptrdiff_t; fix some overflow
checks that were not quite right but didn't matter due to address
layout implementation.
src/malloc/__simple_malloc.c