On Tue, Oct 16, 2012 at 09:48:28AM -0700, Xinliang David Li wrote: > The way to do this is not to use the shadow memory, but to clobber > directly the variable itself with specified byte pattern -- though > error diagnostics won't be as nice.
Clobbering the memory directly is definitely easy, but doesn't have anything to do how shadow memory poisioning is done for stack vars. Guess should be done depending on some special option, not unconditionally implied by -fasan though. Jakub