/external/boringssl/src/crypto/buf/ |
H A D | buf.c | 92 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 D | svga_tgsi.c | 63 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 D | bsdiff.cc | 53 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 D | bspatch.cc | 91 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 D | bit_writer.c | 28 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 D | bit_writer.c | 27 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 D | bio.c | 518 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 D | err.c | 661 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 D | fpdf_parser_decode.cpp | 358 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 D | idec.c | 174 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 D | fx_codec_flate.cpp | 669 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 D | idec.c | 184 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 D | vpxdec.c | 233 uint8_t *new_buf = realloc(*buffer, 2 * frame_size); local 234 if (new_buf) { 235 *buffer = new_buf;
|
/external/selinux/libsepol/src/ |
H A D | services.c | 180 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 D | ss.c | 559 char *new_buf; local 601 new_buf = realloc(*buf, new_buf_len); 602 if (!new_buf) { 606 *buf = new_buf;
|
/external/libxml2/ |
H A D | parser.c | 4885 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;
|