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

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

https://gcc.gnu.org/g:427fe143a43ba13497759e1482ce683deed9a00b

commit r8-10658-g427fe143a43ba13497759e1482ce683deed9a00b
Author: Richard Biener <rguent...@suse.de>
Date:   Thu Nov 26 10:07:06 2020 +0100

    testsuite/98002 - fix gcc.dg/strncmp-2.c

    This makes sure not to free() memory we have mprotected to PROT_NONE
    by calling mprotect again with PROT_READ|PROT_WRITE.  This avoids
    crashing the allocator when in debug mode.

    2020-11-16  Richard Biener  <rguent...@suse.de>

            PR testsuite/98002
            * gcc.dg/strncmp-2.c: Call mprotect again before free.

    (cherry picked from commit 5b3a8fad18324cd38c221bdb0ae2b690fc82ede0)

Reply via email to