debugedit: Make sure .debug_line old/new idx start equal.

Found by running the debugedit tests under valgrind.
If the old and new .debug_line offset isn't changed then we might
write out an uninitialized new_idx.
This commit is contained in:
Mark Wielaard 2019-06-17 11:23:26 +02:00 committed by Panu Matilainen
parent 201a71ce18
commit 00a0afd5e0
1 changed files with 1 additions and 0 deletions

View File

@ -1177,6 +1177,7 @@ get_line_table (DSO *dso, size_t off, struct line_table **table)
*table = NULL;
t->old_idx = off;
t->new_idx = off;
t->size_diff = 0;
t->replace_dirs = false;
t->replace_files = false;