Home
last modified time | relevance | path

Searched refs:remaining_bytes (Results 1 – 25 of 74) sorted by relevance

123

/aosp12/system/media/audio_utils/fuzz/audioutilsfiforeaderwriter_fuzzer/
H A Daudioutilsfiforeaderwriter_fuzzer.cpp32 size_t maxNumberFrames = provider.remaining_bytes() / frameSize; in LLVMFuzzerTestOneInput()
54 while (provider.remaining_bytes() > 4) { in LLVMFuzzerTestOneInput()
60 size_t maxFramesLeft = provider.remaining_bytes() / frameSize; in LLVMFuzzerTestOneInput()
87 if (provider.remaining_bytes() >= 4) { in LLVMFuzzerTestOneInput()
/aosp12/frameworks/av/services/mediametrics/fuzzer/
H A Dmediametrics_service_fuzzer.cpp55 while (fdp.remaining_bytes()) { in invokeStartsWith()
65 while (fdp.remaining_bytes()) { in invokeInstantiate()
84 while (fdp.remaining_bytes()) { in invokePackageInstallerCheck()
94 while (fdp.remaining_bytes()) { in invokeItemManipulation()
97 if (fdp.remaining_bytes() < 1 || key.length() < 1) { in invokeItemManipulation()
208 while (fdp.remaining_bytes()) { in invokeItemExpansion()
296 while (fdp.remaining_bytes()) { in invokeAnalyticsAction()
308 while (fdp2.remaining_bytes()) { in invokeAnalyticsAction()
327 while (fdp.remaining_bytes()) { in invokeAudioAnalytics()
347 while (fdp.remaining_bytes()) { in invokeTimedAction()
/aosp12/frameworks/native/libs/binder/tests/unit_fuzzers/
H A DStatusFuzz.cpp33 std::string message_str = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
38 fdp.ConsumeIntegralInRange<size_t>(0, fdp.remaining_bytes() - 1)); in LLVMFuzzerTestOneInput()
42 while (fdp.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
H A DTextOutputFuzz.cpp36 while (fdp.remaining_bytes() > 1) { in LLVMFuzzerTestOneInput()
40 fdp.ConsumeIntegralInRange<size_t>(0, fdp.remaining_bytes())); in LLVMFuzzerTestOneInput()
45 std::string str = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
H A DStatusFuzzFunctions.h46 fdp->ConsumeRandomLengthString(fdp->remaining_bytes());
52 fdp->ConsumeRandomLengthString(fdp->remaining_bytes());
59 fdp->ConsumeRandomLengthString(fdp->remaining_bytes());
73 fdp->ConsumeRandomLengthString(fdp->remaining_bytes());
H A DMemoryDealerFuzz.cpp37 std::string name = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
44 while (fdp.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
58 std::string randString = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
H A DPersistableBundleFuzz.cpp29 while (fdp.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
30 String16 key(fdp.ConsumeRandomLengthString(fdp.remaining_bytes()).c_str()); in LLVMFuzzerTestOneInput()
H A DBufferedTextOutputFuzz.cpp50 while (fdp.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
57 std::string txt = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
H A DStabilityFuzz.cpp28 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
/aosp12/system/libziparchive/
H A Dlibziparchive_writer_fuzzer.cpp22 if (provider.remaining_bytes() == 0) { in LLVMFuzzerTestOneInput()
28 if (provider.remaining_bytes() == 0) { in LLVMFuzzerTestOneInput()
32 0, provider.remaining_bytes()); in LLVMFuzzerTestOneInput()
/aosp12/frameworks/av/media/libstagefright/tests/fuzzers/
H A DStagefrightMediaScannerFuzzer.cpp42 while (fdp.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
45 std::string path = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
47 fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
H A DFrameDecoderFuzzer.cpp34 std::string name = fdp.ConsumeRandomLengthString(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
48 while (fdp.remaining_bytes()) { in LLVMFuzzerTestOneInput()
H A DMediaMuxerFuzzer.cpp32 while (fdp->remaining_bytes() > 0 && count > 0) { in createMessage()
57 while (fdp.remaining_bytes() > 1) { in LLVMFuzzerTestOneInput()
/aosp12/frameworks/native/libs/binder/tests/parcel_fuzzer/
H A Drandom_parcel.cpp36 while (provider.remaining_bytes() > 0) { in fillRandomParcel()
41 provider.ConsumeIntegralInRange<size_t>(0, provider.remaining_bytes()); in fillRandomParcel()
79 std::vector<uint8_t> data = provider.ConsumeBytes<uint8_t>(provider.remaining_bytes()); in fillRandomParcelData()
/aosp12/system/core/fs_mgr/libfiemap/
H A Dsplit_fiemap_writer.cpp95 uint64_t remaining_bytes = file_size; in Create() local
96 while (remaining_bytes) { in Create()
104 uint64_t chunk_size = std::min(max_piece_size, remaining_bytes); in Create()
118 remaining_bytes = remaining_bytes > writer->size() ? (remaining_bytes - writer->size()) : 0; in Create()
/aosp12/packages/modules/adb/
H A Dsysdeps_win32_test.cpp118 std::vector<char> remaining_bytes; in TestParseCompleteUTF8() local
120 &remaining_bytes); in TestParseCompleteUTF8()
122 EXPECT_EQ(expected_remaining_bytes, remaining_bytes); in TestParseCompleteUTF8()
/aosp12/frameworks/native/libs/vr/libpdx/fuzz/
H A Dservice_dispatcher_fuzzer.cpp56 while (fdp.remaining_bytes() > sizeof(MessageInfo)) { in LLVMFuzzerTestOneInput()
63 while (fdp.remaining_bytes() > sizeof(MessageInfo)) { in LLVMFuzzerTestOneInput()
H A Dmessage_fuzzer.cpp55 if (fdp.remaining_bytes() >= 32) { in LLVMFuzzerTestOneInput()
147 if (fdp.remaining_bytes() >= iovec_size + 1) { in LLVMFuzzerTestOneInput()
151 fdp.ConsumeBytes<uint8_t>(fdp.remaining_bytes()); in LLVMFuzzerTestOneInput()
/aosp12/system/extras/partition_tools/
H A Dlpunpack.cc266 uint64_t remaining_bytes = extent.num_sectors * LP_SECTOR_SIZE; in WriteExtent() local
267 while (remaining_bytes) { in WriteExtent()
268 if (remaining_bytes < block_size_) { in WriteExtent()
279 remaining_bytes -= block_size_; in WriteExtent()
/aosp12/system/bt/gd/l2cap/fuzz/
H A Dfuzz_l2cap.cc88 while (fdp.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
94 …t<uint16_t>(std::min(static_cast<size_t>(fdp.ConsumeIntegral<uint16_t>()), fdp.remaining_bytes())); in LLVMFuzzerTestOneInput()
/aosp12/system/bt/stack/test/fuzzers/a2dp/codec/
H A Dfuzz_a2dp_codec.cc26 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
H A Dfuzz_a2dp_codec_config.cc26 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
H A Dfuzz_a2dp_codec_info.cc26 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
/aosp12/system/bt/stack/test/fuzzers/a2dp/
H A Dfuzz_a2dp.cc30 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()
/aosp12/system/bt/stack/test/fuzzers/sdp/
H A Dfuzz_sdp.cc28 while (dataProvider.remaining_bytes() > 0) { in LLVMFuzzerTestOneInput()

123