Bug 24478 – std.csv array out of bounds when row size exceeds header
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2024-04-02T19:26:26Z
Last change time
2024-04-03T13:52:19Z
Keywords
pull
Assigned to
No Owner
Creator
Dennis
Comments
Comment #0 by dkorpel — 2024-04-02T19:26:26Z
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.
Comment #1 by dlang-bot — 2024-04-02T19:29:48Z
@dkorpel created dlang/phobos pull request #8968 "Fix bugzilla 24478 - std.csv array out of bounds when row size exceed…" fixing this issue:
- Fix bugzilla 24478 - std.csv array out of bounds when row size exceeds header
https://github.com/dlang/phobos/pull/8968
Comment #2 by dlang-bot — 2024-04-03T13:52:19Z
dlang/phobos pull request #8968 "Fix bugzilla 24478 - std.csv array out of bounds when row size exceed…" was merged into master:
- 08b6dd3f7a24ac94ffd5ae2541bccacb3048f757 by Dennis Korpel:
Fix bugzilla 24478 - std.csv array out of bounds when row size exceeds header
https://github.com/dlang/phobos/pull/8968