[Issue 19968] @safe code can create invalid bools resulting in memory corruption
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 17 08:03:44 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19968
--- Comment #8 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Walter Bright from comment #7)
> That is correct. But I don't think this generalizes to other integer types.
Mainly because the compiler doesn't do bounds checking when indexing by bool
and the array size is known to be >= 2.
--
More information about the Digitalmars-d-bugs
mailing list