* [PR gold/12640] [patch] Committed
@ 2011-04-05 19:25 Paul Pluzhnikov
0 siblings, 0 replies; only message in thread
From: Paul Pluzhnikov @ 2011-04-05 19:25 UTC (permalink / raw)
To: binutils; +Cc: ppluzhnikov
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++)
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-05 19:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-05 19:25 [PR gold/12640] [patch] Committed Paul Pluzhnikov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).