Re: [asan] Instrument STRING_CSTs

2012-12-10 Thread Dodji Seketeli
Jakub Jelinek writes: > 2012-12-05 Jakub Jelinek > > * asan.c (asan_init_shadow_ptr_types): Move earlier in the file. > Call initialize_sanitizer_builtins at the end. > (asan_pp_string): Use TREE_TYPE (shadow_ptr_types[0]) > as character type instead of char_type_node.

[asan] Instrument STRING_CSTs

2012-12-05 Thread Jakub Jelinek
Hi! Here is instrumentation of STRING_CSTs. Using TREE_TYPE (shadow_ptr_types[0]) instead of plain char_type_node is a hack to avoid instrumenting the asan_pp_string created STRING_CSTs that describe the protected automatic vars in functions and protected global vars, no need to waste space for t