[Issue 22359] joiner over an empty forward range object liable to segfault
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Oct 9 09:17:59 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22359
Dlang Bot <dlang-bot at dlang.rocks> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8263 "Fix issue #22359 - joiner over an empty class
range liable to segfault" was merged into master:
- ff6920bd8a461393dcdb7d01edb9b62bcb9bf4d1 by Adam D. Ruppe:
Fix issue #22359 - joiner over an empty forward range object liable to
segfault
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