Type | Bug | Status | reviewed | Date | 13-Mar-2013 17:33 |
---|---|---|---|---|---|
Version | r3 master | Category | Native | Submitted by | Ladislav |
Platform | All | Severity | minor | Priority | normal |
Summary | FOR overflow test fails |
---|---|
Description | The test below is expected to yield TRUE |
Example code |
num: 0 for i 9223372036854775807 9223372036854775807 9223372036854775807 [ num: num + 1 if num <> 1 [break/return false] true ] |
Assigned to | n/a | Fixed in | - | Last Update | 20-Jan-2015 06:17 |
---|
Comments | |
---|---|
(0003677)
Ladislav 15-Mar-2013 13:25 |
In the core-tests suite. |
(0004550)
abolka 20-Jan-2015 06:11 |
Alternate test: #2168. Additional remarks from #2168: "Loop_Integer doesn't check arithmetic overflow, so the loop variable could overflow and cause an infinite loop."
Proposed fix from Shixin Zeng (also from #2168): https://github.com/zsx/r3/commit/17200c7e41002577a44724558a302731052a85fb |
Date | User | Field | Action | Change |
---|---|---|---|---|
20-Jan-2015 06:18 | abolka | Comment : 0004550 | Modified | - |
20-Jan-2015 06:17 | abolka | Comment : 0004550 | Modified | - |
20-Jan-2015 06:17 | abolka | Status | Modified | submitted => reviewed |
20-Jan-2015 06:11 | abolka | Comment : 0004550 | Added | - |
15-Mar-2013 13:25 | Ladislav | Comment : 0003677 | Added | - |
13-Mar-2013 17:41 | Ladislav | Code | Modified | - |
13-Mar-2013 17:33 | Ladislav | Ticket | Added | - |