Home
last modified time | relevance | path

Searched refs:old_len (Results 1 – 24 of 24) sorted by relevance

/third_party/openssl/crypto/
Dmem.c268 void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num, in CRYPTO_clear_realloc() argument
277 CRYPTO_clear_free(str, old_len, file, line); in CRYPTO_clear_realloc()
282 if (num < old_len) { in CRYPTO_clear_realloc()
283 OPENSSL_cleanse((char*)str + num, old_len - num); in CRYPTO_clear_realloc()
289 memcpy(ret, str, old_len); in CRYPTO_clear_realloc()
290 CRYPTO_clear_free(str, old_len, file, line); in CRYPTO_clear_realloc()
/third_party/flutter/skia/third_party/externals/wuffs/fuzz/c/fuzzlib/
Dfuzzlib.c206 size_t old_len = relative_cwd.len; in visit() local
208 size_t new_len = old_len + strlen(filename); in visit()
218 memcpy(relative_cwd.buf + old_len, filename, filename_len); in visit()
228 relative_cwd.buf[old_len] = '\x00'; in visit()
229 relative_cwd.len = old_len; in visit()
/third_party/musl/src/mman/
Dmremap.c12 void *__mremap(void *old_addr, size_t old_len, size_t new_len, int flags, ...) in __mremap() argument
29 return (void *)syscall(SYS_mremap, old_addr, old_len, new_len, flags, new_addr); in __mremap()
/third_party/skia/third_party/externals/microhttpd/src/examples/
Ddemo.c438 size_t old_len; in do_append() local
441 old_len = 0; in do_append()
443 old_len = strlen (*ret); in do_append()
444 buf = malloc (old_len + size + 1); in do_append()
447 memcpy (buf, *ret, old_len); in do_append()
450 memcpy (&buf[old_len], data, size); in do_append()
451 buf[old_len + size] = '\0'; in do_append()
Ddemo_https.c439 size_t old_len; in do_append() local
442 old_len = 0; in do_append()
444 old_len = strlen (*ret); in do_append()
445 buf = malloc (old_len + size + 1); in do_append()
448 memcpy (buf, *ret, old_len); in do_append()
451 memcpy (&buf[old_len], data, size); in do_append()
452 buf[old_len + size] = '\0'; in do_append()
/third_party/mbedtls/tests/suites/
Dtest_suite_asn1write.function391 void store_named_data_val_found( int old_len, int new_len )
400 if( old_len != 0 )
402 ASSERT_ALLOC( nd.val.p, (size_t) old_len );
404 nd.val.len = old_len;
405 memset( old_val, 'x', old_len );
423 else if( new_len == old_len )
/third_party/boost/tools/build/src/engine/
Dexecunix.cpp409 int const old_len = cmdtab[ i ].buf_size[ s ] - 1; in read_descriptor() local
410 int const new_len = old_len + ret + 1; in read_descriptor()
413 memcpy( cmdtab[ i ].buffer[ s ], tmp, old_len ); in read_descriptor()
414 memcpy( cmdtab[ i ].buffer[ s ] + old_len, buffer, ret + 1 ); in read_descriptor()
/third_party/libsoup/libsoup/
Dsoup-message-io.c216 gssize nread, old_len; in read_headers() local
221 old_len = io->read_header_buf->len; in read_headers()
222 g_byte_array_set_size (io->read_header_buf, old_len + RESPONSE_BLOCK_SIZE); in read_headers()
224 io->read_header_buf->data + old_len, in read_headers()
229 io->read_header_buf->len = old_len + MAX (nread, 0); in read_headers()
242 if (nread == 1 && old_len >= 2 && in read_headers()
248 } else if (nread == 2 && old_len >= 3 && in read_headers()
/third_party/ffmpeg/libavformat/
Dsubtitles.c119 int old_len; in ff_subtitles_queue_insert() local
121 old_len = sub->size; in ff_subtitles_queue_insert()
124 memcpy(sub->data + old_len, event, len); in ff_subtitles_queue_insert()
/third_party/flatbuffers/rust/flatbuffers/src/
Dbuilder.rs617 let old_len = self.owned_buf.len(); in grow_owned_buf() localVariable
618 let new_len = max(1, old_len * 2); in grow_owned_buf()
622 let diff = new_len - old_len; in grow_owned_buf()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-var-gvar-table.hh57 unsigned int old_len = length; in extend() local
58 resize (old_len + a.length); in extend()
60 (*this)[old_len + i] = a[i]; in extend()
Dhb-coretext.cc1006 unsigned int old_len = buffer->len; in _hb_coretext_shape() local
1032 buffer->reverse_range (old_len, buffer->len); in _hb_coretext_shape()
/third_party/harfbuzz/src/
Dhb-ot-var-gvar-table.hh57 unsigned int old_len = length; in extend() local
58 resize (old_len + a.length); in extend()
60 (*this)[old_len + i] = a[i]; in extend()
Dhb-coretext.cc968 unsigned int old_len = buffer->len; in _hb_coretext_shape() local
994 buffer->reverse_range (old_len, buffer->len); in _hb_coretext_shape()
/third_party/libnl/lib/route/qdisc/
Dnetem.c220 int old_len; in netem_msg_fill_raw() local
332 old_len = head->nla_len; in netem_msg_fill_raw()
334 msg->nm_nlh->nlmsg_len += (head->nla_len - old_len); in netem_msg_fill_raw()
/third_party/alsa-lib/src/pcm/
Dpcm_file.c152 int old_len, new_len, err; in snd_pcm_file_replace_fname() local
157 old_len = new_len = strlen(fname); in snd_pcm_file_replace_fname()
158 old_last_ch = fname + old_len - 1; in snd_pcm_file_replace_fname()
/third_party/ffmpeg/libavfilter/
Davf_showspectrum.c96 int old_len; member
1377 memset(s->outpicref->data[0] + outlink->w / 2 - 4 * s->old_len + in plot_spectrum_column()
1378 … (outlink->h - s->start_y / 2 - 20 + y) * s->outpicref->linesize[0], 0, 10 * s->old_len); in plot_spectrum_column()
1385 for (y = 0; y < 10 * s->old_len; y++) { in plot_spectrum_column()
1387 … (outlink->h / 2 - 4 * s->old_len + y) * s->outpicref->linesize[0], 0, 10); in plot_spectrum_column()
1394 s->old_len = strlen(units); in plot_spectrum_column()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_output.c12445 uint16_t len, old_len, i; local
12452 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
12506 ch->chunk_length = htons(len + old_len);
12507 chk->book_size = len + old_len;
12519 uint16_t len, old_len, i; local
12524 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
12547 ch->chunk_length = htons(len + old_len);
12548 chk->book_size = len + old_len;
12559 uint16_t len, old_len; local
12564 old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
[all …]
/third_party/openssl/doc/man3/
DOPENSSL_malloc.pod39 void *OPENSSL_clear_realloc(void *p, size_t old_len, size_t num)
53 void *CRYPTO_clear_realloc(void *p, size_t old_len, size_t num,
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c3345 int old_len, n; in lws_chunked_html_process() local
3349 old_len = args->len; in lws_chunked_html_process()
3352 while (sp < args->p + old_len) { in lws_chunked_html_process()
3389 (unsigned int)(old_len - (sp - args->p) - 1)); in lws_chunked_html_process()
3390 old_len += (n - s->pos) + 1; in lws_chunked_html_process()
/third_party/flutter/skia/third_party/externals/harfbuzz/src/
Dhb-coretext.cc925 unsigned int old_len = buffer->len; in _hb_coretext_shape() local
951 buffer->reverse_range (old_len, buffer->len); in _hb_coretext_shape()
/third_party/mesa3d/src/egl/main/
Deglapi.c566 const size_t old_len = strlen(disp->ClientAPIsString); \ in _eglCreateAPIsString()
569 if (old_len + add_len <= max_len) \ in _eglCreateAPIsString()
/third_party/python/Lib/test/
Dtest_functools.py1407 old_len = builtins.len
1413 builtins.len = old_len
/third_party/quickjs/
Dquickjs.c8208 uint32_t old_len = p->u.array.count; in set_array_length() local
8209 if (len < old_len) { in set_array_length()
8210 for(i = len; i < old_len; i++) { in set_array_length()