• Home
  • Raw
  • Download

Lines Matching refs:Ident

36     EXPECT_DEATH(Ident(strlen(str - 1)), LeftOOBReadMessage(1));  in StrLenOOBTestTemplate()
37 EXPECT_DEATH(Ident(strlen(str - 5)), LeftOOBReadMessage(5)); in StrLenOOBTestTemplate()
39 EXPECT_DEATH(Ident(strlen(str + length + 1)), RightOOBReadMessage(0)); in StrLenOOBTestTemplate()
43 EXPECT_DEATH(Ident(strlen(str)), RightOOBReadMessage(0)); in StrLenOOBTestTemplate()
44 EXPECT_DEATH(Ident(strlen(str + length)), RightOOBReadMessage(0)); in StrLenOOBTestTemplate()
50 size_t length = Ident(10); in TEST()
51 char *heap_string = Ident((char*)malloc(length + 1)); in TEST()
69 EXPECT_EQ(0U, wcslen(Ident(L""))); in TEST()
72 EXPECT_EQ(hello_len, wcslen(Ident(L"Hello, World!"))); in TEST()
73 wchar_t *heap_string = Ident((wchar_t*)malloc(hello_size)); in TEST()
75 EXPECT_EQ(hello_len, Ident(wcslen(heap_string))); in TEST()
76 EXPECT_DEATH(Ident(wcslen(heap_string + 14)), RightOOBReadMessage(0)); in TEST()
82 size_t size = Ident(123); in TEST()
85 Ident(strnlen(str - 1, 0)); in TEST()
86 Ident(strnlen(str, size)); in TEST()
87 Ident(strnlen(str + size - 1, 1)); in TEST()
89 Ident(strnlen(str, 2 * size)); in TEST()
91 EXPECT_DEATH(Ident(strnlen(str - 1, 1)), LeftOOBReadMessage(1)); in TEST()
92 EXPECT_DEATH(Ident(strnlen(str + size, 1)), RightOOBReadMessage(0)); in TEST()
95 EXPECT_DEATH(Ident(strnlen(str, size + 1)), RightOOBReadMessage(0)); in TEST()
101 size_t size = Ident(42); in TEST()
111 EXPECT_DEATH(Ident(strdup(str - 1)), LeftOOBReadMessage(1)); in TEST()
112 EXPECT_DEATH(Ident(strdup(str + size)), RightOOBReadMessage(0)); in TEST()
115 EXPECT_DEATH(Ident(strdup(str)), RightOOBReadMessage(0)); in TEST()
120 size_t to_size = Ident(30); in TEST()
121 size_t from_size = Ident(6); // less than to_size in TEST()
122 char *to = Ident((char*)malloc(to_size)); in TEST()
123 char *from = Ident((char*)malloc(from_size)); in TEST()
129 EXPECT_DEATH(Ident(strcpy(from, "hello2")), RightOOBWriteMessage(0)); in TEST()
131 EXPECT_DEATH(Ident(strcpy(to - 1, from)), LeftOOBWriteMessage(1)); in TEST()
132 EXPECT_DEATH(Ident(strcpy(to, from - 1)), LeftOOBReadMessage(1)); in TEST()
133 EXPECT_DEATH(Ident(strcpy(to, from + from_size)), RightOOBReadMessage(0)); in TEST()
134 EXPECT_DEATH(Ident(strcpy(to + to_size, from)), RightOOBWriteMessage(0)); in TEST()
137 EXPECT_DEATH(Ident(strcpy(to, from)), RightOOBReadMessage(0)); in TEST()
143 size_t to_size = Ident(20); in TEST()
144 size_t from_size = Ident(6); // less than to_size in TEST()
145 char *to = Ident((char*)malloc(to_size)); in TEST()
147 char *from = Ident((char*)malloc(from_size)); in TEST()
158 EXPECT_DEATH(Ident(strncpy(to, from - 1, from_size)), in TEST()
160 EXPECT_DEATH(Ident(strncpy(to - 1, from, from_size)), in TEST()
162 EXPECT_DEATH(Ident(strncpy(to, from + from_size, 1)), in TEST()
164 EXPECT_DEATH(Ident(strncpy(to + to_size, from, 1)), in TEST()
167 EXPECT_DEATH(Ident(strncpy(to + to_size - from_size + 1, from, from_size)), in TEST()
169 EXPECT_DEATH(Ident(strncpy(to + 1, from, to_size)), in TEST()
176 EXPECT_DEATH(Ident(strncpy(to, from, to_size)), in TEST()
190 size_t size = Ident(100); in RunStrChrTest()
198 EXPECT_DEATH(Ident(StrChr(str - 1, 'z')), LeftOOBReadMessage(1)); in RunStrChrTest()
199 EXPECT_DEATH(Ident(StrChr(str + size, 'z')), RightOOBReadMessage(0)); in RunStrChrTest()
202 EXPECT_DEATH(Ident(StrChr(str, 'a')), RightOOBReadMessage(0)); in RunStrChrTest()
206 size_t size = Ident(100); in RunStrChrTest()
214 EXPECT_DEATH(Ident(StrChr(str - 1, 'z')), LeftOOBReadMessage(1)); in RunStrChrTest()
215 EXPECT_DEATH(Ident(StrChr(str + size, 'z')), RightOOBReadMessage(0)); in RunStrChrTest()
218 EXPECT_DEATH(Ident(StrChr(str, 'a')), RightOOBReadMessage(0)); in RunStrChrTest()
283 size_t size = Ident(100); in RunStrCmpTest()
290 Ident(StrCmp(s1, s2)); in RunStrCmpTest()
291 Ident(StrCmp(s1, s2 + size - 1)); in RunStrCmpTest()
292 Ident(StrCmp(s1 + size - 1, s2 + size - 1)); in RunStrCmpTest()
294 EXPECT_DEATH(Ident(StrCmp)(s1 - 1, s2), LeftOOBReadMessage(1)); in RunStrCmpTest()
295 EXPECT_DEATH(Ident(StrCmp)(s1, s2 - 1), LeftOOBReadMessage(1)); in RunStrCmpTest()
296 EXPECT_DEATH(Ident(StrCmp)(s1 + size, s2), RightOOBReadMessage(0)); in RunStrCmpTest()
297 EXPECT_DEATH(Ident(StrCmp)(s1, s2 + size), RightOOBReadMessage(0)); in RunStrCmpTest()
300 EXPECT_DEATH(Ident(StrCmp)(s1, s1), RightOOBReadMessage(0)); in RunStrCmpTest()
301 EXPECT_DEATH(Ident(StrCmp)(s1 + size - 1, s2), RightOOBReadMessage(0)); in RunStrCmpTest()
318 size_t size = Ident(100); in RunStrNCmpTest()
324 Ident(StrNCmp(s1, s2, size + 2)); in RunStrNCmpTest()
327 Ident(StrNCmp(s1 + size - 2, s2 + size - 2, size)); in RunStrNCmpTest()
329 Ident(StrNCmp(s1 - 1, s2 - 1, 0)); in RunStrNCmpTest()
330 Ident(StrNCmp(s1 + size - 1, s2 + size - 1, 1)); in RunStrNCmpTest()
332 EXPECT_DEATH(Ident(StrNCmp)(s1 - 1, s2, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest()
333 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 - 1, 1), LeftOOBReadMessage(1)); in RunStrNCmpTest()
334 EXPECT_DEATH(Ident(StrNCmp)(s1 + size, s2, 1), RightOOBReadMessage(0)); in RunStrNCmpTest()
335 EXPECT_DEATH(Ident(StrNCmp)(s1, s2 + size, 1), RightOOBReadMessage(0)); in RunStrNCmpTest()
337 EXPECT_DEATH(Ident(StrNCmp)(s1 + 1, s2 + 1, size), RightOOBReadMessage(0)); in RunStrNCmpTest()
338 EXPECT_DEATH(Ident(StrNCmp)(s1 + size - 1, s2, 2), RightOOBReadMessage(0)); in RunStrNCmpTest()
355 size_t to_size = Ident(100); in TEST()
358 size_t from_size = Ident(20); in TEST()
390 size_t to_size = Ident(100); in TEST()
393 size_t from_size = Ident(20); in TEST()
429 size_t size = Ident(100); in TEST()
430 char *str = Ident((char*)malloc(size)); in TEST()
438 Ident(memcpy)(str + 1, str + 11, 10); in TEST()
439 Ident(memcpy)(str, str, 0); in TEST()
440 EXPECT_DEATH(Ident(memcpy)(str, str + 14, 15), OverlapErrorMessage("memcpy")); in TEST()
441 EXPECT_DEATH(Ident(memcpy)(str + 14, str, 15), OverlapErrorMessage("memcpy")); in TEST()
516 Ident(atoi(nptr)); in CallAtoi()
519 Ident(atol(nptr)); in CallAtol()
522 Ident(atoll(nptr)); in CallAtoll()
560 Ident(strtol(nptr, endptr, base)); in CallStrtol()
563 Ident(strtoll(nptr, endptr, base)); in CallStrtoll()