[all-commits] [llvm/llvm-project] 8bef13: [hwasan] Fix a possible null dereference problem (...

Wu Yingcong via All-commits all-commits at lists.llvm.org
Sun Jan 21 21:42:50 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8bef13ef4f59bae481583913a39e5369730effa7
      https://github.com/llvm/llvm-project/commit/8bef13ef4f59bae481583913a39e5369730effa7
  Author: Wu Yingcong <yingcong.wu at intel.com>
  Date:   2024-01-21 (Sun, 21 Jan 2024)

  Changed paths:
    M compiler-rt/lib/hwasan/hwasan_report.cpp

  Log Message:
  -----------
  [hwasan] Fix a possible null dereference problem (#77737)

This is clearly a copy-paste mistake, fix it with this patch.
After checking the `local.function_name` is not null, it should check
the len for `local.function_name`, not `local.name`. And this could lead
to possible null dereference since the second
`internal_strlen(local.name)` does not guarantee `local.name` is not
null.




More information about the All-commits mailing list