[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/31146] New: potential Memory Leak
From: |
shiyuyuranzh at gmail dot com |
Subject: |
[Bug binutils/31146] New: potential Memory Leak |
Date: |
Tue, 12 Dec 2023 09:08:06 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31146
Bug ID: 31146
Summary: potential Memory Leak
Product: binutils
Version: 2.32
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: shiyuyuranzh at gmail dot com
Target Milestone: ---
Created attachment 15255
--> https://sourceware.org/bugzilla/attachment.cgi?id=15255&action=edit
Memory Leak in elfxx-x86.c
Hi, I found a memory leak bug in the source code of binutils, and I have shown
the execution sequence below. This bug exists in the file /bfd/elfxx-x86.c. The
red text illustrates the steps that generate the bug.
As shown in the diagram, in the function _bfd_x86_elf_link_hash_table_create, a
block of memory is allocated for the variable ret->loc_hash_memory. However, if
ret->loc_hash_table fails to be created, it will result in returning NULL,
potentially causing a memory leak vulnerability.
Although reported bug trace is for version 2.32 but i've check this bug still
existing in latest version.
can you help to check if this bug is true? thanks for your effort.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/31146] New: potential Memory Leak,
shiyuyuranzh at gmail dot com <=