This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Malloc routines have overflow problems
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