This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PR gold/12640] [patch] Committed
- From: ppluzhnikov at google dot com (Paul Pluzhnikov)
- To: binutils at sourceware dot org
- Cc: ppluzhnikov at google dot com
- Date: Tue, 5 Apr 2011 12:24:52 -0700 (PDT)
- Subject: [PR gold/12640] [patch] Committed
Greetings,
I've committed attached patch under the trivial/obvious rule.
Thanks,
--
Paul Pluzhnikov
2011-04-05 Paul Pluzhnikov <ppluzhnikov@google.com>
PR gold/12640
* dwarf_reader.cc (Sized_dwarf_line_info): Fix vector bounds
violation.
Index: dwarf_reader.cc
===================================================================
RCS file: /cvs/src/src/gold/dwarf_reader.cc,v
retrieving revision 1.32
diff -u -p -r1.32 dwarf_reader.cc
--- dwarf_reader.cc 10 Mar 2011 01:31:32 -0000 1.32
+++ dwarf_reader.cc 5 Apr 2011 19:18:50 -0000
@@ -188,7 +188,7 @@ Sized_dwarf_line_info<size, big_endian>:
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++)
{