Created attachment 15250 [details] picture showing the potential bug hi, i found a potential memory leak located in binutils/wrstabs.c, function write_stabs_in_sections_debugging_info step1: call xmalloc to allocate memory and store it in local variable "info" steo2: there are several paths can leak the memory, for example, if the expression in if-statement "if (! stab_write_symbol (&info, 0, 0, 0, (const char *) NULL))" is true, then return False, and memory leaked. i post a picture as an attachment to show the potential bug. can you help to check whether this bug is true? thank you very much
Already fixed. 2.32 is old. You should look at current source if you want to help improve binutils. git clone https://sourceware.org/git/binutils-gdb.git
(In reply to Alan Modra from comment #1) > Already fixed. 2.32 is old. You should look at current source if you want > to help improve binutils. git clone > https://sourceware.org/git/binutils-gdb.git thanks for your reply. 2.32 is old but i've check this bug still existing in current version. and there are several system still use 2.32 as there default version.for example, ubuntu 18.04.
thanks for your reply. 2.32 is old but i've check this bug still existing in current version. and there are several system still use 2.32 as there default version.for example, ubuntu 18.04.