Re: Bug in Safe.e discovered today
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 29, 2005
- 566 views
Al Getz wrote: > I checked all my 2.5 files and couldnt find any change. > The files were all from around the end of 2004. > > What was the 'official' change that fixed this? If you do a fc on safe.e between 2.4 and 2.5 you'll see that several lines have changed. I think the relevant change was to add an if-statement to test if len is 0 at the start of safe_address() I'm not sure if that was the only relevant change.
function safe_address(atom start, integer len) -- is it ok to read/write all addresses from start to start+len-1? atom block_start, block_upper, upper sequence block if len = 0 then return OK end if ...
Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com