diff options
author | Rich Felker <dalias@aerifal.cx> | 2013-07-31 14:42:08 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2013-07-31 14:42:08 -0400 |
commit | 339516addbde87760f3c0f175a4abcf5d629df54 (patch) | |
tree | d367924554efd34bb36581dc047d53190a14a358 /src/network/if_nametoindex.c | |
parent | c4f49a6a726fcd07bb15198ac4556100320934a9 (diff) | |
download | musl-339516addbde87760f3c0f175a4abcf5d629df54.tar.gz |
add some sanity checks in dynamic loader code
reject elf files which are not ET_EXEC/ET_DYN type as bad exec format,
and reject ET_EXEC files when they cannot be loaded at the correct
address, since they are not relocatable at runtime. the main practical
benefit of this is to make dlopen of the main program fail rather than
producing an unsafe-to-use handle.
Diffstat (limited to 'src/network/if_nametoindex.c')
0 files changed, 0 insertions, 0 deletions