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>
This commit is contained in:
Snehasish Kumar 2020-12-10 10:46:35 -08:00 committed by Joshua Peraza
parent 78f7ae495b
commit ebc5567370

View file

@ -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