[Issue 14005] core.exception.InvalidMemoryOperationError@(0) during byLine

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jan 19 07:45:53 PST 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
          Component|DMD                         |Phobos
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--- Comment #2 from ag0aep6g at gmail.com ---
(In reply to ag0aep6g from comment #1)
> I guess the size returned by GC.sizeOf includes some internal data. Then
> std.stdio.readlnImpl is wrong to assume that it can use all of it.

Actually, std.stdio.readlnImpl shouldn't write beyond the given buf at all.
That space may be in use!

https://github.com/D-Programming-Language/phobos/pull/2880

--


More information about the Digitalmars-d-bugs mailing list