TADS Bug Database

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000230TADS 3Library - Adv3public2014-08-27 05:022015-08-05 21:30
Reportertomasb 
Assigned To 
PrioritylowSeveritytweakReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Summary0000230: NumberedDial should check number length
DescriptionIn 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;
    }
TagsNo tags attached.
Fixed In Version3.1.4
Attached Files

- Relationships

-  Notes
(0000396)
Michael Roberts (administrator)
2015-08-05 21:30

Fixed for the next update.

- Issue History
Date Modified Username Field Change
2014-08-27 05:02 tomasb New Issue
2015-08-05 21:30 Michael Roberts Fixed In Version => 3.1.4
2015-08-05 21:30 Michael Roberts Note Added: 0000396
2015-08-05 21:30 Michael Roberts Status new => resolved
2015-08-05 21:30 Michael Roberts Resolution open => fixed


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker