This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sanitizer/81715] asan-stack=1 redzone allocation is too inflexible


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

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 27 20:33:35 2017
New Revision: 254179

URL: https://gcc.gnu.org/viewcvs?rev=254179&root=gcc&view=rev
Log:
        Backported from mainline
        2017-09-21  Jakub Jelinek  <jakub@redhat.com>

        PR sanitizer/81715
        * tree-inline.c (expand_call_inline): Emit clobber stmts for
        VAR_DECLs to which addressable non-volatile parameters are mapped
        and for id->retvar after the return value assignment, though
        for -fsanitize=kernel-address only.  Clear id->retval and id->retbnd
        after inlining.

        * g++.dg/asan/pr81715.C: New test.

Added:
    branches/gcc-7-branch/gcc/testsuite/g++.dg/asan/pr81715.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/tree-inline.c

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]