TADS Bug Database - TADS 3
View Issue Details
0000230TADS 3Library - Adv3public2014-08-27 05:022015-08-05 21:30
tomasb 
 
lowtweakalways
resolvedfixed 
3.1.4
0000230: NumberedDial should check number length
In class NumberedDial there is a check for '<digit>+' prior to calling toInteger(val). But when player enters really large number, then it gets past the rexMatch and "Runtime error: numeric overflow" will occur on toInteger(val).

    isValidSetting(val)
    {
        local num;
        
        /* if it doesn't look like a number, it's not valid */
        if (rexMatch('<digit>+', val) != val.length())
            return nil;

        /* get the numeric value */
        num = toInteger(val);

        /* it's valid if it's within range */
        return num >= minSetting && num <= maxSetting;
    }
No tags attached.
Issue History
2014-08-27 05:02tomasbNew Issue
2015-08-05 21:30Michael RobertsFixed In Version => 3.1.4
2015-08-05 21:30Michael RobertsNote Added: 0000396
2015-08-05 21:30Michael RobertsStatusnew => resolved
2015-08-05 21:30Michael RobertsResolutionopen => fixed

Notes
(0000396)
Michael Roberts   
2015-08-05 21:30   
Fixed for the next update.