Skip to content
Snippets Groups Projects
Commit 243c2883 authored by Marek Polacek's avatar Marek Polacek Committed by Marek Polacek
Browse files

re PR sanitizer/80797 (-fsanitize=null doesn't instrument &s->x)

	PR sanitizer/80797
	* ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
	(pass_ubsan::execute): Call gimple_assign_single_p instead of
	gimple_assign_load_p.

	* c-c++-common/ubsan/null-12.c: New test.

From-SVN: r248179
parent a7ab6638
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment