From e6c6a2d21a6869bcfdf872479db566864a22f5fc Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 5 Apr 2019 08:58:22 +0200 Subject: Make Array.get system function .get() returns a memory block that can be changed if the original array is manipulated after getting the slice. So the slice returned by .get() may allow access to invalid memory. --- tests/tanya/container/tests/array.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/tanya/container/tests/array.d b/tests/tanya/container/tests/array.d index c8fb914..6dd90b4 100644 --- a/tests/tanya/container/tests/array.d +++ b/tests/tanya/container/tests/array.d @@ -136,7 +136,7 @@ import tanya.test.stub; } // const constructor tests -@nogc nothrow pure @safe unittest +@nogc nothrow pure @system unittest { auto v1 = const Array!int([1, 2, 3]); auto v2 = Array!int(v1); -- cgit v1.2.3