Thread overview
[Issue 16443] std.getopt: segmentation fault with empty string option
Aug 28, 2016
Robert Schadek
August 28, 2016
https://issues.dlang.org/show_bug.cgi?id=16443

Robert Schadek <rburners@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rburners@gmail.com

--- Comment #1 from Robert Schadek <rburners@gmail.com> ---
I'll work on that.

--
August 28, 2016
https://issues.dlang.org/show_bug.cgi?id=16443

--- Comment #2 from Jean-Mathieu Deschenes <deschenes.j.m@gmail.com> ---
Hi,

I have already created a PR for it.

Let me know what you think:

https://github.com/dlang/phobos/pull/4753

--
August 28, 2016
https://issues.dlang.org/show_bug.cgi?id=16443

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/024b751547479b1ff973b0929c2aac34343f4de1 Fix Issue 16443 - Prevent segmentation fault

If the option name is an empty string an Exception will be raised instead.

https://github.com/dlang/phobos/commit/82ff5bc8891d1ae5421286ca1d163175cf9b1ac7 Merge pull request #4753 from jdeschenes/empty_getopt

Fix Issue 16443 - Segmentation fault when option name is empty

--
August 28, 2016
https://issues.dlang.org/show_bug.cgi?id=16443

github-bugzilla@puremagic.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--
October 01, 2016
https://issues.dlang.org/show_bug.cgi?id=16443

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/024b751547479b1ff973b0929c2aac34343f4de1 Fix Issue 16443 - Prevent segmentation fault

https://github.com/dlang/phobos/commit/82ff5bc8891d1ae5421286ca1d163175cf9b1ac7 Merge pull request #4753 from jdeschenes/empty_getopt

--