[Issue 6079] [CTFE] Array index out of bound detection is off-by-one

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 31 02:43:39 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6079



--- Comment #1 from kennytm at gmail.com 2011-05-31 02:39:16 PDT ---
The bug was introduced in commit 4120b86*, I believe this is because of 

             if (indexToModify > destarraylen)
//                             ^ should be >=.

*:
https://github.com/D-Programming-Language/dmd/commit/4120b86f67eace7a7b930a6ceca823d2088deefd#L0R2728

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list