SUSE / libpulp

libpulp enables live patching in user space applications.
GNU Lesser General Public License v2.1
55 stars 11 forks source link

`dl_find_base_addr` fails to load base addr if target library is the application itself. #113

Closed giulianobelinassi closed 2 years ago

giulianobelinassi commented 2 years ago

If the target library is the application itself, the load bias should be 0. Instead, this function is returning the value of the last addr it found. Fix this by correctly finding the right library.