Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b20ade36
Commit
b20ade36
authored
12 years ago
by
Ian Lance Taylor
Committed by
Ian Lance Taylor
12 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dwarf.c (read_attribute): Always clear val.
From-SVN: r193670
parent
03367cbb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
libbacktrace/ChangeLog
+4
-0
libbacktrace/dwarf.c
+6
-0
No files found.
libbacktrace/ChangeLog
View file @
b20ade36
2012-11-20 Ian Lance Taylor <iant@google.com>
* dwarf.c (read_attribute): Always clear val.
2012-11-13 Ian Lance Taylor <iant@google.com>
PR other/55312
...
...
This diff is collapsed.
Click to expand it.
libbacktrace/dwarf.c
View file @
b20ade36
...
...
@@ -654,6 +654,12 @@ read_attribute (enum dwarf_form form, struct dwarf_buf *buf,
const
unsigned
char
*
dwarf_str
,
size_t
dwarf_str_size
,
struct
attr_val
*
val
)
{
/* Avoid warnings about val.u.FIELD may be used uninitialized if
this function is inlined. The warnings aren't valid but can
occur because the different fields are set and used
conditionally. */
memset
(
val
,
0
,
sizeof
*
val
);
switch
(
form
)
{
case
DW_FORM_addr
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment