commit | ebc55673708b4bbfd360ebc143ba3452ac0ec113 | [log] [tgz] |
---|---|---|
author | Snehasish Kumar <snehasishk@google.com> | Thu Dec 10 10:46:35 2020 -0800 |
committer | Joshua Peraza <jperaza@chromium.org> | Thu Dec 10 19:58:43 2020 +0000 |
tree | b61ef85f4799eedcdbaa4397b1c8f02c5c2d0f09 | |
parent | 78f7ae495bc147e97a58e8158072fd35fdd99419 [diff] |
Fix a typo in lineinfo unittest.cc When initializing the LineReader, the size passed should be the sizeof the dwarf4 line program. Change-Id: I67e6fa404d4fa8851e4958013a35a061fe169156 Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2585345 Reviewed-by: Sterling Augustine <saugustine@google.com>
diff --git a/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc b/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc index 99fc1a0..37df73a 100644 --- a/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc +++ b/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc
@@ -169,7 +169,7 @@ // dwarf4 line info headers don't encode the address size. byte_reader.SetAddressSize(8); LineInfo line_reader(dwarf4_line_program, - sizeof(dwarf5_line_program), + sizeof(dwarf4_line_program), &byte_reader, // dwarf4 line tables can't access the string sections // so pass values likely to make assertions fail if