www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24478] New: std.csv array out of bounds when row size exceeds

https://issues.dlang.org/show_bug.cgi?id=24478

          Issue ID: 24478
           Summary: std.csv array out of bounds when row size exceeds
                    header
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: dkorpel live.nl

When you iterate over a `csvReader!(string[string])("A, B\n1, 2, 3", null)`, an
ArrayIndexError is thrown. Malformed user input should raise an Exception, not
an Error.

--
Apr 02