https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122491

Christopher Albert <albert at tugraz dot at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #63712|0                           |1
        is obsolete|                            |

--- Comment #8 from Christopher Albert <albert at tugraz dot at> ---
Created attachment 63713
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=63713&action=edit
Avoid UAF on missing END BLOCK cleanup

In gcc/fortran/decl.cc:gfc_match_end, the fix stops freeing the current BLOCK
namespace during malformed END error recovery; it now lets normal block
unwinding/cleanup handle lifetime, preventing the heap-use-after-free.

Reply via email to