This is the mail archive of the gcc-patches@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]

Re: [PATCH] Do not instrument use-after-scope for vars with large alignment (PR sanitizer/82517).


On Thu, Oct 19, 2017 at 09:21:47AM +0200, Martin Liška wrote:
> Hi.
> 
> As discussed with Jakub, use-after-scope sanitization should not be done for variables that have bigger
> alignment than MAX_SUPPORTED_STACK_ALIGNMENT. In this case, we can't put a variable to fixed stack slot.
> 
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
> 
> Ready to be installed?
> Martin
> 
> gcc/ChangeLog:
> 
> 2017-10-18  Martin Liska  <mliska@suse.cz>
> 
> 	PR sanitizer/82517
> 	* gimplify.c (gimplify_decl_expr): Do not instrument variables
> 	that have a large alignment.
> 	(gimplify_target_expr): Likewise.
> 
> gcc/testsuite/ChangeLog:
> 
> 2017-10-18  Martin Liska  <mliska@suse.cz>
> 
> 	PR sanitizer/82517
> 	* gcc.dg/asan/pr82517.c: New test.

Ok, thanks.

	Jakub


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