[Issue 22673] .array of a range with length preallocates without checking if the length was lying or not.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 14 00:51:07 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22673
--- Comment #2 from mhh <maxhaton at gmail.com> ---
The array allocated is uninitialized.
```
auto result = (() @trusted => uninitializedArray!(Unqual!E[])(length))();
```
--
More information about the Digitalmars-d-bugs
mailing list