Malloc routines have overflow problems
Jason Tishler
jason@tishler.net
Mon Aug 12 04:04:00 GMT 2002
Jeff,
On Fri, Aug 09, 2002 at 09:22:24PM -0400, J. Johnston wrote:
> Jason Tishler wrote:
> > BTW, mEMALIGn() *might* have similar issues because it uses
> > request2size and has some (long) casts too. Maybe the same overflow
> > check should be used here too?
>
> No, this is not a problem. mEMALIGn turns around and calls mALLOc
> which has the check. If mALLOc fails, it fails immediately.
Doh! Sorry for the false alarm.
Thanks again,
Jason
More information about the Newlib
mailing list