/PHP-8.2/main/ |
H A D | php_ini_builder.c | 27 memcpy(b->value, src, length); in php_ini_builder_prepend() 35 memcpy(b->value + b->length, name, name_length); in php_ini_builder_unquoted() 40 memcpy(b->value + b->length, value, value_length); in php_ini_builder_unquoted() 50 memcpy(b->value + b->length, name, name_length); in php_ini_builder_quoted() 56 memcpy(b->value + b->length, value, value_length); in php_ini_builder_quoted() 74 memcpy(b->value + b->length, arg, len); in php_ini_builder_define()
|
H A D | fopen_wrappers.c | 173 memcpy(path_tmp, buf, ret); 370 memcpy(user, path_info + 2, length); 419 memcpy(ZSTR_VAL(filename), PG(doc_root), length); 548 memcpy(trypath, ptr, end-ptr); 558 memcpy(trypath, ptr, len); 560 memcpy(trypath+len+1, filename, filename_length+1); 598 memcpy(trypath, exec_fname, exec_fname_length + 1); 682 memcpy(pathbuf, path, path_length); 792 memcpy(cwd, relative_to, relative_to_len+1U); 807 memcpy(real_path, filepath, copy_len); [all …]
|
/PHP-8.2/ext/sockets/ |
H A D | sockaddr_conv.c | 26 memcpy(&(sin6->sin6_addr.s6_addr), &(tmp.s6_addr), sizeof(struct in6_addr)); in php_set_inet6_addr() 52 …memcpy(&(sin6->sin6_addr.s6_addr), ((struct sockaddr_in6*)(addrinfo->ai_addr))->sin6_addr.s6_addr,… in php_set_inet6_addr() 112 memcpy(&(sin->sin_addr.s_addr), host_entry->h_addr_list[0], host_entry->h_length); 126 memcpy(ss, &t, sizeof t); 136 memcpy(ss, &t, sizeof t);
|
H A D | conversions.c | 378 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.2/ext/standard/ |
H A D | http.c | 98 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 D | crypt_sha256.c | 42 return (((char *)memcpy(dst, src, len)) + len); in __php_mempcpy() 227 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha256_finish_ctx() 253 memcpy(&ctx->buffer[left_over], buffer, add); in sha256_process_bytes() 260 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~63], ctx->buflen); in sha256_process_bytes() 278 sha256_process_block(memcpy(ctx->buffer, buffer, 64), 64, ctx); in sha256_process_bytes() 292 memcpy(&ctx->buffer[left_over], buffer, len); in sha256_process_bytes() 297 memcpy(ctx->buffer, &ctx->buffer[64], left_over); in sha256_process_bytes() 382 …key = copied_key = memcpy(tmp_key + __alignof__(uint32_t) - (uintptr_t)tmp_key % __alignof__(uint3… in php_sha256_crypt_r() 388 …memcpy(tmp_salt + __alignof__(uint32_t) - (uintptr_t)tmp_salt % __alignof__ (uint32_t), salt, salt… in php_sha256_crypt_r() 457 memcpy(cp, temp_result, cnt); in php_sha256_crypt_r() [all …]
|
H A D | var.c | 721 memcpy(res, "i:", 2); in php_var_serialize_long() 723 memcpy(res, s, l); in php_var_serialize_long() 734 memcpy(res, "s:", 2); in php_var_serialize_string() 736 memcpy(res, s, l); in php_var_serialize_string() 738 memcpy(res, ":\"", 2); in php_var_serialize_string() 740 memcpy(res, str, len); in php_var_serialize_string() 742 memcpy(res, "\";", 2); in php_var_serialize_string() 756 memcpy(res, "O:", 2); in php_var_serialize_class_name() 758 memcpy(res, s, l); in php_var_serialize_class_name() 760 memcpy(res, ":\"", 2); in php_var_serialize_class_name() [all …]
|
H A D | crypt_sha512.c | 254 memcpy(&ctx->buffer[bytes], fillbuf, pad); in sha512_finish_ctx() 280 memcpy(&ctx->buffer[left_over], buffer, add); in sha512_process_bytes() 288 memcpy(ctx->buffer, &ctx->buffer[(left_over + add) & ~127], in sha512_process_bytes() 308 sha512_process_block(memcpy(ctx->buffer, buffer, 128), 128, ctx); in sha512_process_bytes() 325 memcpy(&ctx->buffer[left_over], buffer, len); in sha512_process_bytes() 330 memcpy(ctx->buffer, &ctx->buffer[128], left_over); in sha512_process_bytes() 417 …memcpy(tmp_key + __alignof__(uint64_t) - (uintptr_t)tmp_key % __alignof__(uint64_t), key, key_len); in php_sha512_crypt_r() 422 …salt = copied_salt = memcpy(tmp_salt + __alignof__(uint64_t) - (uintptr_t)tmp_salt % __alignof__(u… in php_sha512_crypt_r() 492 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r() 511 memcpy(cp, temp_result, cnt); in php_sha512_crypt_r()
|
/PHP-8.2/ext/ffi/tests/ |
H A D | gh7867.phpt | 10 FFI::memcpy($value, implode('', range('a', 'z')), 26); 15 FFI::memcpy($slice, $value, 4); 20 FFI::memcpy($slice, $value + 4, 4);
|
H A D | 009.phpt | 2 FFI 009: memcpy(), memcmp(), memset() and sizeof() 14 FFI::memcpy($b, $a, FFI::sizeof($a));
|
/PHP-8.2/ext/pcre/pcre2lib/ |
H A D | pcre2_serialize.c | 113 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.2/ext/date/lib/ |
H A D | parse_tz.c | 107 memcpy(tz->location.country_code, *tzf, 2); in read_php_preamble() 170 memcpy(&buffer, *tzf, sizeof(buffer)); in read_32bit_header() 208 memcpy(buffer, *tzf, sizeof(int64_t) * tz->bit64.timecnt); in read_64bit_transitions() 223 memcpy(cbuffer, *tzf, sizeof(unsigned char) * tz->bit64.timecnt); in read_64bit_transitions() 277 memcpy(tz->timezone_abbr, *tzf, sizeof(char) * tz->bit64.charcnt); in read_64bit_types() 371 memcpy(tz->posix_string, begin, *tzf - begin); in read_posix_string() 399 memcpy(tz->timezone_abbr + old_length, abbr, strlen(abbr)); in add_abbr() 451 memcpy(&buffer, *tzf, sizeof(buffer)); in read_location() 460 memcpy(tz->location.comments, *tzf, comments_len); in read_location() 643 memcpy(&buffer, *tzf, sizeof(buffer)); in read_64bit_header() [all …]
|
/PHP-8.2/Zend/ |
H A D | zend_virtual_cwd.c | 275 memcpy(retval, state->cwd, *length); in virtual_getcwd_ex() 311 memcpy(buf, cwd, length+1); in virtual_getcwd() 622 memcpy(tmp, path, len+1); in tsrm_realpath_r() 868 memcpy(path, tmp, i-1); in tsrm_realpath_r() 904 memcpy(tmp, path, len+1); in tsrm_realpath_r() 925 memcpy(path, tmp, i-1); in tsrm_realpath_r() 973 memcpy(path+j, tmp_path, i+1); in tsrm_realpath_r() 978 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r() 987 memcpy(path+j, tmp+i, len-i+1); in tsrm_realpath_r() 1233 memcpy(temp, path, length); in virtual_chdir_file() [all …]
|
H A D | zend_vm_trace_handlers.h | 37 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.2/sapi/phpdbg/ |
H A D | phpdbg_parser.y | 98 memcpy(&$$.file.name[0], $1.str, $1.len); 99 memcpy(&$$.file.name[$1.len], $2.str, $2.len); 108 memcpy(&$$.file.name[0], $1.str, $1.len); 109 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
|
H A D | phpdbg_io.c | 30 memcpy(buf, PHPDBG_G(input_buffer), bytes); in ZEND_EXTERN_MODULE_GLOBALS() 53 memcpy(PHPDBG_G(input_buffer), buf + i + 1, PHPDBG_G(input_buflen)); in ZEND_EXTERN_MODULE_GLOBALS()
|
/PHP-8.2/ext/bcmath/libbcmath/src/ |
H A D | div.c | 56 memcpy (result, num, size); in _one_mult() 106 memcpy (qval->n_value, n1->n_value, in bc_divide() 127 memcpy (num1+1, n1->n_value, n1->n_len+n1->n_scale); in bc_divide() 131 memcpy (num2, n2->n_value, len2); in bc_divide()
|
/PHP-8.2/main/streams/ |
H A D | filter.c | 82 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.2/ext/mysqlnd/ |
H A D | mysqlnd_portability.h | 158 #define floatget(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float)) 252 #define float4get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(float)) 289 #define float8get(V,M) memcpy((char*) &(V),(char*) (M), sizeof(double)) 290 #define float8store(T,V) memcpy((char*) (T),(char*) &(V), sizeof(double)) 292 #define float8get(V,M) memcpy((char*) &(V),(char*) (M),sizeof(double)) 293 #define float8store(T,V) memcpy((char*) (T),(char*) &(V),sizeof(double))
|
/PHP-8.2/win32/ |
H A D | registry.c | 55 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.2/ext/hash/ |
H A D | hash_murmur.c | 149 memcpy(©_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3CCopy() 150 memcpy(©_context->carry, &orig_context->carry, sizeof orig_context->carry); in PHP_MURMUR3CCopy() 221 memcpy(©_context->h, &orig_context->h, sizeof orig_context->h); in PHP_MURMUR3FCopy() 222 memcpy(©_context->carry, &orig_context->carry, sizeof orig_context->carry); in PHP_MURMUR3FCopy()
|
H A D | hash_tiger.c | 154 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 D | hash_gost.c | 211 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.2/ext/openssl/tests/ |
H A D | bug74651.phpt | 2 Bug #74651: negative-size-param (-1) in memcpy in zif_openssl_seal()
|
/PHP-8.2/sapi/fuzzer/ |
H A D | fuzzer-json.c | 35 memcpy(data, Data, Size); in LLVMFuzzerTestOneInput()
|