[Issue 17102] std.write.file generates a segmentation fault when the file name is a string with a default value

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Jan 20 12:41:02 PST 2017


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

Jack Stouffer <jack at jackstouffer.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WONTFIX                     |---

--- Comment #4 from Jack Stouffer <jack at jackstouffer.com> ---
(In reply to Vladimir Panteleev from comment #3)
> I don't think it's the job of the standard library to validate that the
> input parameter is valid before passing it to a C API.

We can at least add an assert with an error message.

> Either way, finding the cause of the segmentation fault would have been as
> simple as running your program under a debugger.

Impossible with macOS.

--


More information about the Digitalmars-d-bugs mailing list