[Bug libstdc++/56103] New: Overwrite classes on destruction for debug

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jan 25 10:45:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56103

             Bug #: 56103
           Summary: Overwrite classes on destruction for debug
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: glisse@gcc.gnu.org
                CC: redi@gcc.gnu.org


See the discussion starting here for more details:
http://gcc.gnu.org/ml/libstdc++/2013-01/msg00064.html

Overwriting classes like string or vector with garbage when they are destructed
can help detect uses after destruction.

Note that there is a suggestion to handle it at the compiler level for all
classes, instead of manually for a few classes of the standard library.



More information about the Gcc-bugs mailing list