Searched refs:buf2 (Results 1 – 5 of 5) sorted by relevance
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/ |
D | poc.c | 51 char buf1[10], buf2[10], buf3[10]; in udp_recv() local 61 memset(buf2, 0, sizeof(buf2)); in udp_recv() 69 iov[1].iov_base = buf2; in udp_recv() 70 iov[1].iov_len = sizeof(buf2); in udp_recv() 74 memset(buf2, 0, sizeof(buf2)); // buf2 is zeroed here. in udp_recv() 84 printf("%s\n", buf2); // If buf2 has contents OVERWRITE, a vuln has occured. in udp_recv()
|
/cts/tests/tests/net/native/dns/ |
D | NativeDnsAsyncTest.cpp | 133 uint8_t buf2[MAXPACKET] = {}; in TEST() local 135 ns_c_in, ns_t_a, nullptr, 0, nullptr, buf2, sizeof(buf2)); in TEST() 140 int fd2 = android_res_nsend(NETWORK_UNSPECIFIED, buf2, len2, 0); in TEST() 148 memset(buf2, 0, sizeof(buf2)); in TEST() 153 ns_c_in, ns_t_aaaa, nullptr, 0, nullptr, buf2, sizeof(buf2)); in TEST() 158 fd2 = android_res_nsend(NETWORK_UNSPECIFIED, buf2, len2, 0); in TEST()
|
/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.cpp | 178 uint8_t buf2[MAXPACKET] = {}; in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() local 179 int len2 = makeQuery(kHostname, ns_t_a, buf2, sizeof(buf2)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 184 int fd2 = android_res_nsend(handle, buf2, len2, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 194 memset(buf2, 0, sizeof(buf2)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 197 len2 = makeQuery(kHostname, ns_t_aaaa, buf2, sizeof(buf2)); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck() 202 fd2 = android_res_nsend(handle, buf2, len2, 0); in Java_android_net_cts_MultinetworkApiTest_runResNsendCheck()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | InstallUtilTest.java | 85 byte[] buf2 = new byte[64]; in assertSameResource() 88 int n2 = is2.read(buf2); in assertSameResource() 91 assertThat(buf1).isEqualTo(buf2); in assertSameResource()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecoderTest.java | 1044 ByteBuffer buf2 = ByteBuffer.allocate(1024*1024); in testDecodeFragmented() local 1056 int n2 = ex2.readSampleData(buf2, 0); in testDecodeFragmented() 1064 buf2.limit(n2); in testDecodeFragmented() 1066 buf2.rewind(); in testDecodeFragmented() 1071 n2, buf2.limit()); in testDecodeFragmented() 1073 assertEquals("buffer data did not match on track " + i, buf1, buf2); in testDecodeFragmented()
|