Home
last modified time | relevance | path

Searched refs:fdp (Results 1 – 25 of 64) sorted by relevance

123

/external/selinux/libselinux/fuzzers/
Dselinux_android_restorecon_fuzzer.cpp24 unsigned int GetFlags(FuzzedDataProvider &fdp) { in GetFlags() argument
26 if (fdp.ConsumeBool()) { in GetFlags()
29 if (fdp.ConsumeBool()) { in GetFlags()
32 if (fdp.ConsumeBool()) { in GetFlags()
35 if (fdp.ConsumeBool()) { in GetFlags()
38 if (fdp.ConsumeBool()) { in GetFlags()
41 if (fdp.ConsumeBool()) { in GetFlags()
44 if (fdp.ConsumeBool()) { in GetFlags()
47 if (fdp.ConsumeBool()) { in GetFlags()
51 if (fdp.ConsumeBool()) { in GetFlags()
[all …]
Dselinux_check_access_fuzzer.cpp24 std::string GetClass(FuzzedDataProvider &fdp) { in GetClass() argument
25 switch (fdp.ConsumeIntegralInRange(0, 9)) { in GetClass()
35 default: return fdp.ConsumeRandomLengthString(); in GetClass()
40 std::string GetPermission(FuzzedDataProvider &fdp) { in GetPermission() argument
41 switch (fdp.ConsumeIntegralInRange(0, 7)) { in GetPermission()
49 default: return fdp.ConsumeRandomLengthString(); in GetPermission()
54 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
56 std::string tclass = GetClass(fdp); in LLVMFuzzerTestOneInput()
57 std::string perm = GetPermission(fdp); in LLVMFuzzerTestOneInput()
58 std::string scon = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
[all …]
Dselabel_lookup_fuzzer.cpp25 selabel_handle *GetHandle(FuzzedDataProvider &fdp) { in GetHandle() argument
26 switch (fdp.ConsumeIntegralInRange(0, 4)) { in GetHandle()
37 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
39 std::string str = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
40 static auto handle = GetHandle(fdp); in LLVMFuzzerTestOneInput()
42 int type = fdp.ConsumeIntegral<int>(); in LLVMFuzzerTestOneInput()
DAndroidSetcontextFuzzer.cpp25 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
26 uid_t uid = fdp.ConsumeIntegral<int>(); in LLVMFuzzerTestOneInput()
27 bool isSystemServer = fdp.ConsumeBool(); in LLVMFuzzerTestOneInput()
28 std::string pkgname = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
29 std::string seinfo = fdp.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
Dlsetfilecon_fuzzer.cpp25 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
27 std::string path = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
28 std::string con = fdp.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
Dsetfilecon_fuzzer.cpp25 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
27 std::string path = fdp.ConsumeRandomLengthString(); in LLVMFuzzerTestOneInput()
28 std::string con = fdp.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
Dselinux_android_setcon_fuzzer.cpp25 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
27 std::string con = fdp.ConsumeRemainingBytesAsString(); in LLVMFuzzerTestOneInput()
/external/rust/crates/grpcio-sys/grpc/third_party/re2/re2/fuzzing/
Dre2_fuzzer.cc142 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
151 options.set_encoding(fdp.ConsumeBool() ? RE2::Options::EncodingLatin1 in LLVMFuzzerTestOneInput()
153 options.set_posix_syntax(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
154 options.set_longest_match(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
157 options.set_literal(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
158 options.set_never_nl(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
159 options.set_dot_nl(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
160 options.set_never_capture(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
161 options.set_case_sensitive(!fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
162 options.set_perl_classes(fdp.ConsumeBool()); in LLVMFuzzerTestOneInput()
[all …]
/external/python/cpython2/PC/
Dimport_nt.c34 struct filedescr *fdp = NULL; in PyWin_FindRegisteredModule() local
71 for (fdp = _PyImport_Filetab; fdp->suffix != NULL; fdp++) { in PyWin_FindRegisteredModule()
72 size_t extLen = strlen(fdp->suffix); in PyWin_FindRegisteredModule()
76 fdp->suffix, in PyWin_FindRegisteredModule()
80 if (fdp->suffix == NULL) in PyWin_FindRegisteredModule()
82 fp = fopen(pathBuf, fdp->mode); in PyWin_FindRegisteredModule()
84 *ppFileDesc = fdp; in PyWin_FindRegisteredModule()
/external/usrsctp/programs/
Dekr_server.c66 SOCKET *fdp; in handle_packets() local
68 int *fdp; in handle_packets()
75 fdp = (SOCKET *)arg; in handle_packets()
77 fdp = (int *)arg; in handle_packets()
83 length = recv(*fdp, buf, MAX_PACKET_SIZE, 0); in handle_packets()
89 usrsctp_conninput(fdp, buf, (size_t)length, 0); in handle_packets()
104 SOCKET *fdp; local
106 int *fdp; local
110 fdp = (SOCKET *)addr;
112 fdp = (int *)addr;
[all …]
Dekr_client.c65 SOCKET *fdp; in handle_packets() local
67 int *fdp; in handle_packets()
74 fdp = (SOCKET *)arg; in handle_packets()
76 fdp = (int *)arg; in handle_packets()
82 length = recv(*fdp, buf, MAX_PACKET_SIZE, 0); in handle_packets()
88 usrsctp_conninput(fdp, buf, (size_t)length, 0); in handle_packets()
103 SOCKET *fdp; local
105 int *fdp; local
109 fdp = (SOCKET *)addr;
111 fdp = (int *)addr;
[all …]
Dekr_peer.c66 SOCKET *fdp; in handle_packets() local
68 int *fdp; in handle_packets()
74 fdp = (SOCKET *)arg; in handle_packets()
76 fdp = (int *)arg; in handle_packets()
82 length = recv(*fdp, buf, MAX_PACKET_SIZE, 0); in handle_packets()
84 usrsctp_conninput(fdp, buf, (size_t)length, 0); in handle_packets()
98 SOCKET *fdp; local
100 int *fdp;
104 fdp = (SOCKET *)addr;
106 fdp = (int *)addr;
[all …]
Dekr_loop_offload.c65 SOCKET *fdp; in handle_packets() local
67 int *fdp; in handle_packets()
76 fdp = (SOCKET *)arg; in handle_packets()
78 fdp = (int *)arg; in handle_packets()
84 length = recv(*fdp, buffer, MAX_PACKET_SIZE, 0); in handle_packets()
97 usrsctp_conninput(fdp, buffer, (size_t)length, 0); in handle_packets()
120 SOCKET *fdp; local
122 int *fdp; local
126 fdp = (SOCKET *)addr;
128 fdp = (int *)addr;
[all …]
Dekr_loop.c66 SOCKET *fdp; in handle_packets() local
68 int *fdp; in handle_packets()
75 fdp = (SOCKET *)arg; in handle_packets()
77 fdp = (int *)arg; in handle_packets()
83 length = recv(*fdp, buf, MAX_PACKET_SIZE, 0); in handle_packets()
89 usrsctp_conninput(fdp, buf, (size_t)length, 0); in handle_packets()
104 SOCKET *fdp; local
106 int *fdp; local
110 fdp = (SOCKET *)addr;
112 fdp = (int *)addr;
[all …]
Dekr_loop_upcall.c67 SOCKET *fdp; in handle_packets() local
69 int *fdp; in handle_packets()
76 fdp = (SOCKET *)arg; in handle_packets()
78 fdp = (int *)arg; in handle_packets()
84 length = recv(*fdp, buf, MAX_PACKET_SIZE, 0); in handle_packets()
90 usrsctp_conninput(fdp, buf, (size_t)length, 0); in handle_packets()
105 SOCKET *fdp; local
107 int *fdp; local
111 fdp = (SOCKET *)addr;
113 fdp = (int *)addr;
[all …]
Dst_client.c226 SOCKET *fdp; local
228 int *fdp; local
232 fdp = (SOCKET *)addr;
234 fdp = (int *)addr;
241 if (send(*fdp, buf, (int)length, 0) == SOCKET_ERROR) {
244 if (send(*fdp, buf, length, 0) < 0) {
/external/elfutils/libdwfl/
Dopen.c126 libdw_open_elf (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok, in libdw_open_elf() argument
131 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); in libdw_open_elf()
134 Dwfl_Error error = what_kind (*fdp, &elf, &kind, &may_close_fd); in libdw_open_elf()
141 error = __libdw_image_header (*fdp, &offset, in libdw_open_elf()
163 error = what_kind (*fdp, &elf, &kind, &may_close_fd); in libdw_open_elf()
186 close (*fdp); in libdw_open_elf()
187 *fdp = -1; in libdw_open_elf()
195 __libdw_open_file (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok) in __libdw_open_file() argument
197 return libdw_open_elf (fdp, elfp, close_on_fail, archive_ok, false, false); in __libdw_open_file()
/external/tensorflow/tensorflow/security/fuzzing/
Dpython_fuzzing.py46 self.fdp = atheris.FuzzedDataProvider(input_bytes)
54 return self.fdp.ConsumeBool()
66 return self.fdp.ConsumeIntInRange(min_int, max_int)
78 return self.fdp.ConsumeFloatInRange(min_float, max_float)
97 return self.fdp.ConsumeIntListInRange(length, min_int, max_int)
110 return self.fdp.ConsumeFloatListInRange(length, _MIN_FLOAT, _MAX_FLOAT)
154 return self.fdp.ConsumeString(byte_count)
/external/zlib/contrib/tests/fuzzers/
Ddeflate_fuzzer.cc25 FuzzedDataProvider fdp(data, size); in LLVMFuzzerTestOneInput() local
26 int level = fdp.PickValueInArray({0, 1, 2, 3, 4, 5, 6, 7, 8, 9}); in LLVMFuzzerTestOneInput()
27 int windowBits = fdp.PickValueInArray({9, 10, 11, 12, 13, 14, 15}); in LLVMFuzzerTestOneInput()
28 int memLevel = fdp.PickValueInArray({1, 2, 3, 4, 5, 6, 7, 8, 9}); in LLVMFuzzerTestOneInput()
29 int strategy = fdp.PickValueInArray( in LLVMFuzzerTestOneInput()
31 std::vector<uint8_t> src = fdp.ConsumeRemainingBytes<uint8_t>(); in LLVMFuzzerTestOneInput()
/external/curl/docs/examples/
Dghiper.c236 SockInfo *fdp = g_malloc0(sizeof(SockInfo)); in addsock() local
238 fdp->global = g; in addsock()
239 fdp->ch = g_io_channel_unix_new(s); in addsock()
240 setsock(fdp, s, easy, action, g); in addsock()
241 curl_multi_assign(g->multi, s, fdp); in addsock()
248 SockInfo *fdp = (SockInfo*) sockp; in sock_cb() local
254 remsock(fdp); in sock_cb()
257 if(!fdp) { in sock_cb()
265 "Changing action from %d to %d\n", fdp->action, what); in sock_cb()
266 setsock(fdp, s, e, what, g); in sock_cb()
Danyauthput.c60 int *fdp = (int *)userp; in my_ioctl() local
61 int fd = *fdp; in my_ioctl()
86 int *fdp = (int *)stream; in read_callback() local
87 int fd = *fdp; in read_callback()
Dhiperfifo.c265 SockInfo *fdp = calloc(sizeof(SockInfo), 1); in addsock() local
267 fdp->global = g; in addsock()
268 setsock(fdp, s, easy, action, g); in addsock()
269 curl_multi_assign(g->multi, s, fdp); in addsock()
276 SockInfo *fdp = (SockInfo*) sockp; in sock_cb() local
283 remsock(fdp); in sock_cb()
286 if(!fdp) { in sock_cb()
293 whatstr[fdp->action], whatstr[what]); in sock_cb()
294 setsock(fdp, s, e, what, g); in sock_cb()
Devhiperfifo.c269 SockInfo *fdp = calloc(sizeof(SockInfo), 1); in addsock() local
271 fdp->global = g; in addsock()
272 setsock(fdp, s, easy, action, g); in addsock()
273 curl_multi_assign(g->multi, s, fdp); in addsock()
283 SockInfo *fdp = (SockInfo*) sockp; in sock_cb() local
290 remsock(fdp, g); in sock_cb()
293 if(!fdp) { in sock_cb()
300 whatstr[fdp->action], whatstr[what]); in sock_cb()
301 setsock(fdp, s, e, what, g); in sock_cb()
Dephiperfifo.c295 SockInfo *fdp = (SockInfo*)calloc(sizeof(SockInfo), 1); in addsock() local
297 fdp->global = g; in addsock()
298 setsock(fdp, s, easy, action, g); in addsock()
299 curl_multi_assign(g->multi, s, fdp); in addsock()
306 SockInfo *fdp = (SockInfo*) sockp; in sock_cb() local
313 remsock(fdp, g); in sock_cb()
316 if(!fdp) { in sock_cb()
323 whatstr[fdp->action], whatstr[what]); in sock_cb()
324 setsock(fdp, s, e, what, g); in sock_cb()
/external/python/cpython2/Python/
Dimport.c1174 struct filedescr *fdp; in load_package() local
1200 fdp = find_module(name, "__init__", path, buf, MAXPATHLEN+1, &fp, NULL); in load_package()
1201 if (fdp == NULL) { in load_package()
1210 m = load_module(name, fp, buf, fdp->type, NULL); in load_package()
1341 struct filedescr *fdp = NULL; in find_module() local
1439 fp = PyWin_FindRegisteredModule(name, &fdp, buf, buflen); in find_module()
1443 return fdp; in find_module()
1568 for (fdp = _PyImport_Filetab; fdp->suffix != NULL; fdp++) { in find_module()
1581 if (!strcmp(scan->suffix, fdp->suffix)) in find_module()
1594 strcpy(buf+len, fdp->suffix); in find_module()
[all …]

123