[all-commits] [llvm/llvm-project] 8a8c2b: sanitizer_common: add test that calls wcslen

Thurston Dang via All-commits all-commits at lists.llvm.org
Wed May 24 12:37:31 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8a8c2b2ea54bd0ab13a0b9cde32109542836a46b
      https://github.com/llvm/llvm-project/commit/8a8c2b2ea54bd0ab13a0b9cde32109542836a46b
  Author: Thurston Dang <thurston at google.com>
  Date:   2023-05-24 (Wed, 24 May 2023)

  Changed paths:
    A compiler-rt/test/sanitizer_common/TestCases/wcslen_test.c

  Log Message:
  -----------
  sanitizer_common: add test that calls wcslen

This is a very simple test that calls wsclen. There are currently no other HWASan tests that call wsclen, which is why the wcslen interceptor issue (triggered by https://reviews.llvm.org/D150708 and fixed in https://reviews.llvm.org/D150909) was only detected by stage2/hwasan check on the buildbots. With this test, the issue would have been caught by stage1 check-sanitizer, with a more obvious diagnosis.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list