Re: [PATCH, middle-end]: Fix PR53136, Use after free in cgraph dumps

2012-04-30 Thread Jan Hubicka
> Hello! > > There is a problem with multiple calls of cgraph_node_name in fprintf > dumps. Please note that C++ uses caching in > cxx_printable_name_internal (aka LANG_HOOKS_DECL_PRINTABLE_NAME), so > when cxx_printable_name_internal is called multiple times from printf > (i.e. fprintf "%s/%i ->

[PATCH, middle-end]: Fix PR53136, Use after free in cgraph dumps

2012-04-30 Thread Uros Bizjak
Hello! There is a problem with multiple calls of cgraph_node_name in fprintf dumps. Please note that C++ uses caching in cxx_printable_name_internal (aka LANG_HOOKS_DECL_PRINTABLE_NAME), so when cxx_printable_name_internal is called multiple times from printf (i.e. fprintf "%s/%i -> %s/%i"), it ca