bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/26388] New: A memory leak in xmalloc and xrealloc


From: 15664243668 at 163 dot com
Subject: [Bug binutils/26388] New: A memory leak in xmalloc and xrealloc
Date: Fri, 14 Aug 2020 08:54:52 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26388

            Bug ID: 26388
           Summary: A memory leak in xmalloc and xrealloc
           Product: binutils
           Version: 2.35
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: 15664243668 at 163 dot com
  Target Milestone: ---

Created attachment 12771
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12771&action=edit
PoC

I have found a memory leak in xmalloc and xrealloc of Binutils-2.35. This bug
is triggered as
$./objdump –dwarf-check -C -g -f -dwarf -x PoC
I compile the binutils-2.35 to the 64-bit LSB version with AddressSanitizer in
Ubuntu 16.04 and print the debug information.
...

=================================================================
==4710==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 8192 byte(s) in 1 object(s) allocated from:
    #0 0x7f665e4de602 in malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0xb36457 in xrealloc ../../libiberty/xmalloc.c:177

Direct leak of 96 byte(s) in 1 object(s) allocated from:
    #0 0x7f665e4de602 in malloc
(/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98602)
    #1 0xb362dc in xmalloc ../../libiberty/xmalloc.c:147

SUMMARY: AddressSanitizer: 8288 byte(s) leaked in 2 allocation(s).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]