Thread overview
[Issue 10773] New: std.algorithm.splitter produces infinite range with empty delimiter
August 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10773

           Summary: std.algorithm.splitter produces infinite range with
                    empty delimiter
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody@puremagic.com
        ReportedBy: hsteoh@quickfur.ath.cx


--- Comment #0 from hsteoh@quickfur.ath.cx 2013-08-07 13:15:56 PDT ---
Calling std.algorithm.splitter with a non-empty string and an empty delimiter causes it to produce an infinite range of empty strings. This, in turn, causes std.array.split to get into an infinite loop when it is called with an empty delimiter.

When the delimiter is empty, std.algorithm.splitter should return a range containing 1-element ranges of each element in the original range. (Cf. Perl's split(//, "string").) At the very least, std.array.split should not have an infinite loop.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10773


hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from hsteoh@quickfur.ath.cx 2013-08-07 13:55:41 PDT ---
https://github.com/D-Programming-Language/phobos/pull/1456

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10773



--- Comment #2 from github-bugzilla@puremagic.com 2013-08-09 11:02:00 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/phobos

https://github.com/D-Programming-Language/phobos/commit/9fab541993c846fd5ddffedfa4a2014634b88cfc Fix issue 10773.

https://github.com/D-Programming-Language/phobos/commit/395b72204ebc62f2788ed307f002824cbebaccdd Merge pull request #1456 from quickfur/issue10773

Fix issue 10773.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
August 09, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10773


hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #3 from hsteoh@quickfur.ath.cx 2013-08-09 11:34:57 PDT ---
Fixed in git HEAD.

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