[Issue 3363] std.stream.readf segfaults with immutable format strings

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 1 11:39:57 PST 2010


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


Witold Baryluk <baryluk at smp.if.uj.edu.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch, rejects-valid
                 CC|                            |baryluk at smp.if.uj.edu.pl


--- Comment #1 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2010-12-01 11:38:23 PST ---
Why this bug isn't fixed yet? It is trivial to fix and important, as many users
(especially beginners) will encounter this problem.

changing std/stream.d:694:
    if (arguments[j] is typeid(char[])) {

into

    if (arguments[j] is typeid(string) || arguments[j] is typeid(char[])) {

would fix it right?

-- 
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