Searched defs:new_buf (Results 1 - 16 of 16) sorted by relevance

/external/boringssl/src/crypto/buf/
H A Dbuf.c92 char *new_buf; local
120 new_buf = OPENSSL_malloc(alloc_size);
123 new_buf = OPENSSL_realloc_clean(buf->data, buf->max, alloc_size);
125 new_buf = OPENSSL_realloc(buf->data, alloc_size);
129 if (new_buf == NULL) {
133 buf->data = new_buf;
/external/mesa3d/src/gallium/drivers/svga/
H A Dsvga_tgsi.c63 char *new_buf; local
67 new_buf = REALLOC(emit->buf, emit->size, newsize);
69 new_buf = NULL;
71 if (new_buf == NULL) {
79 emit->ptr = new_buf + (emit->ptr - emit->buf);
80 emit->buf = new_buf;
/external/bsdiff/
H A Dbsdiff.cc53 static off_t matchlen(u_char *old, off_t oldsize, u_char *new_buf, argument
58 if(old[i]!=new_buf[i]) break;
64 u_char *new_buf,off_t newsize,off_t st,off_t en,off_t *pos)
69 x=matchlen(old+I[st],oldsize-I[st],new_buf,newsize);
70 y=matchlen(old+I[en],oldsize-I[en],new_buf,newsize);
82 if(memcmp(old+I[x],new_buf,std::min(oldsize-I[x],newsize))<=0) {
83 return search(I,old,oldsize,new_buf,newsize,x,en,pos);
85 return search(I,old,oldsize,new_buf,newsize,st,x,pos);
110 u_char *old_buf,*new_buf; local
145 ((new_buf
63 search(saidx_t *I,u_char *old,off_t oldsize, u_char *new_buf,off_t newsize,off_t st,off_t en,off_t *pos) argument
[all...]
H A Dbspatch.cc91 u_char* new_buf; local
172 if ((new_buf = static_cast<u_char*>(malloc(newsize + 1))) == NULL)
198 lenread = BZ2_bzRead(&dbz2err, dpfbz2, new_buf + newpos, ctrl[0]);
225 // new_buf already has data from diff block, adds old data to it.
227 new_buf[j++] += old_buf[k];
240 lenread = BZ2_bzRead(&ebz2err, epfbz2, new_buf + newpos, ctrl[1]);
273 u_char* temp_new_buf = new_buf; // new_buf needed for free()
285 free(new_buf);
/external/opencv3/3rdparty/libwebp/utils/
H A Dbit_writer.c28 uint8_t* new_buf; local
41 new_buf = (uint8_t*)malloc(new_size);
42 if (new_buf == NULL) {
46 memcpy(new_buf, bw->buf_, bw->pos_);
48 bw->buf_ = new_buf;
/external/webp/src/utils/
H A Dbit_writer.c27 uint8_t* new_buf; local
40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size);
41 if (new_buf == NULL) {
47 memcpy(new_buf, bw->buf_, bw->pos_);
50 bw->buf_ = new_buf;
/external/boringssl/src/crypto/bio/
H A Dbio.c518 uint8_t *new_buf = OPENSSL_realloc(*out, len); local
519 if (new_buf == NULL) {
523 *out = new_buf;
/external/boringssl/src/crypto/err/
H A Derr.c661 char *new_buf; local
670 new_buf = OPENSSL_realloc(buf, alloced + 1);
671 if (new_buf == NULL) {
675 buf = new_buf;
/external/pdfium/core/src/fpdfapi/fpdf_parser/
H A Dfpdf_parser_decode.cpp358 uint8_t* new_buf = nullptr; local
370 estimated_size, new_buf, new_size);
373 estimated_size, new_buf, new_size);
375 offset = A85Decode(last_buf, last_size, new_buf, new_size);
377 offset = HexDecode(last_buf, last_size, new_buf, new_size);
386 offset = RunLengthDecode(last_buf, last_size, new_buf, new_size);
408 FX_Free(new_buf);
411 last_buf = new_buf;
/external/opencv3/3rdparty/libwebp/dec/
H A Didec.c174 uint8_t* const new_buf = local
175 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf));
176 if (new_buf == NULL) return 0;
177 memcpy(new_buf, old_base, current_size);
179 mem->buf_ = new_buf;
/external/pdfium/core/src/fxcodec/codec/
H A Dfx_codec_flate.cpp669 uint8_t* new_buf = local
671 guess_buf.reset(new_buf);
681 uint8_t* new_buf = local
683 guess_buf.reset(new_buf);
/external/webp/src/dec/
H A Didec.c184 uint8_t* const new_buf = local
185 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf));
186 if (new_buf == NULL) return 0;
187 memcpy(new_buf, old_base, current_size);
189 mem->buf_ = new_buf;
/external/libvpx/libvpx/
H A Dvpxdec.c233 uint8_t *new_buf = realloc(*buffer, 2 * frame_size); local
234 if (new_buf) {
235 *buffer = new_buf;
/external/selinux/libsepol/src/
H A Dservices.c180 char *p, *new_buf = e_buf; local
187 new_buf = realloc(e_buf, new_buf_len);
188 if (!new_buf) {
193 expr_list[expr_counter] = new_buf;
194 e_buf = new_buf;
769 char *p, **new_buf = r_buf; local
793 *new_buf = realloc(*r_buf, new_buf_len);
794 if (!new_buf) {
798 **r_buf = **new_buf;
/external/iproute2/misc/
H A Dss.c559 char *new_buf; local
601 new_buf = realloc(*buf, new_buf_len);
602 if (!new_buf) {
606 *buf = new_buf;
/external/libxml2/
H A Dparser.c4885 xmlChar *new_buf; local
4889 new_buf = (xmlChar *) xmlRealloc(buf, new_size);
4890 if (new_buf == NULL) {
4895 buf = new_buf;
5029 xmlChar *new_buf; local
5031 new_buf = (xmlChar *) xmlRealloc(buf,
5033 if (new_buf == NULL) {
5039 buf = new_buf;

Completed in 738 milliseconds