[Bug fortran/121628] Use-after-free in compiler-generated assignment operators
albert at tugraz dot at
gcc-bugzilla@gcc.gnu.org
Fri Oct 17 18:02:19 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121628
--- Comment #6 from Christopher Albert <albert at tugraz dot at> ---
(In reply to anlauf from comment #5)
> Created attachment 62363 [details]
> Slightly rewritten reproducer
>
> This slight rewrite might help pinning down where the memory corruption is
> happening.
>
Thank for the follow-up! I posted a patch to gcc-patches with a fix:
https://gcc.gnu.org/pipermail/gcc-patches/2025-October/697921.html
It involves both, compiler and runtime library changes, as this problem was too
hard to fix at the compilation stage alone. Happy if you could have a look and
tell me what you think.
More information about the Gcc-bugs
mailing list