[Issue 20886] std.process.browse does not work with URLs 256 characters or longer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Apr 20 17:58:43 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=20886
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/phobos pull request #7988 "Fix 20886 - Retain
tempCString buffer in browse" fixing this issue:
- Fix 20886 - Retain tempCString buffer in browse
The temporary buffer returned by `tempCString` was assigned to a `char*`
and hence destroyed after the statement. This worked by accident for
small URL's because the space was allocated on the stack and not
overwritten before forking.
https://github.com/dlang/phobos/pull/7988
--
More information about the Digitalmars-d-bugs
mailing list