Bug 21110 – OOB memory access, safety violation

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Other
Creation time
2020-08-04T05:50:36Z
Last change time
2021-08-09T22:15:09Z
Keywords
pull
Assigned to
No Owner
Creator
Bruce Carneal

Comments

Comment #0 by bcarneal11 — 2020-08-04T05:50:36Z
void main() { import std.stdio : writeln; int[] dst; int[] a; int[] b; a.length = 3; b.length = 3; dst.length = 4; dst[] = a[] + b[]; writeln(dst[3]); } Prior to 2.077, per Steven Schveighoffer, the above safely failed with an array violation. Currently on his and my test machines, the above runs to completion printing out some number (402696894 on my machine, 402653184 on his). Annotating main with @safe didn't change anything.
Comment #1 by dlang-bot — 2020-11-10T04:30:01Z
@RazvanN7 created dlang/druntime pull request #3267 "Fix Issue 21110 - OOB memory access, safety violation" fixing this issue: - Fix Issue 21110 - OOB memory access, safety violation https://github.com/dlang/druntime/pull/3267
Comment #2 by dlang-bot — 2021-08-09T12:08:40Z
dlang/druntime pull request #3267 "Fix Issue 21110 - OOB memory access, safety violation" was merged into stable: - 6b5b6f1a589cf6f10f0282c248e6ec9c616b6397 by RazvanN7: Fix Issue 21110 - OOB memory access, safety violation https://github.com/dlang/druntime/pull/3267
Comment #3 by dlang-bot — 2021-08-09T22:15:09Z
dlang/druntime pull request #3540 "merge stable" was merged into master: - f978df34a48613492240e8398227419b14002bef by RazvanN7: Fix Issue 21110 - OOB memory access, safety violation https://github.com/dlang/druntime/pull/3540