[Issue 22359] joiner over an empty forward range object liable to segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 6 02:14:25 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22359
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |pull
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@adamdruppe created dlang/phobos pull request #8263 "Fix issue #22359." fixing
this issue:
- Fix issue #22359.
If you pass it a range of class-based ranges, the initialization to
`typeof(_current).init` will be `null`. Calling the `save` method
on `null` will naturally be a memory violation. This generic check
will handle null without harming any other type since save of any
init value will be another init value.
https://github.com/dlang/phobos/pull/8263
--
More information about the Digitalmars-d-bugs
mailing list