libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] Bug in tdep_get_elf_image() ?


From: Noam Lewis
Subject: [Libunwind-devel] Bug in tdep_get_elf_image() ?
Date: Mon, 11 Jul 2016 01:50:23 +0300

I've noticed that sometimes 'open()' is called with the empty string as a path (""), as a result of the following code in tdep_get_elf_image():

  if (path)
    {
      strncpy(path, mi.path, pathlen);
    }
  rc = elf_map_image (ei, mi.path);


Can it be changed to only call elf_map_image if mi.path is non-empty?

Thanks!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]