projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9301e7
)
Add a check for a NULL table pointer before attempting to compute a DWARF filename.
author
Nick Clifton
<nickc@redhat.com>
Tue, 17 Apr 2018 13:30:07 +0000
(14:30 +0100)
committer
Nick Clifton
<nickc@redhat.com>
Tue, 17 Apr 2018 13:30:07 +0000
(14:30 +0100)
PR 23065
* dwarf2.c (concat_filename): Check for a NULL table pointer.
bfd/ChangeLog
patch
|
blob
|
history
bfd/dwarf2.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 3ea3933fa50210ae171cb3b60091374cfb127b7d..eb283d61e397fe04329db328914281a44cbe781f 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,8
@@
+2018-04-17 Nick Clifton <nickc@redhat.com>
+
+ PR 23065
+ * dwarf2.c (concat_filename): Check for a NULL table pointer.
+
2018-04-16 Nick Clifton <nickc@redhat.com>
PR 23061
diff --git
a/bfd/dwarf2.c
b/bfd/dwarf2.c
index ca22db766c54a0ee8c35199b5110b03d9f7524d8..0f8257f6015e5eb07b114d26d7a6a74b66d57d8f 100644
(file)
--- a/
bfd/dwarf2.c
+++ b/
bfd/dwarf2.c
@@
-1566,7
+1566,7
@@
concat_filename (struct line_info_table *table, unsigned int file)
{
char *filename;
- if (file - 1 >= table->num_files)
+ if (
table == NULL ||
file - 1 >= table->num_files)
{
/* FILE == 0 means unknown. */
if (file)