[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 07:59:16 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=19968
--- Comment #7 from Walter Bright <bugzilla at digitalmars.com> ---
> Variables of type bool are expected to be 0 or 1. Using void initialization this invariant can be wrong. This can result in memory corruption.
That is correct. But I don't think this generalizes to other integer types.
--
More information about the Digitalmars-d-bugs
mailing list