Home
last modified time | relevance | path

Searched refs:size (Results 551 - 575 of 31284) sorted by relevance

1...<<21222324252627282930>>...1252

/foundation/multimedia/av_codec/test/moduletest/demuxer/src/
H A Dfunc_test.cpp202 int64_t size = GetFileSize(file); in HWTEST_F() local
203 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
204 cout << file << "------" << size << endl; in HWTEST_F()
205 source = OH_AVSource_CreateWithFD(fd, 0, size); in HWTEST_F()
221 int64_t size = GetFileSize(file); in HWTEST_F() local
222 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
223 source = OH_AVSource_CreateWithFD(fd, 0, size); in HWTEST_F()
241 int64_t size = GetFileSize(file); in HWTEST_F() local
242 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
243 source = OH_AVSource_CreateWithFD(fd, 0, size); in HWTEST_F()
292 int64_t size = GetFileSize(file); HWTEST_F() local
351 int64_t size = GetFileSize(file); HWTEST_F() local
409 int64_t size = GetFileSize(file); HWTEST_F() local
467 int64_t size = GetFileSize(file); HWTEST_F() local
518 int64_t size = GetFileSize(file); HWTEST_F() local
567 int64_t size = GetFileSize(file); HWTEST_F() local
616 int64_t size = GetFileSize(file); HWTEST_F() local
665 int64_t size = GetFileSize(file); HWTEST_F() local
715 int64_t size = GetFileSize(file); HWTEST_F() local
767 int64_t size = GetFileSize(file); HWTEST_F() local
821 int64_t size = GetFileSize(file); HWTEST_F() local
837 int64_t size = GetFileSize(file); HWTEST_F() local
868 int64_t size = GetFileSize(file); HWTEST_F() local
923 int64_t size = GetFileSize(file); HWTEST_F() local
979 int64_t size = GetFileSize(file); HWTEST_F() local
1035 int64_t size = GetFileSize(file); HWTEST_F() local
1089 int64_t size = GetFileSize(file); HWTEST_F() local
1146 int64_t size = GetFileSize(file); HWTEST_F() local
1208 int64_t size = GetFileSize(file); HWTEST_F() local
1269 int64_t size = GetFileSize(file); HWTEST_F() local
1329 int64_t size = GetFileSize(file); HWTEST_F() local
1384 int64_t size = GetFileSize(file); HWTEST_F() local
1440 int64_t size = GetFileSize(file); HWTEST_F() local
[all...]
/test/xts/acts/multimedia/av_codec/demuxer/src/
H A Dfunc_test.cpp193 int64_t size = GetFileSize(file); in HWTEST_F() local
194 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
195 cout << file << "------" << size << endl; in HWTEST_F()
196 source = OH_AVSource_CreateWithFD(fd, 0, size); in HWTEST_F()
212 int64_t size = GetFileSize(file); in HWTEST_F() local
213 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
214 source = OH_AVSource_CreateWithFD(fd, 0, size); in HWTEST_F()
232 int64_t size = GetFileSize(file); in HWTEST_F() local
233 cout << file << "----------------------" << fd << "---------" << size << endl; in HWTEST_F()
234 source = OH_AVSource_CreateWithFD(fd, 0, size); in HWTEST_F()
280 int64_t size = GetFileSize(file); HWTEST_F() local
338 int64_t size = GetFileSize(file); HWTEST_F() local
395 int64_t size = GetFileSize(file); HWTEST_F() local
452 int64_t size = GetFileSize(file); HWTEST_F() local
503 int64_t size = GetFileSize(file); HWTEST_F() local
552 int64_t size = GetFileSize(file); HWTEST_F() local
601 int64_t size = GetFileSize(file); HWTEST_F() local
650 int64_t size = GetFileSize(file); HWTEST_F() local
700 int64_t size = GetFileSize(file); HWTEST_F() local
752 int64_t size = GetFileSize(file); HWTEST_F() local
805 int64_t size = GetFileSize(file); HWTEST_F() local
821 int64_t size = GetFileSize(file); HWTEST_F() local
852 int64_t size = GetFileSize(file); HWTEST_F() local
909 int64_t size = GetFileSize(file); HWTEST_F() local
968 int64_t size = GetFileSize(file); HWTEST_F() local
1024 int64_t size = GetFileSize(file); HWTEST_F() local
1078 int64_t size = GetFileSize(file); HWTEST_F() local
1134 int64_t size = GetFileSize(file); HWTEST_F() local
1196 int64_t size = GetFileSize(file); HWTEST_F() local
1257 int64_t size = GetFileSize(file); HWTEST_F() local
1317 int64_t size = GetFileSize(file); HWTEST_F() local
1372 int64_t size = GetFileSize(file); HWTEST_F() local
1428 int64_t size = GetFileSize(file); HWTEST_F() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dtwinvq.c40 * @param order the order of the LSP (and the size of the *lsp buffer). Must
75 int size_s = mtab->size / mtab->fmode[TWINVQ_FT_SHORT].sub; in eval_lpcenv()
84 static void interpolate(float *out, float v1, float v2, int size) in interpolate() argument
87 float step = (v1 - v2) / (size + 1); in interpolate()
89 for (i = 0; i < size; i++) { in interpolate()
95 static inline float get_cos(int idx, int part, const float *cos_tab, int size) in get_cos() argument
97 return part ? -cos_tab[size - idx - 1] in get_cos()
109 * @param step the size of a block "siiiibiiii"
113 * @param size the size o
115 eval_lpcenv_or_interp(TwinVQContext *tctx, enum TwinVQFrameType ftype, float *out, const float *in, int size, int step, int part) eval_lpcenv_or_interp() argument
152 eval_lpcenv_2parts(TwinVQContext *tctx, enum TwinVQFrameType ftype, const float *buf, float *lpc, int size, int step) eval_lpcenv_2parts() argument
308 int size = tctx->mtab->size / tctx->mtab->fmode[ftype].sub; dec_lpc_spectrum_inv() local
334 int size = mtab->size; imdct_and_window() local
632 linear_perm(int16_t *out, int16_t *in, int n_blocks, int size) linear_perm() argument
644 int block_size, size; construct_perm_table() local
[all...]
/third_party/skia/modules/skplaintexteditor/src/
H A Deditor.cpp23 static bool valid_utf8(const char* ptr, size_t size) { return SkUTF::CountUTF8(ptr, size) >= 0; } in valid_utf8() argument
29 static void readlines(const void* data, size_t size, F f) { in readlines() argument
31 const char* end = start + size; in readlines()
73 for (size_t j = 0; j < fLines.size(); ++j) { in getPosition()
78 j + 1 < fLines.size() ? fLines[j + 1].fOrigin.y() : INT_MAX}; in getPosition()
89 for (size_t i = 0; i < pos.size(); ++i) { in getPosition()
94 approximatePosition = {xy.x() <= line.fOrigin.x() ? 0 : line.fText.size(), j}; in getPosition()
127 if (fLines.size() > 0) { in getLocation()
130 if (cursor.fTextByteIndex < cLine.fCursorPos.size()) { in getLocation()
213 size_t size = 0; copy() local
[all...]
/foundation/ai/ai_engine/services/common/platform/os_wrapper/feature/source/
H A Dtype_converter.cpp90 .size = 0, in TypeConverter()
115 workBuffer_.size = localConfig.size; in Init()
117 size_t bufferSize = workBuffer_.size * typeSize; in Init()
119 HILOGE("[TypeConverter]The required memory size is larger than MAX_SAMPLE_SIZE[%zu]", in Init()
143 if (output.data != nullptr || output.size != 0) { in Process()
147 if (input.data == nullptr || input.size == 0) { in Process()
151 if (input.size != workBuffer_.size) { in Process()
152 HILOGE("[TypeConverter]The input size[ in Process()
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_client/fuzztest/ui/rscanvasdrawingnode_fuzzer/
H A Drscanvasdrawingnode_fuzzer.cpp42 * describe: get data from outside untrusted data(g_data) which size is according to sizeof(T)
61 bool DoRSCanvasDrawingNode(const uint8_t* data, size_t size) in DoRSCanvasDrawingNode() argument
69 g_size = size; in DoRSCanvasDrawingNode()
79 bool DoCreate(const uint8_t* data, size_t size) in DoCreate() argument
87 g_size = size; in DoCreate()
97 bool DoGetBitmap(const uint8_t* data, size_t size) in DoGetBitmap() argument
105 g_size = size; in DoGetBitmap()
125 bool DoGetPixelmap(const uint8_t* data, size_t size) in DoGetPixelmap() argument
133 g_size = size; in DoGetPixelmap()
153 bool DoResetSurface(const uint8_t* data, size_t size) in DoResetSurface() argument
174 DoCreateTextureExportRenderNodeInRT(const uint8_t* data, size_t size) DoCreateTextureExportRenderNodeInRT() argument
196 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Daudio_buffer_cache.cpp39 int32_t AudioBufferCache::RequestBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size) in RequestBuffer() argument
42 auto status = RequestCacheBuffer(buffer, size); in RequestBuffer()
46 status = AllocAudioBuffer(buffer, size); in RequestBuffer()
79 if (freeBufferList_.size() != bufferMap_.size()) { in Clear()
103 int32_t AudioBufferCache::SetBufferSize(std::shared_ptr<AudioBuffer> &buffer, int32_t size) in SetBufferSize() argument
105 if (dumpBufferWrap_ && dumpBufferWrap_->SetSize(buffer.get(), size)) { in SetBufferSize()
111 int32_t AudioBufferCache::RequestCacheBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size) in RequestCacheBuffer() argument
114 if (size <= bufferMap_[*it].size) { in RequestCacheBuffer()
133 AllocBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size) AllocBuffer() argument
145 AllocAudioBuffer(std::shared_ptr<AudioBuffer> &buffer, int32_t size) AllocAudioBuffer() argument
161 DeleteAudioBuffer(uint64_t bufferId, int32_t size) DeleteAudioBuffer() argument
[all...]
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/fuzztest/medialibrarymediaphotoassetproxy_fuzzer/
H A Dmedialibrarymediaphotoassetproxy_fuzzer.cpp45 static inline int32_t FuzzInt32(const uint8_t *data, size_t size) in FuzzInt32() argument
50 static inline Media::CameraShotType FuzzCameraShotType(const uint8_t *data, size_t size) in FuzzCameraShotType() argument
52 uint8_t length = static_cast<uint8_t>(Media::CameraShotType_FUZZER_LISTS.size()); in FuzzCameraShotType()
59 static inline Media::PhotoFormat FuzzPhotoFormat(const uint8_t *data, size_t size) in FuzzPhotoFormat() argument
61 uint8_t length = static_cast<uint8_t>(Media::PhotoFormat_FUZZER_LISTS.size()); in FuzzPhotoFormat()
68 static inline Media::PhotoQuality FuzzPhotoQuality(const uint8_t *data, size_t size) in FuzzPhotoQuality() argument
70 uint8_t length = static_cast<uint8_t>(Media::PhotoQuality_FUZZER_LISTS.size()); in FuzzPhotoQuality()
96 static shared_ptr<Media::PhotoAssetProxy> Init(const uint8_t *data, size_t size) in Init() argument
99 FuzzCameraShotType(data, size), FuzzInt32(data, size), FuzzInt3 in Init()
103 FuzzPhotoAssetProxy(const uint8_t *data, size_t size) FuzzPhotoAssetProxy() argument
115 MediaLibraryMediaPhotoAssetProxyTest(const uint8_t *data, size_t size) MediaLibraryMediaPhotoAssetProxyTest() argument
165 LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sourcefuzztest/softbusadapter_fuzzer/
H A Dsoftbusadapter_fuzzer.cpp22 void SoftbusCreatSoftBusSinkSocketServerFuzzTest(const uint8_t* data, size_t size) in SoftbusCreatSoftBusSinkSocketServerFuzzTest() argument
24 if ((data == nullptr) || (size < sizeof(int64_t))) { in SoftbusCreatSoftBusSinkSocketServerFuzzTest()
37 void SoftbusCreateSoftBusSourceSocketClientFuzzTest(const uint8_t* data, size_t size) in SoftbusCreateSoftBusSourceSocketClientFuzzTest() argument
39 if ((data == nullptr) || (size < sizeof(int64_t))) { in SoftbusCreateSoftBusSourceSocketClientFuzzTest()
54 void SoftbusDestroySoftbusSessionServerFuzzTest(const uint8_t* data, size_t size) in SoftbusDestroySoftbusSessionServerFuzzTest() argument
56 if ((data == nullptr) || (size < sizeof(int64_t))) { in SoftbusDestroySoftbusSessionServerFuzzTest()
70 void SoftbusCloseSoftbusSessionFuzzTest(const uint8_t* data, size_t size) in SoftbusCloseSoftbusSessionFuzzTest() argument
72 if ((data == nullptr) || (size < sizeof(int64_t))) { in SoftbusCloseSoftbusSessionFuzzTest()
88 void SoftbusSendSofbusStreamFuzzTest(const uint8_t* data, size_t size) in SoftbusSendSofbusStreamFuzzTest() argument
90 if ((data == nullptr) || (size < sizeo in SoftbusSendSofbusStreamFuzzTest()
109 SoftbusGetLocalNetworkIdFuzzTest(const uint8_t* data, size_t size) SoftbusGetLocalNetworkIdFuzzTest() argument
122 LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) LLVMFuzzerTestOneInput() argument
[all...]
/third_party/ffmpeg/libavformat/
H A Drtpenc_h264_hevc.c55 static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last) in nal_send() argument
60 av_log(s1, AV_LOG_DEBUG, "Sending NAL %x of len %d M=%d\n", buf[0] & 0x1F, size, last); in nal_send()
61 if (size <= s->max_payload_size) { in nal_send()
74 if (buffered_size + 2 + size > s->max_payload_size) { in nal_send()
82 if (buffered_size + 2 + header_size + size <= s->max_payload_size && in nal_send()
92 AV_WB16(s->buf_ptr, size); in nal_send()
94 memcpy(s->buf_ptr, buf, size); in nal_send()
95 s->buf_ptr += size; in nal_send()
99 ff_rtp_send_data(s1, buf, size, last); in nal_send()
106 "NAL size in nal_send()
180 ff_rtp_send_h264_hevc(AVFormatContext *s1, const uint8_t *buf1, int size) ff_rtp_send_h264_hevc() argument
[all...]
/third_party/node/deps/v8/src/base/
H A Dregion-allocator.h17 // Helper class for managing used/free regions within [address, address+size)
18 // region. Minimum allocation unit is |page_size|. Requested allocation size
30 using SplitMergeCallback = std::function<void(Address start, size_t size)>;
43 RegionAllocator(Address address, size_t size, size_t page_size);
59 // so that [start, start+size) becomes a new region.
64 // [start, start+size) are merged into a single one.
69 // Allocates region of |size| (must be |page_size|-aligned). Returns
71 Address AllocateRegion(size_t size);
73 Address AllocateRegion(RandomNumberGenerator* rng, size_t size);
75 // Allocates region of |size| a
117 size_t size() const { return whole_region_.size(); } size() function in v8::base::final
139 Region(Address address, size_t size, RegionState state) Region() argument
[all...]
/third_party/mesa3d/src/glx/
H A Dpackrender.h51 ** Network size parameters
72 ** Because of their size, they may not automatically fit in the buffer.
76 #define __GLX_BEGIN_VARIABLE(opcode,size) \
77 if (pc + (size) > gc->bufEnd) { \
80 __GLX_PUT_SHORT(0,size); \
83 #define __GLX_BEGIN_VARIABLE_LARGE(opcode,size) \
85 __GLX_PUT_LONG(0,size); \
88 #define __GLX_BEGIN_VARIABLE_WITH_PIXEL(opcode,size) \
89 if (pc + (size) > gc->bufEnd) { \
92 __GLX_PUT_SHORT(0,size); \
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/gl/
H A DSemaphoreGL.cpp23 outIDs->resize(bufferBarriers.size()); in GatherNativeBufferIDs()
24 for (GLuint bufferIdx = 0; bufferIdx < bufferBarriers.size(); bufferIdx++) in GatherNativeBufferIDs()
34 outIDs->resize(textureBarriers.size()); in GatherNativeTextureIDs()
35 outLayouts->resize(textureBarriers.size()); in GatherNativeTextureIDs()
36 for (GLuint textureIdx = 0; textureIdx < textureBarriers.size(); textureIdx++) in GatherNativeTextureIDs()
84 gl::BarrierVector<GLuint> bufferIDs(bufferBarriers.size()); in wait()
87 gl::BarrierVector<GLuint> textureIDs(textureBarriers.size()); in wait()
88 gl::BarrierVector<GLenum> textureLayouts(textureBarriers.size()); in wait()
90 ASSERT(textureIDs.size() == textureLayouts.size()); in wait()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Draw_logging.cc89 // sprintf the format to the buffer, adjusting *buf and *size to reflect the
93 bool VADoRawLog(char** buf, int* size, const char* format, va_list ap)
95 bool VADoRawLog(char** buf, int* size, const char* format, va_list ap) { in VADoRawLog() argument
96 int n = vsnprintf(*buf, *size, format, ap); in VADoRawLog()
98 if (n < 0 || n > *size) { in VADoRawLog()
100 if (static_cast<size_t>(*size) > sizeof(kTruncated)) { in VADoRawLog()
101 n = *size - sizeof(kTruncated); // room for truncation message in VADoRawLog()
106 *size -= n; in VADoRawLog()
118 // *DoRawLog writes to *buf of *size and move them past the written portion.
120 bool DoRawLog(char** buf, int* size, cons
122 DoRawLog(char** buf, int* size, const char* format, ...) DoRawLog() argument
139 int size = sizeof(buffer); RawLogVA() local
[all...]
/foundation/ability/ability_runtime/test/fuzztest/forcetimeoutfortest_fuzzer/
H A Dforcetimeoutfortest_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char *data, size_t size) in DoSomethingInterestingWithMyAPI() argument
35 std::string abilityName(data, size); in DoSomethingInterestingWithMyAPI()
36 std::string state(data, size); in DoSomethingInterestingWithMyAPI()
50 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) in LLVMFuzzerTestOneInput() argument
58 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
59 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
63 char *ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
69 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formabilityconnectionreporter_fuzzer/
H A Dformabilityconnectionreporter_fuzzer.cpp40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
43 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
56 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
63 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
67 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
68 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
72 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
77 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formbmshelper_fuzzer/
H A Dformbmshelper_fuzzer.cpp38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
43 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
44 std::string moduleName(data, size); in DoSomethingInterestingWithMyAPI()
57 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
64 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
68 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
69 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
73 char* ch = reinterpret_cast<char *>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
78 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formmanager_fuzzer/
H A Dformmanager_fuzzer.cpp38 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
43 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
60 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
64 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
65 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
69 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
74 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formrendereventreport_fuzzer/
H A Dformrendereventreport_fuzzer.cpp39 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
46 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
60 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
64 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
65 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
69 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
74 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formbundleforbidmgr_fuzzer/
H A Dformbundleforbidmgr_fuzzer.cpp40 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
44 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
53 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
60 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
64 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
65 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
69 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
74 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/form_fwk/test/fuzztest/formhostdelegatestub_fuzzer/
H A Dformhostdelegatestub_fuzzer.cpp44 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
50 datas.WriteBuffer(data, size); in DoSomethingInterestingWithMyAPI()
61 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
68 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
72 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
73 if (size == 0 || size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
77 char* ch = (char *)malloc(size + 1); in LLVMFuzzerTestOneInput()
82 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/dumpstate_fuzzer/
H A Ddumpstate_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
36 std::string args(data, size); in DoSomethingInterestingWithMyAPI()
37 std::string state(data, size); in DoSomethingInterestingWithMyAPI()
52 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
60 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
61 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
65 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
71 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/scheduleacceptwantdone_fuzzer/
H A Dscheduleacceptwantdone_fuzzer.cpp36 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
46 if (wantParcel.WriteBuffer(data, size)) { in DoSomethingInterestingWithMyAPI()
53 std::string flag(data, size); in DoSomethingInterestingWithMyAPI()
67 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
75 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
76 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
80 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
86 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/dumpsysstate_fuzzer/
H A Ddumpsysstate_fuzzer.cpp32 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
36 std::string args(data, size); in DoSomethingInterestingWithMyAPI()
37 std::string state(data, size); in DoSomethingInterestingWithMyAPI()
55 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
63 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
64 if (size > OHOS::FOO_MAX_LEN || size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
68 char* ch = (char*)malloc(size + 1); in LLVMFuzzerTestOneInput()
74 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplcopyfilestotempdir_fuzzer/
H A Dverifymanagerhostimplcopyfilestotempdir_fuzzer.cpp37 bool DoSomethingInterestingWithMyAPI(const char* data, size_t size) in DoSomethingInterestingWithMyAPI() argument
40 std::string bundleName(data, size); in DoSomethingInterestingWithMyAPI()
42 std::vector<std::string> abcPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI()
49 extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) in LLVMFuzzerTestOneInput() argument
56 if (size < OHOS::U32_AT_SIZE) { in LLVMFuzzerTestOneInput()
60 /* Validate the length of size */ in LLVMFuzzerTestOneInput()
61 if (size > OHOS::FOO_MAX_LEN) { in LLVMFuzzerTestOneInput()
65 char* ch = static_cast<char*>(malloc(size + 1)); in LLVMFuzzerTestOneInput()
70 (void)memset_s(ch, size + 1, 0x00, size in LLVMFuzzerTestOneInput()
[all...]

Completed in 11 milliseconds

1...<<21222324252627282930>>...1252