statinf-otawa / obviews

Obviews, viewer for OTAWA
0 stars 1 forks source link

Loading CFG function does not finish when binary is compiled in a different machine or folder #20

Closed SlimBenAmor closed 8 months ago

SlimBenAmor commented 8 months ago

If the source file path retrieve from the debug information in the binary file is a an absolute path, the find_actual_path function will return a boolean instead o a string (path) or None. And if its return value is different than None (see this lines) it will try to open it as file and read its content (here) which will take forever.

This should be fixed by returning the correct absolute path if it exists or None otherwise.