debugedit: Fix edit_dwarf2_line replace_dirs -> replace_files typo.
We wouldn't replace the changed file names if replace_dirs was false, but replace_files was true. This could overrun the new debug_line data buffer if the original file name was larger than the replacement. It wasn't found before because often when we need to replace files we also would have to replace dirs. This fixes the kubernetes build in fedora. Signed-off-by: Mark Wielaard <mark@klomp.org>
This commit is contained in:
parent
2da619aa8e
commit
03f489af5c
@ -1185,7 +1185,7 @@ edit_dwarf2_line (DSO *dso)
|
||||
{
|
||||
const char *file = (const char *) optr;
|
||||
const char *file_path = NULL;
|
||||
if (t->replace_dirs)
|
||||
if (t->replace_files)
|
||||
{
|
||||
file_path = skip_dir_prefix (file, base_dir);
|
||||
if (file_path != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user