summaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-01 09:11:57 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-01 09:12:37 -0800
commitef77750ef779ac887423f84bcc11a8de4dd0fe79 (patch)
tree50d3b6deb017f910ea1cd47455d2ddd4716dc042 /binutils
parent06614111d1be94b43ea8dd83805184d4e177bcea (diff)
Properly check for an out of range row index
* dwarf.c (process_cu_tu_index): Properly check for an out of range row index.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 597e52a28e..e11c04619e 100644
--- 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 d744929c02..7cfc45f3f1 100644
--- 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);