From: Paul Pluzhnikov Date: Tue, 5 Apr 2011 19:19:42 +0000 (+0000) Subject: 2011-04-05 Paul Pluzhnikov X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a869183fab276723f2f7eb55af604e106007285f;p=binutils-gdb.git 2011-04-05 Paul Pluzhnikov PR gold/12640 * dwarf_reader.cc (Sized_dwarf_line_info): Fix vector bounds violation. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 9c57a1baa16..ec595089a84 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,4 +1,10 @@ -2011-03-30 Cary Coutant +2011-04-05 Paul Pluzhnikov + + PR gold/12640 + * dwarf_reader.cc (Sized_dwarf_line_info): Fix vector bounds + violation. + +2011-03-30 Cary Coutant * archive.cc (Archive::include_member): Adjust call to report_object. (Add_archive_symbols::run): Add script_info to call to @@ -44,7 +50,7 @@ (script_add_library): Likewise. * script.h (Script_options::Script_info): Rewrite class. -2011-03-29 Cary Coutant +2011-03-29 Cary Coutant * archive.cc (Library_base::should_include_member): Move method here from class Archive. diff --git a/gold/dwarf_reader.cc b/gold/dwarf_reader.cc index e8fe04e792f..3dc33e4e106 100644 --- a/gold/dwarf_reader.cc +++ b/gold/dwarf_reader.cc @@ -188,7 +188,7 @@ Sized_dwarf_line_info::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++) {