]> CyberLeo.Net >> Repos - FreeBSD/releng/9.1.git/commit
MFC r239470: Do not call process_nodelete with NULL object pointer.
authorkan <kan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 21 Aug 2012 22:42:46 +0000 (22:42 +0000)
committerkan <kan@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 21 Aug 2012 22:42:46 +0000 (22:42 +0000)
commit8ab4d8edad246af2914519ca7545e92b96a27904
treea1b8ff155d7713129f40702c88a3ee8d3d8b149d
parentd1e18d82f779d89c383cb5abc40058b6cecc418c
MFC r239470: Do not call process_nodelete with NULL object pointer.

The place where the function is called can be reached if object loading
and relocation fails too, in which case obj pointer will be NULL. Do not
call process_nodelete then, or crash will follow.

Pointy hat to: kan
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/releng/9.1@239546 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libexec/rtld-elf/rtld.c