summaryrefslogtreecommitdiff
path: root/src/thread/i386/__set_thread_area.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-06-27 15:32:09 -0400
committerRich Felker <dalias@aerifal.cx>2018-06-27 15:57:57 -0400
commit8b8fb7f03721c42445f982582f462144ab60a1a0 (patch)
tree19bf337a9afdb1f2b6199c908a9b214ea54caf70 /src/thread/i386/__set_thread_area.s
parente829695fcc880f8578c2b964ea2d090f0016c9d7 (diff)
downloadmusl-8b8fb7f03721c42445f982582f462144ab60a1a0.tar.gz
correctly handle non-matching symbols in dladdr
based on patch by Axel Siebenborn, with fixes discussed on the mailing list after submission and and rebased around the UB fix in commit e829695fcc880f8578c2b964ea2d090f0016c9d7. avoid spurious symbol matches by dladdr beyond symbol size. for symbols with a size recorded, only match if the queried address lies within the address range determined by the symbol address and size. for symbols with no size recorded, the old closest-match behavior is kept, as long as there is no intervening symbol with a recorded size. the case where no symbol is matched, but the address does lie within the memory range of a shared object, is specified as success. fix the return value and produce a valid (with null dli_sname and dli_saddr) Dl_info structure.
Diffstat (limited to 'src/thread/i386/__set_thread_area.s')
0 files changed, 0 insertions, 0 deletions