[all-commits] [llvm/llvm-project] 3d1172: [sanitizer_common] Fix potential null dereference ...

Thurston Dang via All-commits all-commits at lists.llvm.org
Wed Dec 6 12:12:02 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d1172813fc640514c6cb421394c34f4b42cb634
      https://github.com/llvm/llvm-project/commit/3d1172813fc640514c6cb421394c34f4b42cb634
  Author: Thurston Dang <thurston.dang at gmail.com>
  Date:   2023-12-06 (Wed, 06 Dec 2023)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc

  Log Message:
  -----------
  [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: Thurston Dang <thurston at google.com>




More information about the All-commits mailing list