Imported Upstream version 6.10.0.49

Former-commit-id: 1d6753294b2993e1fbf92de9366bb9544db4189b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2020-01-16 16:38:04 +00:00
parent d94e79959b
commit 468663ddbb
48518 changed files with 2789335 additions and 61176 deletions

View File

@@ -0,0 +1,20 @@
// RUN: %clang_esan_frag -O0 %s -o %t 2>&1
// RUN: %env_esan_opts=verbosity=3 %run %t 2>&1 | FileCheck %s
#include <string.h>
int main(int argc, char **argv) {
char Buf[2048];
const char Str[] = "TestStringOfParticularLength"; // 29 chars.
strcpy(Buf, Str);
strncpy(Buf, Str, 17);
return strncmp(Buf, Str, 17);
// CHECK: in esan::initializeLibrary
// CHECK: in esan::processRangeAccess {{.*}} 29
// CHECK: in esan::processRangeAccess {{.*}} 29
// CHECK: in esan::processRangeAccess {{.*}} 17
// CHECK: in esan::processRangeAccess {{.*}} 17
// CHECK: in esan::processRangeAccess {{.*}} 17
// CHECK: in esan::processRangeAccess {{.*}} 17
// CHECK: in esan::finalizeLibrary
}