[all-commits] [llvm/llvm-project] e1041e: [sanitizer] move a pointer dereference after its n...

Wu Yingcong via All-commits all-commits at lists.llvm.org
Wed Apr 26 18:59:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e1041ed5761c03bde830a2932c719901d43a8d7e
      https://github.com/llvm/llvm-project/commit/e1041ed5761c03bde830a2932c719901d43a8d7e
  Author: Wu, Yingcong <yingcong.wu at intel.com>
  Date:   2023-04-26 (Wed, 26 Apr 2023)

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

  Log Message:
  -----------
  [sanitizer] move a pointer dereference after its null check

The dereference of pointer `ctx` is not protected by its null check, this could be problematic.

Reviewed By: vitalybuka, MaskRay

Differential Revision: https://reviews.llvm.org/D149011




More information about the All-commits mailing list