Bug 20393 – formattedRead accepts input, that should be rejected

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-11-14T18:19:01Z
Last change time
2021-06-16T08:08:59Z
Keywords
pull
Assigned to
No Owner
Creator
berni44

Comments

Comment #0 by bugzilla — 2019-11-14T18:19:01Z
--- import std.format; void main() { string str = "foo 12a-buzz"; string a, c; int b; formattedRead(str, "%s %d-%s", &a, &b, &c); assert(c == "a"); // just for showing, what happens } --- Should throw an exception but doesn't.
Comment #1 by dlang-bot — 2021-06-16T05:37:24Z
@taitaisama created dlang/phobos pull request #8144 "Fix Issue 20393 - formattedRead accepts input, that should be rejected" fixing this issue: - Fix Issue 20393 - formattedRead accepts input, that should be rejected https://github.com/dlang/phobos/pull/8144
Comment #2 by dlang-bot — 2021-06-16T08:08:59Z
dlang/phobos pull request #8144 "Fix Issue 20393 - formattedRead accepts input, that should be rejected" was merged into master: - c7b59911eadee739870d7023055136e420bc2e22 by Ramanuj: Fix Issue 20393 - formattedRead accepts input, that should be rejected https://github.com/dlang/phobos/pull/8144