Curiously Recurring C++ Bugs
Timon Gehr
timon.gehr at gmx.ch
Fri Jul 12 23:51:02 UTC 2024
On 7/13/24 01:25, Walter Bright wrote:
> On 7/12/2024 2:16 PM, Timon Gehr wrote:
>> (crickets.)
>
> It'll give the bounds check error for @safe code even with -release.
>
I am aware. In C++ you can get the bounds check with std::vector::at.
Anyway, your point was:
On 7/12/24 22:13, Walter Bright wrote:
>
> `-release` hasn't turned of bounds checking for something like 15 years.
> To disable it, `-noboundscheck` is required.
This is false. Nothing else is required to turn off some bounds checks
with `-release`, escalating out-of-bounds accesses to a memory safety issue.
More information about the Digitalmars-d
mailing list