mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-27 11:55:06 +00:00
7fd852f860
time ago, but for some reason it was not. Basically, without this change dlopen(3)'ing an empty .so file would just cause application to dump core with SIGSEGV. Make sure the file has enough data for at least the ELF header before mmap'ing it. Add a test case to check that dlopen an empty file return an error. There were a separate discussion as to whether it should be SIGBUS instead when you try to access region mapped from an empty file, but it's definitely SIGSEGV now, so if anyone want to check that please be my guest. Reviewed by: mjg, cem MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D5112 |
||
---|---|---|
.. | ||
execve | ||
posix_spawn | ||
arc4random_test.c | ||
dlopen_empty_test.c | ||
fmtcheck_test.c | ||
fmtmsg_test.c | ||
fnmatch_test.c | ||
fnmatch_testcases.h | ||
fpclassify2_test.c | ||
ftw_test.c | ||
Makefile | ||
popen_test.c | ||
posix_spawn_test.c | ||
test-fnmatch.c | ||
wordexp_test.c |