[MLton] Bug Report -- Stack corruption

Neophytos Michael nmichael@yahoo.com
Sun, 27 Feb 2005 06:14:32 -0800 (PST)


There was no test, just code inspection.  After all these years of C
programming these things just jump out.

Neophytos


--- "Daniel C. Wang" <danwang@CS.Princeton.EDU> wrote:

> I'm curious as to how this bug was uncovered. If a particular program 
> failed. It would be nice to add it to the set of regression tests.
> 
> Stephen Weeks wrote:
> >>Function "mkstemp" in mlton/runtime/platform/mingw.c corrupts its own
> stack.
> > 
> > ...
> > 
> >>The last line above writes at templ[4], one past the end since the char
> array
> >>only has size 4.
> > 
> > 
> > Thanks for the bug report.  I've checked in a fix.  Here's the new
> > code.
> > 
> 
> _______________________________________________
> MLton mailing list
> MLton@mlton.org
> http://mlton.org/mailman/listinfo/mlton
> 




		
__________________________________ 
Do you Yahoo!? 
Read only the mail you want - Yahoo! Mail SpamGuard. 
http://promotions.yahoo.com/new_mail