[PATCH] D54150: Adapt UBSan integer truncation tests to NetBSD

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 6 06:02:36 PST 2018


krytarowski created this revision.
krytarowski added reviewers: lebedev.ri, vitalybuka, joerg.
krytarowski added a project: Sanitizers.
Herald added subscribers: llvm-commits, dmgreen, kubamracek.

The NetBSD headers use internal indirect type for
standard *int*_t  definitions. The internal type is unrolled
inside the sanitizer into e.g. __int32_t from int32_t.

This symbol mangling causes pattern mismatch in
the interger truncation tests as they expect exact
types such as 'int32_t'.

Change the pattern rules so every acceptable internal
form of *int*_t will be accepted flawlessly.


Repository:
  rL LLVM

https://reviews.llvm.org/D54150

Files:
  test/ubsan/TestCases/ImplicitConversion/integer-arithmetic-value-change.c
  test/ubsan/TestCases/ImplicitConversion/integer-conversion.c
  test/ubsan/TestCases/ImplicitConversion/integer-sign-change-blacklist.c
  test/ubsan/TestCases/ImplicitConversion/integer-sign-change.c
  test/ubsan/TestCases/ImplicitConversion/integer-truncation.c
  test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation-blacklist.c
  test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation-or-sign-change-blacklist.c
  test/ubsan/TestCases/ImplicitConversion/signed-integer-truncation.c
  test/ubsan/TestCases/ImplicitConversion/unsigned-integer-truncation-blacklist.c
  test/ubsan/TestCases/ImplicitConversion/unsigned-integer-truncation.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54150.172746.patch
Type: text/x-patch
Size: 131935 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181106/9008b3f7/attachment-0001.bin>


More information about the llvm-commits mailing list