Home
last modified time | relevance | path

Searched refs:Packets (Results 1 – 13 of 13) sorted by relevance

/system/nfc/src/fuzzers/rw/
Dmain.cc7 extern void Type1_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
8 extern void Type2_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
9 extern void Type3_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
10 extern void Type4_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
11 extern void Type5_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
12 extern void Mfc_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
14 extern void Type1_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets);
15 extern void Type2_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets);
16 extern void Type3_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets);
17 extern void Type4_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets);
[all …]
Dfuzz.h33 Fuzz_Context(uint8_t FuzzSubType, const std::vector<bytes_t>& Packets)
35 , Data(Packets)
Dt3t.cc291 void Type3_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets) { in Type3_FixPackets() argument
292 for (auto it = Packets.begin() + 1; it != Packets.end(); ++it) { in Type3_FixPackets()
315 void Type3_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets) { in Type3_Fuzz() argument
316 Fuzz_Context ctx(SubType % SUB_TYPE_MAX, Packets); in Type3_Fuzz()
/system/nfc/src/fuzzers/ce/
Dmain.cc7 extern void Type3_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
8 extern void Type4_FixPackets(uint8_t SubType, std::vector<bytes_t>& Packets);
10 extern void Type3_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets);
11 extern void Type4_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets);
13 void Fuzz_FixPackets(std::vector<bytes_t>& Packets, uint Seed) { in Fuzz_FixPackets() argument
14 if (Packets.size() < 2) { in Fuzz_FixPackets()
16 Packets.resize(2); in Fuzz_FixPackets()
19 auto& ctrl = Packets[0]; in Fuzz_FixPackets()
31 Type3_FixPackets(FuzzSubType, Packets); in Fuzz_FixPackets()
35 Type4_FixPackets(FuzzSubType, Packets); in Fuzz_FixPackets()
[all …]
Dt3t.cc121 void Type3_FixPackets(uint8_t /*SubType*/, std::vector<bytes_t>& Packets) { in Type3_FixPackets() argument
122 for (auto it = Packets.begin() + 1; it != Packets.end(); ++it) { in Type3_FixPackets()
137 void Type3_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets) { in Type3_Fuzz() argument
138 Fuzz_Context ctx(SubType % SUB_TYPE_MAX, Packets); in Type3_Fuzz()
Dt4t.cc124 void Type4_FixPackets(uint8_t /*SubType*/, std::vector<bytes_t>& Packets) { in Type4_FixPackets() argument
128 for (auto it = Packets.begin() + 1; it != Packets.end(); ++it) { in Type4_FixPackets()
139 void Type4_Fuzz(uint8_t SubType, const std::vector<bytes_t>& Packets) { in Type4_Fuzz() argument
140 Fuzz_Context ctx(SubType % SUB_TYPE_MAX, Packets); in Type4_Fuzz()
/system/nfc/src/fuzzers/
Dfuzz_utils.cc41 static size_t PackPackets(const std::vector<bytes_t>& Packets, uint8_t* Data, in PackPackets() argument
45 for (auto it = Packets.cbegin(); MaxSize > 0 && it != Packets.cend(); ++it) { in PackPackets()
71 auto Packets = UnpackPackets(Data, Size); in LLVMFuzzerCustomMutator() local
73 if (odd < 10 || Packets.size() == 0) { in LLVMFuzzerCustomMutator()
76 if (Packets.size() > 0) { in LLVMFuzzerCustomMutator()
77 auto pos = (Seed >> 16) % Packets.size(); in LLVMFuzzerCustomMutator()
78 Packets.insert(Packets.begin() + pos, bytes_t(len)); in LLVMFuzzerCustomMutator()
80 Packets.push_back(bytes_t(len)); in LLVMFuzzerCustomMutator()
82 } else if (odd < 20 && Packets.size() > 1) { in LLVMFuzzerCustomMutator()
84 auto pos = (Seed >> 16) % Packets.size(); in LLVMFuzzerCustomMutator()
[all …]
/system/nfc/src/fuzzers/llcp/
Dllcp.cc90 void Fuzz_FixPackets(std::vector<bytes_t>& Packets, uint /*Seed*/) { in Fuzz_FixPackets() argument
91 for (auto it = Packets.begin(); it != Packets.end(); ++it) { in Fuzz_FixPackets()
98 void Fuzz_RunPackets(const std::vector<bytes_t>& Packets) { in Fuzz_RunPackets() argument
99 Fuzz_Context ctx(SUB_TYPE_DUMMY, Packets); in Fuzz_RunPackets()
/system/nfc/src/fuzzers/nci/
Dnci.cc81 void Fuzz_FixPackets(std::vector<bytes_t>& Packets, uint /*Seed*/) { in Fuzz_FixPackets() argument
82 for (auto it = Packets.begin(); it != Packets.end(); ++it) { in Fuzz_FixPackets()
90 void Fuzz_RunPackets(const std::vector<bytes_t>& Packets) { in Fuzz_RunPackets() argument
91 Fuzz_Context ctx(SUB_TYPE_DUMMY, Packets); in Fuzz_RunPackets()
/system/nfc/src/fuzzers/inc/
Dfuzz_cmn.h47 Fuzz_Context(uint8_t FuzzSubType, const std::vector<bytes_t>& Packets) in Fuzz_Context() argument
48 : SubType(FuzzSubType), Data(Packets) {} in Fuzz_Context()
67 extern void Fuzz_FixPackets(std::vector<bytes_t>& Packets, uint Seed);
68 extern void Fuzz_RunPackets(const std::vector<bytes_t>& Packets);
/system/nfc/src/fuzzers/ndef/
Dmain.cc43 void Fuzz_RunPackets(const std::vector<bytes_t>& Packets) { in Fuzz_RunPackets() argument
48 for (auto it = Packets.cbegin(); it != Packets.cend(); ++it) { in Fuzz_RunPackets()
/system/bt/gd/hci/
Dhci_packets.pdl66 // HCI ACL Packets
87 // HCI SCO Packets
104 // HCI Command Packets
653 // Packets for interfaces
667 // HCI Event Packets
4832 // HCI Event Packets
/system/core/fastboot/
DREADME.md366 ### Continuation Packets