Thread overview
[Issue 4621] Destructors are inherently un-@safe
Sep 29, 2016
anonymous4
Sep 29, 2016
anonymous4
Oct 18, 2016
anonymous4
Dec 17, 2022
Iain Buclaw
September 29, 2016
https://issues.dlang.org/show_bug.cgi?id=4621

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #20 from anonymous4 <dfj1esp02@sneakemail.com> ---
AFAIK, the freed memory references are nor nullified. Another example:

class A
{
    @safe:
    int[] a;
    this(){ a=new int[1]; }
    ~this(){ a[0]=0; } //write after free
}

void f() @safe
{
    auto a=new A;
}

--
September 29, 2016
https://issues.dlang.org/show_bug.cgi?id=4621

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |spec

--
October 18, 2016
https://issues.dlang.org/show_bug.cgi?id=4621

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=15595

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=4621

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P3

--