Matt Morehouse
23bab1eb43
[DFSan] Add strpbrk wrapper.
...
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D87849
2020-09-18 08:54:14 -07:00
Matt Morehouse
50dd545b00
[DFSan] Add bcmp wrapper.
...
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D87801
2020-09-17 09:23:49 -07:00
Matt Morehouse
df017fd906
Revert "[DFSan] Add bcmp wrapper."
...
This reverts commit 559f919812
due to bot
failure.
2020-09-17 08:43:45 -07:00
Matt Morehouse
559f919812
[DFSan] Add bcmp wrapper.
...
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D87801
2020-09-17 08:23:09 -07:00
Matt Morehouse
c1f9c1c13c
[DFSan] Fix parameters to strtoull wrapper.
...
base and nptr_label were swapped, which meant we were passing nptr's
shadow as the base to the operation. Usually, the shadow is 0, which
causes strtoull to guess the correct base from the string prefix (e.g.,
0x means base-16 and 0 means base-8), hiding this bug. Adjust the test
case to expose the bug.
Reviewed By: vitalybuka
Differential Revision: https://reviews.llvm.org/D85935
2020-08-14 08:02:30 -07:00
Sam Kerner
e5ce95c660
[dfsan] Fix a bug in strcasecmp() and strncasecmp(): Compare the lowercase versions of the characters when choosing a return value.
...
Summary:
Resolves this bug:
https://bugs.llvm.org/show_bug.cgi?id=38369
Reviewers: morehouse, pcc
Reviewed By: morehouse
Subscribers: #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D78490
2020-04-20 17:13:40 -07:00
Sam Kerner
10070e31a5
Fix DataFlowSanitizer implementation of strchr() so that strchr(..., '\0') returns a pointer to '\0'.
...
Summary:
Fixes https://bugs.llvm.org/show_bug.cgi?id=22392
Reviewers: pcc, morehouse
Reviewed By: morehouse
Subscribers: morehouse, #sanitizers
Tags: #sanitizers
Differential Revision: https://reviews.llvm.org/D77996
2020-04-15 13:08:47 -07:00
Vitaly Buka
d2af368aee
[compiler-rt] Remove some cpplint filters
...
llvm-svn: 371704
2019-09-12 02:20:36 +00:00
Nico Weber
a9aa813792
compiler-rt: Rename .cc file in lib/{dfsan,stats,ubsan_minimal} to .cpp
...
Like r367463, but for dfsan, stats, ubsan_minimal.
llvm-svn: 367551
2019-08-01 12:41:23 +00:00