aboutsummaryrefslogtreecommitdiff
path: root/gold/dwarf_reader.cc
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2011-04-05 19:19:42 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2011-04-05 19:19:42 +0000
commita869183fab276723f2f7eb55af604e106007285f (patch)
tree364606bf55202b2446f11f61d33db2885ab7ccc9 /gold/dwarf_reader.cc
parent05a022685f878136be43a4505ef2db3d3cc5c02c (diff)
downloadgdb-a869183fab276723f2f7eb55af604e106007285f.zip
gdb-a869183fab276723f2f7eb55af604e106007285f.tar.gz
gdb-a869183fab276723f2f7eb55af604e106007285f.tar.bz2
2011-04-05 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gold/12640 * dwarf_reader.cc (Sized_dwarf_line_info): Fix vector bounds violation.
Diffstat (limited to 'gold/dwarf_reader.cc')
-rw-r--r--gold/dwarf_reader.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/dwarf_reader.cc b/gold/dwarf_reader.cc
index e8fe04e..3dc33e4 100644
--- a/gold/dwarf_reader.cc
+++ b/gold/dwarf_reader.cc
@@ -188,7 +188,7 @@ Sized_dwarf_line_info<size, big_endian>::read_header_prolog(
header_.opcode_base = *lineptr;
lineptr += 1;
- header_.std_opcode_lengths.reserve(header_.opcode_base + 1);
+ header_.std_opcode_lengths.resize(header_.opcode_base + 1);
header_.std_opcode_lengths[0] = 0;
for (int i = 1; i < header_.opcode_base; i++)
{