[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/30949] New: A potential bug of null pointer dereference
From: |
a860641231 at 163 dot com |
Subject: |
[Bug binutils/30949] New: A potential bug of null pointer dereference |
Date: |
Mon, 09 Oct 2023 01:16:18 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=30949
Bug ID: 30949
Summary: A potential bug of null pointer dereference
Product: binutils
Version: 2.42 (HEAD)
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: a860641231 at 163 dot com
Target Milestone: ---
Created attachment 15157
--> https://sourceware.org/bugzilla/attachment.cgi?id=15157&action=edit
contain image describing the source code of potentical npd
Hi, I found a potential null pointer dereference bug in the binutils project
source code of bfd, and I have shown the execution sequence of the program that
may generate the bug on the graph below. The red text illustrates the reason
that generate the bug, that is , variable isec receives the return value from
function bfd_section_from_elf_index(which may be null value) and is
dereferenced at line 12973 without checking isec is null or not.
In another call site(elf64-ppc.c), as in many others, variable sec receives the
return value from function bfd_section_from_elf_index ,and check sec is null or
not before deference of variable sec.
Although the code shown is for version 2.32 but this potential bug is still
exist in the current version.
would you can help to check if this bug is true? thank you for your effort and
patience!
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/30949] New: A potential bug of null pointer dereference,
a860641231 at 163 dot com <=