/base/web/webview/test/fuzztest/ohos_adapter/systemproperties_fuzzer/ |
H A D | system_properties_adapter_impl_fuzzer.cpp | 26 bool SystemPropertiesAdapterFuzzTest(const uint8_t* data, size_t size) in SystemPropertiesAdapterFuzzTest() argument 28 size_t keySize = std::min(size, static_cast<size_t>(32)); in SystemPropertiesAdapterFuzzTest() 31 size_t valueSize = size > keySize ? size - keySize : 0; in SystemPropertiesAdapterFuzzTest() 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 51 return OHOS::SystemPropertiesAdapterFuzzTest(data, size) ? 0 : 1; in LLVMFuzzerTestOneInput()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | ashmem.h | 33 * @brief Create ashmem in kernel with specified name and size. 36 * @param size Size of the ashmem region. 39 int AshmemCreate(const char *name, size_t size); 51 * @brief Get size of specified ashmem region in kernel. 70 * @brief Create an Ashmem object with specified name and region size. 76 * @param size Size of the ashmem region. 81 static sptr<Ashmem> CreateAshmem(const char *name, int32_t size); 142 * @brief Get the size of ashmem region in kernel. 144 * @return Value of size. 154 * @param size Siz [all...] |
/foundation/multimedia/drm_framework/frameworks/native/test/fuzztest/mediakeysystemndk_fuzzer/ |
H A D | mediakeysystemndk_fuzzer.h | 35 bool FuzzTestMediaKeySystemConfigurationNdk(uint8_t *rawData, size_t size); 36 bool FuzzTestMediaKeySystemGetNdk(uint8_t *rawData, size_t size); 37 bool FuzzTestMediaKeySystemDeviceCertificateNdk(uint8_t *rawData, size_t size); 38 bool FuzzTestMediaKeySystemCertificateOperationNdk(uint8_t *rawData, size_t size); 39 bool FuzzTestMediaKeySystemLicenseOperationNdk(uint8_t *rawData, size_t size); 53 bool FuzzMediaKeySystemNdk(uint8_t *data, size_t size);
|
/foundation/multimodalinput/input/test/fuzztest/getkeyboardtype_fuzzer/ |
H A D | getkeyboardtype_fuzzer.cpp | 29 size_t GetObject(const uint8_t *data, size_t size, T &object) in GetObject() argument 32 if (objectSize > size) { in GetObject() 42 void GetKeyboardTypeFuzzTest(const uint8_t* data, size_t size) in GetKeyboardTypeFuzzTest() argument 46 startPos += GetObject<int32_t>(data + startPos, size - startPos, deviceId); in GetKeyboardTypeFuzzTest() 56 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 OHOS::MMI::GetKeyboardTypeFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/multimodalinput/input/test/fuzztest/pointervisible_fuzzer/ |
H A D | pointervisible_fuzzer.cpp | 29 size_t GetObject(const uint8_t *data, size_t size, T &object) in GetObject() argument 32 if (objectSize > size) { in GetObject() 42 void PointerVisibleFuzzTest(const uint8_t* data, size_t size) in PointerVisibleFuzzTest() argument 46 startPos += GetObject<int32_t>(data + startPos, size - startPos, random); in PointerVisibleFuzzTest() 59 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 62 OHOS::MMI::PointerVisibleFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/systemabilitymgr/samgr/test/fuzztest/samgr_fuzzer/src/ |
H A D | unsubscribesystemprocess_fuzzer.cpp | 27 void FuzzSubscribeSystemProcess(const uint8_t *data, size_t size) in FuzzSubscribeSystemProcess() argument 40 void FuzzUnSubscribeSystemProcess(const uint8_t *data, size_t size) in FuzzUnSubscribeSystemProcess() argument 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 57 if (size < OHOS::Samgr::THRESHOLD) { in LLVMFuzzerTestOneInput() 60 OHOS::Samgr::FuzzSubscribeSystemProcess(data, size); in LLVMFuzzerTestOneInput() 61 OHOS::Samgr::FuzzUnSubscribeSystemProcess(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/deviceprofile/device_info_manager/old/services/core/test/fuzztest/getdeviceprofile_fuzzer/ |
H A D | getdeviceprofile_fuzzer.cpp | 34 void FuzzGetDeviceProfile(const uint8_t* data, size_t size) in FuzzGetDeviceProfile() argument 36 if ((data == nullptr) || (size == 0)) { in FuzzGetDeviceProfile() 43 std::string serviceId(reinterpret_cast<const char*>(data), size); in FuzzGetDeviceProfile() local 44 std::string serviceType(reinterpret_cast<const char*>(data), size); in FuzzGetDeviceProfile() local 59 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 61 OHOS::DeviceProfile::FuzzGetDeviceProfile(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/callbackonnotifyresourceinfo_fuzzer/ |
H A D | callbackonnotifyresourceinfo_fuzzer.cpp | 32 void CallbackOnNotifyResourceInfoFuzzTest(const uint8_t* data, size_t size) in CallbackOnNotifyResourceInfoFuzzTest() argument 34 if ((data == nullptr) || (size < sizeof(int32_t))) { in CallbackOnNotifyResourceInfoFuzzTest() 38 std::string subtype(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyResourceInfoFuzzTest() local 39 std::string networkId(reinterpret_cast<const char*>(data), size); in CallbackOnNotifyResourceInfoFuzzTest() local 55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 58 OHOS::DistributedHardware::CallbackOnNotifyResourceInfoFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/fuzztest/sinkipccallbackonnotifyresourceinfo_fuzzer/ |
H A D | sinkipccallbackonnotifyresourceinfo_fuzzer.cpp | 30 void SinkIpcCallbackOnNotifyResourceInfoFuzzTest(const uint8_t* data, size_t size) in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() argument 32 if ((data == nullptr) || (size < (sizeof(int32_t)))) { in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() 37 std::string subtype(reinterpret_cast<const char*>(data), size); in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() local 38 std::string networkId(reinterpret_cast<const char*>(data), size); in SinkIpcCallbackOnNotifyResourceInfoFuzzTest() local 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 52 OHOS::DistributedHardware::SinkIpcCallbackOnNotifyResourceInfoFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxyunregisterdistributedhardware_fuzzer/ |
H A D | sourceproxyunregisterdistributedhardware_fuzzer.cpp | 28 void SourceProxyUnregisterDistributedHardwareFuzzTest(const uint8_t* data, size_t size) in SourceProxyUnregisterDistributedHardwareFuzzTest() argument 34 std::string dhId(reinterpret_cast<const char*>(data), size); in SourceProxyUnregisterDistributedHardwareFuzzTest() local 35 std::string devId(reinterpret_cast<const char*>(data), size); in SourceProxyUnregisterDistributedHardwareFuzzTest() local 36 std::string reqId(reinterpret_cast<const char*>(data), size); in SourceProxyUnregisterDistributedHardwareFuzzTest() local 54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 57 OHOS::DistributedHardware::SourceProxyUnregisterDistributedHardwareFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/device_manager/test/servicesfuzztest/devicelistrefresh_fuzzer/ |
H A D | device_list_refresh_fuzzer.cpp | 27 void DeviceListRefreshFuzzTest(const uint8_t* data, size_t size) in DeviceListRefreshFuzzTest() argument 29 if ((data == nullptr) || (size == 0)) { in DeviceListRefreshFuzzTest() 33 std::string extra(reinterpret_cast<const char*>(data), size); in DeviceListRefreshFuzzTest() local 36 std::string bundleName(reinterpret_cast<const char*>(data), size); in DeviceListRefreshFuzzTest() local 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 52 OHOS::DistributedHardware::DeviceListRefreshFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/device_manager/test/servicesfuzztest/registerdevstatecallback_fuzzer/ |
H A D | register_dev_state_callback_fuzzer.cpp | 37 void RegisterDevStateCallbackFuzzTest(const uint8_t* data, size_t size) in RegisterDevStateCallbackFuzzTest() argument 39 if ((data == nullptr) || (size == 0)) { in RegisterDevStateCallbackFuzzTest() 42 std::string bundleName(reinterpret_cast<const char*>(data), size); in RegisterDevStateCallbackFuzzTest() local 43 std::string extra(reinterpret_cast<const char*>(data), size); in RegisterDevStateCallbackFuzzTest() local 54 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 57 OHOS::DistributedHardware::RegisterDevStateCallbackFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/device_manager/test/softbusfuzztest/refreshsoftbuslnn_fuzzer/ |
H A D | refresh_softbus_lnn_fuzzer.cpp | 27 void RefreshSoftbusLNNFuzzTest(const uint8_t* data, size_t size) in RefreshSoftbusLNNFuzzTest() argument 29 if ((data == nullptr) || (size < sizeof(uint16_t))) { in RefreshSoftbusLNNFuzzTest() 32 std::string pkgNameStr(reinterpret_cast<const char*>(data), size); in RefreshSoftbusLNNFuzzTest() local 40 std::string customData(reinterpret_cast<const char*>(data), size); in RefreshSoftbusLNNFuzzTest() local 49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 52 OHOS::DistributedHardware::RefreshSoftbusLNNFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/enabledcompsdump_fuzzer/ |
H A D | enabledcompsdump_fuzzer.cpp | 38 void EnableedCompsDumpFuzzTest(const uint8_t* data, size_t size) in EnableedCompsDumpFuzzTest() argument 40 if ((data == nullptr) || (size == 0)) { in EnableedCompsDumpFuzzTest() 44 std::string networkId(reinterpret_cast<const char*>(data), size); in EnableedCompsDumpFuzzTest() local 45 std::string dhId(reinterpret_cast<const char*>(data), size); in EnableedCompsDumpFuzzTest() local 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 60 OHOS::DistributedHardware::EnableedCompsDumpFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/ |
H A D | dscreennotify_fuzzer.cpp | 29 void DScreenNotifyFuzzTest(const uint8_t* data, size_t size) in DScreenNotifyFuzzTest() argument 31 if ((size < sizeof(int32_t)) || (data == nullptr)) { in DScreenNotifyFuzzTest() 35 std::string devId(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() local 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() local 58 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 61 OHOS::DistributedHardware::DScreenNotifyFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/ |
H A D | sinkproxydscreennotify_fuzzer.cpp | 29 void DScreenNotifyFuzzTest(const uint8_t* data, size_t size) in DScreenNotifyFuzzTest() argument 31 if ((data == nullptr) || (size < sizeof(int32_t))) { in DScreenNotifyFuzzTest() 35 std::string devId(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() local 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() local 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 60 OHOS::DistributedHardware::DScreenNotifyFuzzTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/bluetooth_service/test/fuzztest/host/setlocalname_fuzzer/ |
H A D | setlocalname_fuzzer.cpp | 25 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 28 if ((data == nullptr) || (size < sizeof(int32_t))) { in DoSomethingInterestingWithMyAPI() 32 int len = (size > FUZZ_MAX_NAME_LEN) ? FUZZ_MAX_NAME_LEN : size; in DoSomethingInterestingWithMyAPI() 50 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 53 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/nvhe/ |
H A D | early_alloc.c | 26 unsigned long size = (nr_pages << PAGE_SHIFT); in hyp_early_alloc_contig() local 32 if (end - cur < size) in hyp_early_alloc_contig() 35 cur += size; in hyp_early_alloc_contig() 36 memset(ret, 0, size); in hyp_early_alloc_contig() 49 void hyp_early_alloc_init(void *virt, unsigned long size) in hyp_early_alloc_init() argument 52 end = base + size; in hyp_early_alloc_init()
|
/kernel/linux/linux-5.10/drivers/media/platform/coda/ |
H A D | coda-mpeg2.c | 62 * Returns the detected header size in bytes or 0. 64 u32 coda_mpeg2_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size) in coda_mpeg2_parse_headers() argument 72 if (size < 22 || in coda_mpeg2_parse_headers() 76 if ((size == 22 || in coda_mpeg2_parse_headers() 77 (size >= 25 && memcmp(buf + 22, u.start_code_prefix, 3) == 0)) && in coda_mpeg2_parse_headers() 81 if ((size == 86 || in coda_mpeg2_parse_headers() 82 (size > 89 && memcmp(buf + 86, u.start_code_prefix, 3) == 0)) && in coda_mpeg2_parse_headers()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | swiotlb.h | 14 size_t size, 17 TP_ARGS(dev, dev_addr, size, swiotlb_force), 23 __field( size_t, size ) 31 __entry->size = size; 36 "size=%zu %s", 40 __entry->size,
|
/kernel/linux/linux-5.10/lib/ |
H A D | bucket_locks.c | 10 * the number of locks per CPU to allocate. The size is rounded up 19 unsigned int i, size; in __alloc_bucket_spinlocks() local 28 size = min_t(unsigned int, nr_pcpus * cpu_mult, max_size); in __alloc_bucket_spinlocks() 30 size = max_size; in __alloc_bucket_spinlocks() 34 tlocks = kvmalloc_array(size, sizeof(spinlock_t), gfp); in __alloc_bucket_spinlocks() 37 for (i = 0; i < size; i++) { in __alloc_bucket_spinlocks() 44 *locks_mask = size - 1; in __alloc_bucket_spinlocks()
|
/kernel/linux/linux-5.10/include/linux/hck/ |
H A D | lite_hck_jit_memory.h | 23 TP_PROTO(struct task_struct *task, unsigned long start, unsigned long size, int *err), 24 TP_ARGS(task, start, size, err)); 28 unsigned long flag, unsigned long size, unsigned long *err), 29 TP_ARGS(task, cookie, prot, flag, size, err)); 32 TP_PROTO(struct task_struct *task, unsigned long start, unsigned long size, int *err), 33 TP_ARGS(task, start, size, err));
|
/kernel/linux/linux-6.6/include/linux/hck/ |
H A D | lite_hck_jit_memory.h | 23 TP_PROTO(struct task_struct *task, unsigned long start, unsigned long size, int *err), 24 TP_ARGS(task, start, size, err)); 28 unsigned long flag, unsigned long size, unsigned long *err), 29 TP_ARGS(task, cookie, prot, flag, size, err)); 32 TP_PROTO(struct task_struct *task, unsigned long start, unsigned long size, int *err), 33 TP_ARGS(task, start, size, err));
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | swiotlb.h | 11 TP_PROTO(struct device *dev, dma_addr_t dev_addr, size_t size), 12 TP_ARGS(dev, dev_addr, size), 18 __field(size_t, size) 26 __entry->size = size; 30 TP_printk("dev_name: %s dma_mask=%llx dev_addr=%llx size=%zu %s", 34 __entry->size,
|
/kernel/linux/linux-6.6/drivers/media/platform/chips-media/ |
H A D | coda-mpeg2.c | 62 * Returns the detected header size in bytes or 0. 64 u32 coda_mpeg2_parse_headers(struct coda_ctx *ctx, u8 *buf, u32 size) in coda_mpeg2_parse_headers() argument 72 if (size < 22 || in coda_mpeg2_parse_headers() 76 if ((size == 22 || in coda_mpeg2_parse_headers() 77 (size >= 25 && memcmp(buf + 22, u.start_code_prefix, 3) == 0)) && in coda_mpeg2_parse_headers() 81 if ((size == 86 || in coda_mpeg2_parse_headers() 82 (size > 89 && memcmp(buf + 86, u.start_code_prefix, 3) == 0)) && in coda_mpeg2_parse_headers()
|