[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/24460] New: bfd/elf32-arm.c: get_value_helper, uninitializ
From: |
pexu at sourceware dot mail.kapsi.fi |
Subject: |
[Bug binutils/24460] New: bfd/elf32-arm.c: get_value_helper, uninitialized value used |
Date: |
Wed, 17 Apr 2019 10:47:58 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=24460
Bug ID: 24460
Summary: bfd/elf32-arm.c: get_value_helper, uninitialized value
used
Product: binutils
Version: 2.33 (HEAD)
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: pexu at sourceware dot mail.kapsi.fi
Target Milestone: ---
Hello.
get_value_helper() doesn't initialize branch_type, its address will be passed
to arm_type_of_stub(), which in turn dereferences and tries to use it:
(Note: Actually, the value is dereferenced on line 4203.)
bfd/elf32-arm.c: In function 'get_value_helper':
bfd/elf32-arm.c:4209:6: error: 'branch_type' is used uninitialized in this
function [-Werror=uninitialized]
if (branch_type == ST_BRANCH_LONG)
^
bfd/elf32-arm.c:10312:27: note: 'branch_type' was declared here
enum arm_st_branch_type branch_type;
^~~~~~~~~~~
This is related to recent ARMv8.1-M patches a couple of days ago. Did not
check further if there are other similar problems like this.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/24460] New: bfd/elf32-arm.c: get_value_helper, uninitialized value used,
pexu at sourceware dot mail.kapsi.fi <=