[Issue 19968] @safe code can create invalid bools resulting in memory corruption

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 15 09:19:37 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19968

--- Comment #1 from Tim <tim.dlang at t-online.de> ---
The ABI specifies, that bool are 0 or 1:
https://dlang.org/spec/abi.html#basic_types

There are multiple options to solve this bug:
1. Make sure @safe code can not create invalid bools.
2. Change the ABI, so all values are valid. This could result in slower code
being generated.

--


More information about the Digitalmars-d-bugs mailing list