From ef77750ef779ac887423f84bcc11a8de4dd0fe79 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 1 Dec 2014 09:11:57 -0800 Subject: [PATCH] Properly check for an out of range row index * dwarf.c (process_cu_tu_index): Properly check for an out of range row index. --- binutils/ChangeLog | 5 +++++ binutils/dwarf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 597e52a28ee..e11c04619e7 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2014-12-01 H.J. Lu + + * dwarf.c (process_cu_tu_index): Properly check for an out of + range row index. + 2014-12-01 Nick Clifton PR binutils/17512 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index d744929c02d..7cfc45f3f12 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); -- 2.30.2