Home
last modified time | relevance | path

Searched refs:guard (Results 1 – 19 of 19) sorted by relevance

/bionic/tests/
Dstack_protector_test.cpp46 void* guard = __get_tls()[TLS_SLOT_STACK_GUARD]; in Check() local
48 printf("[thread %d] TLS stack guard = %p\n", tid, guard); in Check()
55 ASSERT_NE(guard, nullptr); in Check()
59 ASSERT_EQ(__stack_chk_guard, reinterpret_cast<uintptr_t>(guard)); in Check()
63 guards.insert(guard); in Check()
Dbug_26110743_test.cpp62 auto guard = android::base::make_scope_guard([&]() { in TEST() local
107 auto guard = android::base::make_scope_guard([&]() { in TEST() local
Dmath_test.cpp1047 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1069 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1097 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1124 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1132 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1236 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1248 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1260 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1272 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
1284 auto guard = android::base::make_scope_guard([]() { fesetenv(FE_DFL_ENV); }); in TEST() local
[all …]
Dsys_ptrace_test.cpp179 ChildGuard guard(child); in run_watchpoint_test() local
353 ChildGuard guard(child); in TEST() local
Ddlfcn_test.cpp371 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST() local
1039 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST() local
1057 auto guard = android::base::make_scope_guard([&]() { dlclose(handle); }); in TEST() local
Dunistd_test.cpp1170 auto guard = android::base::make_scope_guard([&rl, original_rlim_cur]() { in TEST() local
Dpthread_test.cpp1848 auto guard = android::base::make_scope_guard([&rl, original_rlim_cur]() { in TEST() local
/bionic/libc/kernel/uapi/linux/
Dbsg.h17 __s32 guard; member
/bionic/libc/malloc_debug/
DREADME.md50 On first allocation, this front guard is written with a specific pattern (0xaa).
51 When the allocation is freed, the guard is checked to verify it has not been
52 modified. If any part of the front guard is modified, an error will be reported
58 If SIZE\_BYTES is present, it indicates the number of bytes in the guard.
64 This option adds a special header to all allocations that contains the guard
76 On first allocation, this rear guard is written with a specific pattern (0xbb).
77 When the allocation is freed, the guard is checked to verify it has not been
78 modified. If any part of the rear guard is modified, an error will be reported
81 If SIZE\_BYTES is present, it indicates the number of bytes in the guard.
93 ### guard[=SIZE\_BYTES]
[all …]
Dmalloc_debug.cpp375 uint8_t* guard = g_debug->GetFrontGuard(header); in InitHeader() local
376 memset(guard, g_debug->config().front_guard_value(), g_debug->config().front_guard_bytes()); in InitHeader()
380 uint8_t* guard = g_debug->GetRearGuard(header); in InitHeader() local
381 memset(guard, g_debug->config().rear_guard_value(), g_debug->config().rear_guard_bytes()); in InitHeader()
1146 std::lock_guard<std::mutex> guard(g_dump_lock); in debug_write_malloc_leak_info() local
1162 std::lock_guard<std::mutex> guard(g_dump_lock); in debug_dump_heap() local
DREADME_marshmallow_and_earlier.md79 a front guard). This buffer is filled with the pattern (0xaa). In addition,
81 as a rear guard). This buffer is filled with the pattern (0xbb).
/bionic/libc/bionic/
Dgrp_pwd_file.cpp212 LockGuard guard(lock_); in GetFile() local
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_system_tests.cpp158 std::lock_guard<std::mutex> guard(data_lock_); in LogReader() local
189 std::lock_guard<std::mutex> guard(data_lock_); in GetLog() local
Dmalloc_debug_config_tests.cpp196 TEST_F(MallocDebugConfigTest, guard) { in TEST_F() argument
/bionic/linker/
Dlinker.cpp2010 ProtectedDataGuard guard; in increment_dso_handle_reference_counter() local
2033 ProtectedDataGuard guard; in decrement_dso_handle_reference_counter() local
2229 ProtectedDataGuard guard; in do_dlopen() local
2380 ProtectedDataGuard guard; in do_dlclose() local
2416 ProtectedDataGuard guard; in init_anonymous_namespace() local
2484 ProtectedDataGuard guard; in create_namespace() local
2564 ProtectedDataGuard guard; in link_namespaces() local
2582 ProtectedDataGuard guard; in link_namespaces_all_libs() local
Dlinker_main.cpp307 ProtectedDataGuard guard; in linker_main() local
/bionic/docs/
Dfdsan.md140 …ly closing it for us. Let's use `android::base::unique_fd` in `victim` to guard the file descripto…
Delf-tls.md154 variable with a dynamic initializer has an associated TLS guard variable.)
753 * We would reserve at least 6 words to cover the stack guard
Dclang_fortify_anatomy.md24 Broadly, FORTIFY implementations try to guard against many misuses of C