Searched defs:heap_string (Results 1 - 1 of 1) sorted by relevance

/external/compiler-rt/lib/asan/tests/
H A Dasan_str_test.cc51 char *heap_string = Ident((char*)malloc(length + 1)); local
55 heap_string[i] = 'a';
58 heap_string[length] = 0;
60 StrLenOOBTestTemplate(heap_string, length, false);
65 free(heap_string);
73 wchar_t *heap_string = Ident((wchar_t*)malloc(hello_size)); local
74 memcpy(heap_string, L"Hello, World!", hello_size);
75 EXPECT_EQ(hello_len, Ident(wcslen(heap_string)));
76 EXPECT_DEATH(Ident(wcslen(heap_string + 14)), RightOOBReadMessage(0));
77 free(heap_string);
[all...]

Completed in 65 milliseconds