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

--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:1374d4b963a6ac2e0ec1645c09e5162e68b009d6

commit r12-6640-g1374d4b963a6ac2e0ec1645c09e5162e68b009d6
Author: Richard Biener <rguent...@suse.de>
Date:   Mon Jan 17 15:22:11 2022 +0100

    middle-end/101292 - invalid memory access with warning control

    The warning control falls into the C++ trap of using a reference
    to old hashtable contents for a put operation which can end up
    re-allocating that before reading from the old freed referenced to
    source.  Fixed by introducing a temporary.

    2022-01-17  Richard Biener  <rguent...@suse.de>

            PR middle-end/101292
            * diagnostic-spec.c (copy_warning): Make sure to not
            reference old hashtable content on possible resize.
            * warning-control.cc (copy_warning): Likewise.

Reply via email to