Home
last modified time | relevance | path

Searched refs:memcpy (Results 1 – 25 of 308) sorted by relevance

12345678910>>...13

/PHP-8.0/ext/sockets/
H A Dsockaddr_conv.c26 memcpy(&(sin6->sin6_addr.s6_addr), &(tmp.s6_addr), sizeof(struct in6_addr)); in php_set_inet6_addr()
52memcpy(&(sin6->sin6_addr.s6_addr), ((struct sockaddr_in6*)(addrinfo->ai_addr))->sin6_addr.s6_addr,… in php_set_inet6_addr()
108 memcpy(&(sin->sin_addr.s_addr), host_entry->h_addr_list[0], host_entry->h_length); in php_set_inet_addr()
122 memcpy(ss, &t, sizeof t); in php_set_inet46_addr()
132 memcpy(ss, &t, sizeof t); in php_set_inet46_addr()
H A Dconversions.c378 memcpy(field, &ival, sizeof(ival)); in from_zval_write_int()
397 memcpy(field, &ival, sizeof(ival)); in from_zval_write_uint32()
416 memcpy(field, &ival, sizeof(ival)); in from_zval_write_net_uint16()
435 memcpy(field, &ival, sizeof(ival)); in from_zval_write_sa_family()
491 memcpy(&ival, data, sizeof(ival)); in to_zval_read_int()
498 memcpy(&ival, data, sizeof(ival)); in to_zval_read_net_uint16()
505 memcpy(&ival, data, sizeof(ival)); in to_zval_read_sa_family()
513 memcpy(&ival, data, sizeof(ival)); in to_zval_read_unsigned()
520 memcpy(&ival, data, sizeof(ival)); in to_zval_read_uint32()
529 memcpy(&ival, data, sizeof(ival)); in to_zval_read_pid_t()
[all …]
/PHP-8.0/ext/standard/
H A Dhttp.c98 memcpy(p, key_prefix, key_prefix_len); in php_url_encode_hash_ex()
102 memcpy(p, ZSTR_VAL(ekey), ZSTR_LEN(ekey)); in php_url_encode_hash_ex()
107 memcpy(p, key_suffix, key_suffix_len); in php_url_encode_hash_ex()
124 memcpy(p, key_prefix, key_prefix_len); in php_url_encode_hash_ex()
129 memcpy(p, num_prefix, num_prefix_len); in php_url_encode_hash_ex()
133 memcpy(p, ekey, ekey_len); in php_url_encode_hash_ex()
138 memcpy(p, key_suffix, key_suffix_len); in php_url_encode_hash_ex()
H A Dcrypt_sha256.c43 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy()
228 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha256_finish_ctx()
254 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes()
261 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes()
279 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes()
293 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes()
298 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes()
376 …key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (uintptr_t)tmp % __alignof__(uint32_t), k… in php_sha256_crypt_r()
382 memcpy(tmp + __alignof__(uint32_t) - (uintptr_t)tmp % __alignof__ (uint32_t), salt, salt_len); in php_sha256_crypt_r()
450 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r()
[all …]
H A Dcrypt_sha512.c255 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx()
281 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes()
289 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes()
309 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes()
326 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes()
331 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes()
411 memcpy(tmp + __alignof__(uint64_t) - (uintptr_t)tmp % __alignof__(uint64_t), key, key_len); in php_sha512_crypt_r()
416 …salt = copied_salt = memcpy(tmp + __alignof__(uint64_t) - (uintptr_t)tmp % __alignof__(uint64_t), … in php_sha512_crypt_r()
485 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
503 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
/PHP-8.0/ext/ffi/tests/
H A Dgh7867.phpt10 FFI::memcpy($value, implode('', range('a', 'z')), 26);
15 FFI::memcpy($slice, $value, 4);
20 FFI::memcpy($slice, $value + 4, 4);
H A D009.phpt2 FFI 009: memcpy(), memcmp(), memset() and sizeof()
14 FFI::memcpy($b, $a, FFI::sizeof($a));
/PHP-8.0/main/
H A Dfopen_wrappers.c173 memcpy(path_tmp, buf, ret);
379 memcpy(user, path_info + 2, length);
404 memcpy(filename, PG(doc_root), length);
534 memcpy(trypath, ptr, end-ptr);
544 memcpy(trypath, ptr, len);
546 memcpy(trypath+len+1, filename, filename_length+1);
584 memcpy(trypath, exec_fname, exec_fname_length + 1);
670 memcpy(pathbuf, path, path_length);
780 memcpy(cwd, relative_to, relative_to_len+1U);
795 memcpy(real_path, filepath, copy_len);
[all …]
/PHP-8.0/ext/pcre/pcre2lib/
H A Dpcre2_serialize.c113 memcpy(bytes, memctl, sizeof(pcre2_memctl)); in pcre2_serialize_encode()
124 memcpy(dst_bytes, tables, TABLES_LENGTH); in pcre2_serialize_encode()
130 (void)memcpy(dst_bytes, (char *)re, re->blocksize); in pcre2_serialize_encode()
195 memcpy(tables, src_bytes, TABLES_LENGTH); in pcre2_serialize_decode()
208 memcpy(&blocksize, src_bytes + offsetof(pcre2_real_code, blocksize), in pcre2_serialize_decode()
230 memcpy(((uint8_t *)dst_re) + sizeof(pcre2_memctl), in pcre2_serialize_decode()
/PHP-8.0/ext/date/lib/
H A Dparse_tz.c106 memcpy(tz->location.country_code, *tzf, 2); in read_php_preamble()
166 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header()
204 memcpy(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions()
219 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->bit64.timecnt); in read_64bit_transitions()
248 memcpy(buffer, *tzf, sizeof(unsigned char) * 6 * tz->bit64.typecnt); in read_64bit_types()
271 memcpy(tz->timezone_abbr, *tzf, sizeof(char) * tz->bit64.charcnt); in read_64bit_types()
369 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location()
378 memcpy(tz->location.comments, *tzf, comments_len); in read_location()
498 memcpy(&buffer, *tzf, sizeof(buffer)); in read_64bit_header()
616 memcpy(tmp->type, tz->type, tz->bit64.typecnt * sizeof(ttinfo)); in timelib_tzinfo_clone()
[all …]
H A Dinterval.c60 memcpy(&one_backup, one, sizeof(one_backup)); in timelib_diff()
61 memcpy(&two_backup, two, sizeof(two_backup)); in timelib_diff()
94 memcpy(one, &one_backup, sizeof(one_backup)); in timelib_diff()
95 memcpy(two, &two_backup, sizeof(two_backup)); in timelib_diff()
106 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_add()
/PHP-8.0/sapi/phpdbg/
H A Dphpdbg.h113 #ifdef memcpy
114 #define memcpy_tmp(...) memcpy(__VA_ARGS__)
115 #undef memcpy
116 #define memcpy(...) memcpy_tmp(__VA_ARGS__) macro
H A Dphpdbg_parser.y97 memcpy(&$$.file.name[0], $1.str, $1.len);
98 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
107 memcpy(&$$.file.name[0], $1.str, $1.len);
108 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
/PHP-8.0/Zend/
H A Dzend_virtual_cwd.c275 memcpy(retval, state->cwd, *length); in virtual_getcwd_ex()
311 memcpy(buf, cwd, length+1); in virtual_getcwd()
621 memcpy(tmp, path, len+1); in tsrm_realpath_r()
867 memcpy(path, tmp, i-1); in tsrm_realpath_r()
903 memcpy(tmp, path, len+1); in tsrm_realpath_r()
924 memcpy(path, tmp, i-1); in tsrm_realpath_r()
972 memcpy(path+j, tmp_path, i+1); in tsrm_realpath_r()
977 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r()
986 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r()
1226 memcpy(temp, path, length); in virtual_chdir_file()
[all …]
H A Dzend_vm_trace_handlers.h37 memcpy(buf, last, last_len); in zend_vm_trace()
39 memcpy(buf + last_len + 1, op, op_len + 1); in zend_vm_trace()
/PHP-8.0/ext/bcmath/libbcmath/src/
H A Ddiv.c60 memcpy (result, num, size);
110 memcpy (qval->n_value, n1->n_value, in bc_divide()
131 memcpy (num1+1, n1->n_value, n1->n_len+n1->n_scale); in bc_divide()
135 memcpy (num2, n2->n_value, len2); in bc_divide()
/PHP-8.0/main/streams/
H A Dfilter.c82 memcpy(bucket->buf, buf, buflen); in php_stream_bucket_new()
115 memcpy(retval, bucket, sizeof(*retval)); in php_stream_bucket_make_writeable()
118 memcpy(retval->buf, bucket->buf, retval->buflen); in php_stream_bucket_make_writeable()
135 memcpy((*left)->buf, in->buf, length); in php_stream_bucket_split()
142 memcpy((*right)->buf, in->buf + length, (*right)->buflen); in php_stream_bucket_split()
237 memcpy(wildname, filtername, n+1); in php_stream_filter_create()
372 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in php_stream_filter_append_ex()
454 memcpy(stream->readbuf, stream->readbuf + stream->readpos, stream->writepos - stream->readpos); in _php_stream_filter_flush()
463 memcpy(stream->readbuf + stream->writepos, bucket->buf, bucket->buflen); in _php_stream_filter_flush()
/PHP-8.0/ext/mysqlnd/
H A Dmysqlnd_portability.h169 #define floatget(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float))
263 #define float4get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float))
300 #define float8get(V,M) memcpy((char*) &(V),(char*) (M), sizeof(double))
301 #define float8store(T,V) memcpy((char*) (T),(char*) &(V), sizeof(double))
303 #define float8get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(double))
304 #define float8store(T,V) memcpy((char*) (T),(char*) &(V),sizeof(double))
/PHP-8.0/win32/
H A Dregistry.c55 memcpy(reg_key, *key_name, main_key_len); in OpenPhpRegistryKey()
56 memcpy(reg_key + main_key_len, sub_key, sub_key_len + 1); in OpenPhpRegistryKey()
148 memcpy(new_path, path, path_len); in LoadDirectory()
150 memcpy(new_path+path_len+1, name, name_len+1); in LoadDirectory()
154 memcpy(new_path, name, name_len+1); in LoadDirectory()
/PHP-8.0/ext/hash/
H A Dhash_tiger.c154 memcpy(&context->buffer[56], &context->passed, sizeof(uint64_t)); in TigerFinalize()
197 memcpy(&context->buffer[context->length], input, len); in PHP_TIGERUpdate()
204 memcpy(&context->buffer[context->length], input, i); in PHP_TIGERUpdate()
211 memcpy(context->buffer, &input[i], 64); in PHP_TIGERUpdate()
216 memcpy(context->buffer, &input[i], r); in PHP_TIGERUpdate()
H A Dhash_gost.c211 memcpy(u, context->state, sizeof(u)); in Gost()
212 memcpy(v, data, sizeof(v)); in Gost()
263 memcpy(&context->buffer[context->length], input, len); in PHP_GOSTUpdate()
270 memcpy(&context->buffer[context->length], input, i); in PHP_GOSTUpdate()
278 memcpy(context->buffer, input + i, r); in PHP_GOSTUpdate()
292 memcpy(l, context->count, sizeof(context->count)); in PHP_GOSTFinal()
294 memcpy(l, &context->state[8], sizeof(l)); in PHP_GOSTFinal()
/PHP-8.0/sapi/fuzzer/
H A Dfuzzer-json.c35 memcpy(data, Data, Size); in LLVMFuzzerTestOneInput()
H A Dfuzzer-unserialize.c34 memcpy(orig_data, Data, Size); in LLVMFuzzerTestOneInput()
H A Dfuzzer-mbstring.c35 memcpy(data, Data, Size); in LLVMFuzzerTestOneInput()
/PHP-8.0/ext/openssl/tests/
H A Dbug74651.phpt2 Bug #74651: negative-size-param (-1) in memcpy in zif_openssl_seal()

Completed in 70 milliseconds

12345678910>>...13