Re: [PATCH] Fix REE from using freed memory (PR bootstrap/52041)

2012-01-31 Thread Eric Botcazou
> 2012-01-31 Jakub Jelinek > > PR bootstrap/52041 > PR bootstrap/52039 > PR target/51974 > * ree.c (add_removable_extension): Change def_map argument > to unsigned *, store in def_map 1 + offset into *insn_list vector > instead of pointers into the vector. >

[PATCH] Fix REE from using freed memory (PR bootstrap/52041)

2012-01-31 Thread Jakub Jelinek
Hi! find_removable_extensions/add_removable_extensions was storing pointers into the *insn_list vector in def_map array. Unfortunately when the vector is reallocated, this may result in all the pointers pointing into freed memory. Detected by valgrind, fixed by instead just storing the vector in