Home
last modified time | relevance | path

Searched refs:shm_base (Results 1 – 3 of 3) sorted by relevance

/system/core/trusty/confirmationui/fuzz/
Dmsg_fuzzer.cpp53 static void* shm_base; variable
69 shm_base = mmap(0, CONFIRMATIONUI_MAX_MSG_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in LLVMFuzzerInitialize()
70 if (shm_base == MAP_FAILED) { in LLVMFuzzerInitialize()
131 memset(shm_base, 0, CONFIRMATIONUI_MAX_MSG_SIZE); in Msg()
132 memcpy(shm_base, data, size); in Msg()
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp118 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in LLVMFuzzerTestOneInput() local
119 if (shm_base == MAP_FAILED) { in LLVMFuzzerTestOneInput()
124 memcpy(shm_base, data, size); in LLVMFuzzerTestOneInput()
132 munmap(shm_base, shm_len); in LLVMFuzzerTestOneInput()
/system/core/trusty/confirmationui/
DTrustyApp.cpp148 void* shm_base = mmap(0, shm_len, PROT_READ | PROT_WRITE, MAP_SHARED, dma_buf, 0); in TrustyApp() local
149 if (shm_base == MAP_FAILED) { in TrustyApp()
155 shm_base_ = shm_base; in TrustyApp()