[Top][All Lists]

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

[Bug binutils/25363] New: memory leak in nm, display_rel_file

From: featherrain26 at gmail dot com
Subject: [Bug binutils/25363] New: memory leak in nm, display_rel_file
Date: Fri, 10 Jan 2020 14:38:02 +0000


            Bug ID: 25363
           Summary: memory leak in nm, display_rel_file
           Product: binutils
           Version: 2.32
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: featherrain26 at gmail dot com
  Target Milestone: ---

Created attachment 12184
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12184&action=edit
POC file

Hi, there.

There is a memory leak in file binutils/nm.c, get_data function.

Here is the reproducing environment and procedure:

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.6 LTS
Release:        16.04
Codename:       xenial
gcc:            5.4.0

CFLAGS="-fsanitize=address,undefined" ./configure

./nm-new -C -a -l --synthetic poc

Here is the error message:

==66785==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 64 byte(s) in 1 object(s) allocated from:
    #0 0x7ffff6f02602 in malloc
    #1 0x7fbefb in xmalloc
    #2 0x409f2e in display_rel_file
    #3 0x40b1df in display_file
    #4 0x40db2a in main
    #5 0x7ffff5baf82f in __libc_start_main

SUMMARY: AddressSanitizer: 64 byte(s) leaked in 1 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]