Type | Bug | Status | dismissed | Date | 28-Aug-2014 03:31 |
---|---|---|---|---|---|
Version | r3 master | Category | Unspecified | Submitted by | szeng |
Platform | All | Severity | minor | Priority | normal |
Summary | Infinite loop in "for" caused by overflow |
---|---|
Description | Loop_Integer doesn't check arithmetic overflow, so the loop variable could overflow and cause an infinite loop. |
Example code |
>> ma: 9223372036854775807 == 9223372036854775807 >> for a 0 ma to integer! ma / 2 [print a] ; infinite loop |
Assigned to | n/a | Fixed in | - | Last Update | 26-Jan-2015 07:18 |
---|
Comments | |
---|---|
(0004497)
szeng 28-Aug-2014 03:34 |
Here is a fix for Loop_Integer:
https://github.com/zsx/r3/commit/17200c7e41002577a44724558a302731052a85fb Loop_Number probably also needs to be fixed. |
(0004530)
BrianH 21-Oct-2014 18:22 |
Remember when fixing FOR, #884. See #2132 for where the old FOR should go. |
(0004549)
abolka 20-Jan-2015 06:11 |
Closing as duplicate of #1994. |
Date | User | Field | Action | Change |
---|---|---|---|---|
26-Jan-2015 07:18 | abolka | Code | Modified | - |
26-Jan-2015 07:18 | abolka | Status | Modified | submitted => dismissed |
20-Jan-2015 06:11 | abolka | Comment : 0004549 | Added | - |
21-Oct-2014 18:22 | BrianH | Comment : 0004530 | Added | - |
28-Aug-2014 03:34 | szeng | Comment : 0004497 | Added | - |
28-Aug-2014 03:31 | szeng | Ticket | Added | - |