Re: opts.c, gcc.c: Plug some memory leaks - and an out-of-bounds memory access

2012-10-04 Thread Richard Guenther
On Wed, Oct 3, 2012 at 11:01 PM, Tobias Burnus wrote: > Found using http://scan5.coverity.com/ > > Build on x86-64-gnu-linux with C/C++/Fortran. I will now do an all-language > build/regtest. > OK when it passes? > > (Note to the save_string call: I reduced it by 2: The "+1" in the call makes > it

opts.c, gcc.c: Plug some memory leaks - and an out-of-bounds memory access

2012-10-03 Thread Tobias Burnus
Found using http://scan5.coverity.com/ Build on x86-64-gnu-linux with C/C++/Fortran. I will now do an all-language build/regtest. OK when it passes? (Note to the save_string call: I reduced it by 2: The "+1" in the call makes it long (out of bounds) and the "+1" in temp_filename_length is no