/third_party/ffmpeg/libavcodec/ |
H A D | pcm_rechunk_bsf.c | 92 pkt->size -= drain_data; in drain_packet() 119 if (s->in_pkt->size) { in rechunk_filter() 120 if (s->out_pkt->size || s->in_pkt->size < data_size) { in rechunk_filter() 121 int drain = FFMIN(s->in_pkt->size, data_size - s->out_pkt->size); in rechunk_filter() 122 if (!s->out_pkt->size) { in rechunk_filter() 131 s->out_pkt->size = 0; in rechunk_filter() 133 memcpy(s->out_pkt->data + s->out_pkt->size, s->in_pkt->data, drain); in rechunk_filter() 134 s->out_pkt->size in rechunk_filter() [all...] |
/third_party/curl/src/ |
H A D | tool_cb_dbg.c | 38 FILE *stream, const unsigned char *ptr, size_t size, 93 char *data, size_t size, in tool_debug_cb() 161 if(size > 0) { in tool_debug_cb() 164 for(i = 0; i < size - 1; i++) { in tool_debug_cb() 178 newl = (size && (data[size - 1] != '\n')) ? TRUE : FALSE; in tool_debug_cb() 185 (void)fwrite(data, size, 1, output); in tool_debug_cb() 186 newl = (size && (data[size - 1] != '\n')) ? TRUE : FALSE; in tool_debug_cb() 202 fprintf(output, "[%zu bytes data]\n", size); in tool_debug_cb() 92 tool_debug_cb(CURL *handle, curl_infotype type, char *data, size_t size, void *userdata) tool_debug_cb() argument 249 dump(const char *timebuf, const char *idsbuf, const char *text, FILE *stream, const unsigned char *ptr, size_t size, trace tracetype, curl_infotype infotype) dump() argument [all...] |
/third_party/libuv/src/unix/ |
H A D | darwin.c | 72 int uv_exepath(char* buffer, size_t* size) { in uv_exepath() argument 79 if (buffer == NULL || size == NULL || *size == 0) in uv_exepath() 93 *size -= 1; in uv_exepath() 94 if (*size > abspath_size) in uv_exepath() 95 *size = abspath_size; in uv_exepath() 97 memcpy(buffer, abspath, *size); in uv_exepath() 98 buffer[*size] = '\0'; in uv_exepath() 120 size_t size = sizeof(info); in uv_get_total_memory() local 122 if (sysctl(which, ARRAY_SIZE(which), &info, &size, NUL in uv_get_total_memory() 141 size_t size = sizeof(info); uv_loadavg() local 176 size_t size = sizeof(info); uv_uptime() local 193 size_t size; uv_cpu_info() local [all...] |
/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | short_cuts_test_ng.cpp | 96 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 104 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 112 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 137 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 163 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 171 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 197 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 205 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 230 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), 1); in HWTEST_F() 256 EXPECT_EQ(eventManager->keyboardShortcutNode_.size(), in HWTEST_F() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/pixel_map_test/ |
H A D | image_pixel_map_switch_test.cpp | 53 opts.size.width = 200;
in HWTEST_F() 54 opts.size.height = 300;
in HWTEST_F() 57 int32_t width = opts.size.width;
in HWTEST_F() 81 opts.size.width = 0;
in HWTEST_F() 82 opts.size.height = 300;
in HWTEST_F() 85 int32_t width = opts.size.width;
in HWTEST_F() 109 opts.size.width = 0;
in HWTEST_F() 110 opts.size.height = 300;
in HWTEST_F() 113 int32_t width = opts.size.width;
in HWTEST_F() 134 opts.size in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/accessibility/ |
H A D | js_inspector_test.cpp | 96 EXPECT_EQ(inspectToggle.styles_["font-size"], "16px"); in CheckToggleAttrAndStyle() 100 EXPECT_EQ(inspectToggle.styles_["font-size"], "18px"); in CheckToggleAttrAndStyle() 104 EXPECT_EQ(inspectToggle.styles_["font-size"], "16px"); in CheckToggleAttrAndStyle() 124 EXPECT_EQ(inspectToggle.attrs_.size(), attrsSize + attrsSizeInsert); in CheckToggleAttrAndStyle() 125 EXPECT_EQ(inspectToggle.styles_.size(), stylesSize + stylesSizeInsert); in CheckToggleAttrAndStyle() 140 EXPECT_EQ(inspectTextArea.styles_["font-size"], "16px"); in CheckTextAreaAttrAndStyle() 145 EXPECT_EQ(inspectTextArea.styles_["font-size"], "18px"); in CheckTextAreaAttrAndStyle() 152 EXPECT_EQ(inspectTextArea.attrs_.size(), attrsSize + attrsSizeInsert); in CheckTextAreaAttrAndStyle() 153 EXPECT_EQ(inspectTextArea.styles_.size(), stylesSize + stylesSizeInsert); in CheckTextAreaAttrAndStyle() 173 EXPECT_EQ(inspectText.styles_["font-size"], "3 in CheckTextAttrAndStyle() 536 auto size = inspectBadge.attrs_.size(); HWTEST_F() local 707 auto size = inspectCamera.attrs_.size(); HWTEST_F() local 739 auto size = inspectCanvas.attrs_.size(); HWTEST_F() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | extension_util.cpp | 75 const_cast<void *>(reinterpret_cast<const void *>(col.c_str())), col.size(), value, valueLen); in Convert() 95 const_cast<void *>(reinterpret_cast<const void *>(val.c_str())), val.size()); in Convert() 96 valueLen = val.size(); in Convert() 104 value = OhCloudExtValueNew(OhCloudExtValueType::VALUEINNERTYPE_BYTES, &val[0], val.size()); in Convert() 105 valueLen = val.size() * sizeof(uint8_t); in Convert() 127 table.name.size(), reinterpret_cast<const unsigned char *>(table.alias.c_str()), in Convert() 128 table.alias.size(), fields); in Convert() 132 tbLen = tbLen + table.name.size() + table.alias.size(); in Convert() 134 const_cast<void *>(reinterpret_cast<const void *>(table.name.c_str())), table.name.size(), t in Convert() 382 unsigned char *size = nullptr; ConvertAssetLeft() local [all...] |
/third_party/qrcodegen/rust-no-heap/src/ |
H A D | lib.rs | 29 //! Secondary goals are compact implementation size and good documentation comments. 84 //! for y in 0 .. qr.size() { 85 //! for x in 0 .. qr.size() { 122 size: &'a mut u8, 363 Version::new((*self.size - 17) / 4) in version() 367 /// Returns this QR Code's size, in the range [21, 177]. 368 pub fn size(&self) -> i32 { in size() functions 369 i32::from(*self.size) in size() 398 let range = 0 .. self.size(); in get_module() 405 let range = 0 .. *self.size; in get_module_bounded() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | sdp.c | 60 static void sdp_write_address(char *buff, int size, const char *dest_addr, in sdp_write_address() argument 69 av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl); in sdp_write_address() 71 av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr); in sdp_write_address() 76 static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) in sdp_write_header() argument 78 av_strlcatf(buff, size, "v=%d\r\n" in sdp_write_header() 84 sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl); in sdp_write_header() 85 av_strlcatf(buff, size, "t=%d %d\r\n" in sdp_write_header() 91 static int resolve_destination(char *dest_addr, int size, char *type, in resolve_destination() argument 106 getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size, in resolve_destination() 117 static int resolve_destination(char *dest_addr, int size, cha argument 124 sdp_get_address(char *dest_addr, int size, int *ttl, const char *url) sdp_get_address() argument 511 sdp_write_media_attributes(char *buff, int size, const AVStream *st, int payload_type, AVFormatContext *fmt) sdp_write_media_attributes() argument 811 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument 837 av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size) av_sdp_create() argument 910 av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size) av_sdp_create() argument 915 ff_sdp_write_media(char *buff, int size, const AVStream *st, int idx, const char *dest_addr, const char *dest_type, int port, int ttl, AVFormatContext *fmt) ff_sdp_write_media() argument [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibraryextensionopenfile_fuzzer/src/ |
H A D | medialibrary_extension_open_file_fuzzer.cpp | 34 static inline string FuzzString(const uint8_t *data, size_t size) in FuzzString() argument 36 return {reinterpret_cast<const char*>(data), size}; in FuzzString() 39 static inline Uri FuzzUri(const uint8_t *data, size_t size) in FuzzUri() argument 41 return Uri(FuzzString(data, size)); in FuzzUri() 44 static inline void OpenFileFuzzer(MediaDataShareExtAbility &extension, const uint8_t* data, size_t size) in OpenFileFuzzer() argument 46 extension.OpenFile(FuzzUri(data, size), FuzzString(data, size)); in OpenFileFuzzer() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 61 OHOS::OpenFileFuzzer(extension, data, size); in LLVMFuzzerTestOneInput()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibraryextensiongetfiletypes_fuzzer/src/ |
H A D | medialibrary_extension_get_file_types_fuzzer.cpp | 34 static inline string FuzzString(const uint8_t *data, size_t size) in FuzzString() argument 36 return {reinterpret_cast<const char*>(data), size}; in FuzzString() 39 static inline Uri FuzzUri(const uint8_t *data, size_t size) in FuzzUri() argument 41 return Uri(FuzzString(data, size)); in FuzzUri() 44 static inline void GetFileTypesFuzzer(MediaDataShareExtAbility &extension, const uint8_t* data, size_t size) in GetFileTypesFuzzer() argument 46 extension.GetFileTypes(FuzzUri(data, size), FuzzString(data, size)); in GetFileTypesFuzzer() 57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument 61 OHOS::GetFileTypesFuzzer(extension, data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getallmetanodeinfo_fuzzer/ |
H A D | getallmetanodeinfo_fuzzer.cpp | 25 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 27 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI() 34 char *tmp = reinterpret_cast<char *>(malloc(size)); in DoSomethingInterestingWithMyAPI() 38 if (memset_s(tmp, size, '\0', size) != EOK) { in DoSomethingInterestingWithMyAPI() 42 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DoSomethingInterestingWithMyAPI() 55 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 58 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/deactivemetanode_fuzzer/ |
H A D | deactivemetanode_fuzzer.cpp | 24 bool DeactiveMetaNodeTest(const uint8_t* data, size_t size) in DeactiveMetaNodeTest() argument 26 if (data == nullptr || size == 0) { in DeactiveMetaNodeTest() 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in DeactiveMetaNodeTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in DeactiveMetaNodeTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DeactiveMetaNodeTest() 50 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 53 OHOS::DeactiveMetaNodeTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/setnodedatachangeflag_fuzzer/ |
H A D | setnodedatachangeflag_fuzzer.cpp | 24 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 26 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI() 31 char *tmp = reinterpret_cast<char *>(malloc(size)); in DoSomethingInterestingWithMyAPI() 35 if (memset_s(tmp, size, '\0', size) != EOK) { in DoSomethingInterestingWithMyAPI() 39 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DoSomethingInterestingWithMyAPI() 53 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 56 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getnodekeyinfo_fuzzer/ |
H A D | getnodekeyinfo_fuzzer.cpp | 24 bool GetNodeKeyInfoTest(const uint8_t* data, size_t size) in GetNodeKeyInfoTest() argument 26 if (data == nullptr || size == 0) { in GetNodeKeyInfoTest() 33 char *tmp = reinterpret_cast<char *>(malloc(size)); in GetNodeKeyInfoTest() 37 if (memset_s(tmp, size, '\0', size) != EOK) { in GetNodeKeyInfoTest() 41 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in GetNodeKeyInfoTest() 55 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 58 OHOS::GetNodeKeyInfoTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/getlocalnodedeviceinfo_fuzzer/ |
H A D | getlocalnodedeviceinfo_fuzzer.cpp | 25 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 27 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI() 32 char *tmp = reinterpret_cast<char *>(malloc(size)); in DoSomethingInterestingWithMyAPI() 36 if (memset_s(tmp, size, '\0', size) != EOK) { in DoSomethingInterestingWithMyAPI() 40 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DoSomethingInterestingWithMyAPI() 53 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 56 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/leavelnn_fuzzer/ |
H A D | leavelnn_fuzzer.cpp | 30 bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size) in DoSomethingInterestingWithMyAPI() argument 32 if (data == nullptr || size == 0) { in DoSomethingInterestingWithMyAPI() 36 char *tmp = reinterpret_cast<char *>(malloc(size)); in DoSomethingInterestingWithMyAPI() 40 if (memset_s(tmp, size, '\0', size) != EOK) { in DoSomethingInterestingWithMyAPI() 44 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in DoSomethingInterestingWithMyAPI() 56 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 59 OHOS::DoSomethingInterestingWithMyAPI(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/stoptimesync_fuzzer/ |
H A D | stoptimesync_fuzzer.cpp | 24 bool StopTimeSyncTest(const uint8_t* data, size_t size) in StopTimeSyncTest() argument 26 if (data == nullptr || size == 0) { in StopTimeSyncTest() 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in StopTimeSyncTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in StopTimeSyncTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in StopTimeSyncTest() 51 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 54 OHOS::StopTimeSyncTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/stoppublishlnn_fuzzer/ |
H A D | stoppublishlnn_fuzzer.cpp | 24 bool StopPublishLNNTest(const uint8_t* data, size_t size) in StopPublishLNNTest() argument 26 if (data == nullptr || size < sizeof(int32_t)) { in StopPublishLNNTest() 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in StopPublishLNNTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in StopPublishLNNTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in StopPublishLNNTest() 52 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 55 OHOS::StopPublishLNNTest(data, size); in LLVMFuzzerTestOneInput()
|
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/stoprefreshlnn_fuzzer/ |
H A D | stoprefreshlnn_fuzzer.cpp | 24 bool StopRefreshLNNTest(const uint8_t* data, size_t size) in StopRefreshLNNTest() argument 26 if (data == nullptr || size < sizeof(int32_t)) { in StopRefreshLNNTest() 30 char *tmp = reinterpret_cast<char *>(malloc(size)); in StopRefreshLNNTest() 34 if (memset_s(tmp, size, '\0', size) != EOK) { in StopRefreshLNNTest() 38 if (memcpy_s(tmp, size, data, size - 1) != EOK) { in StopRefreshLNNTest() 52 extern "C" int32_t LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument 55 OHOS::StopRefreshLNNTest(data, size); in LLVMFuzzerTestOneInput()
|
/third_party/ffmpeg/tools/ |
H A D | coverity.c | 35 void *av_malloc(size_t size) { in av_malloc() argument 37 __coverity_negative_sink__(size); in av_malloc() 39 void *ptr = __coverity_alloc__(size); in av_malloc() 48 void *av_mallocz(size_t size) { in av_mallocz() argument 50 __coverity_negative_sink__(size); in av_mallocz() 52 void *ptr = __coverity_alloc__(size); in av_mallocz() 61 void *av_realloc(void *ptr, size_t size) { in av_realloc() argument 63 __coverity_negative_sink__(size); in av_realloc() 66 ptr = __coverity_alloc__(size); in av_realloc()
|
/third_party/ntfs-3g/libntfs-3g/ |
H A D | misc.c | 43 void *ntfs_calloc(size_t size) in ntfs_calloc() argument 47 p = calloc(1, size); in ntfs_calloc() 49 ntfs_log_perror("Failed to calloc %lld bytes", (long long)size); in ntfs_calloc() 53 void *ntfs_malloc(size_t size) in ntfs_malloc() argument 57 p = malloc(size); in ntfs_malloc() 59 ntfs_log_perror("Failed to malloc %lld bytes", (long long)size); in ntfs_malloc() 63 void *ntfs_realloc(void *ptr, size_t size) in ntfs_realloc() argument 67 p = realloc(ptr, size); in ntfs_realloc() 70 (long long)size); in ntfs_realloc()
|
/third_party/ltp/tools/sparse/sparse-src/ |
H A D | compat-cygwin.c | 35 void *blob_alloc(unsigned long size) in blob_alloc() argument 38 size = (size + 4095) & ~4095; in blob_alloc() 39 ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in blob_alloc() 43 memset(ptr, 0, size); in blob_alloc() 47 void blob_free(void *addr, unsigned long size) in blob_free() argument 49 size = (size + 4095) & ~4095; in blob_free() 50 munmap(addr, size); in blob_free()
|
/third_party/node/deps/v8/src/base/sanitizer/ |
H A D | asan.h | 27 // to be poisoned. Please note that the macro only works if both start and size 29 #define ASAN_CHECK_WHOLE_MEMORY_REGION_IS_POISONED(start, size) \ 31 for (size_t i = 0; i < size; i++) { \ 41 #define ASAN_POISON_MEMORY_REGION(start, size) \ 44 static_assert(std::is_convertible<decltype(size), size_t>::value, \ 46 USE(start, size) 48 #define ASAN_UNPOISON_MEMORY_REGION(start, size) \ 49 ASAN_POISON_MEMORY_REGION(start, size) 51 #define ASAN_CHECK_WHOLE_MEMORY_REGION_IS_POISONED(start, size) \ 52 ASAN_POISON_MEMORY_REGION(start, size) [all...] |
H A D | msan.h | 18 #define MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start, size) \ 19 __msan_allocated_memory(reinterpret_cast<const void*>(start), (size)) 22 #define MSAN_MEMORY_IS_INITIALIZED(start, size) \ 23 __msan_unpoison(reinterpret_cast<const void*>(start), (size)) 27 #define MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start, size) \ 31 static_assert(std::is_convertible<decltype(size), size_t>::value, \ 33 USE(start, size) 35 #define MSAN_MEMORY_IS_INITIALIZED(start, size) \ 36 MSAN_ALLOCATED_UNINITIALIZED_MEMORY(start, size)
|