Skip to content
Unverified Commit 3d117281 authored by Thurston Dang's avatar Thurston Dang Committed by GitHub
Browse files

[sanitizer_common] Fix potential null dereference in dlopen interceptor (#74645)

The test_only_replace_dlopen_main_program flag
(introduced in
https://github.com/llvm/llvm-project/commit/0be4c6b9483594494051e8f1f67afc2b516270ca

)
will cause internal_strcmp to dereference NULL if DlAddrSelfFName()
returns NULL (which happens in very rare cases). This patch adds a
null pointer check.

Co-authored-by: default avatarThurston Dang <thurston@google.com>
parent cd83180c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment