From ebc55673708b4bbfd360ebc143ba3452ac0ec113 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Thu, 10 Dec 2020 10:46:35 -0800 Subject: [PATCH] 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 --- src/common/dwarf/dwarf2reader_lineinfo_unittest.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc b/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc index 99fc1a07..37df73a1 100644 --- a/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc +++ b/src/common/dwarf/dwarf2reader_lineinfo_unittest.cc @@ -169,7 +169,7 @@ TEST_F(LineProgram, ReadLinesDwarf4) { // 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