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:
0661411
)
Properly check for an out of range row index
author
H.J. Lu
<hjl.tools@gmail.com>
Mon, 1 Dec 2014 17:11:57 +0000
(09:11 -0800)
committer
H.J. Lu
<hjl.tools@gmail.com>
Mon, 1 Dec 2014 17:12:37 +0000
(09:12 -0800)
* dwarf.c (process_cu_tu_index): Properly check for an out of
range row index.
binutils/ChangeLog
patch
|
blob
|
history
binutils/dwarf.c
patch
|
blob
|
history
diff --git
a/binutils/ChangeLog
b/binutils/ChangeLog
index 597e52a28ee95ff16699e8c16b8bcd7b43f91d91..e11c04619e7a3d09426f1b5ed14dfcb9380ee79b 100644
(file)
--- a/
binutils/ChangeLog
+++ b/
binutils/ChangeLog
@@
-1,3
+1,8
@@
+2014-12-01 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dwarf.c (process_cu_tu_index): Properly check for an out of
+ range row index.
+
2014-12-01 Nick Clifton <nickc@redhat.com>
PR binutils/17512
diff --git
a/binutils/dwarf.c
b/binutils/dwarf.c
index d744929c02d79cb363b9261d62659434395b4b2a..7cfc45f3f1262d1f2a681085e2c9bb684fb9a177 100644
(file)
--- a/
binutils/dwarf.c
+++ b/
binutils/dwarf.c
@@
-6825,7
+6825,7
@@
process_cu_tu_index (struct dwarf_section *section, int do_display)
if (row != 0)
{
/* PR 17531: file: a05f6ab3. */
- if (row >
=
nused)
+ if (row > nused)
{
warn (_("Row index (%u) is larger than number of used entries (%u)\n"),
row, nused);