/external/boringssl/src/crypto/buf/ |
D | buf.c | 92 char *new_buf; in buf_mem_grow() local 120 new_buf = OPENSSL_malloc(alloc_size); in buf_mem_grow() 123 new_buf = OPENSSL_realloc_clean(buf->data, buf->max, alloc_size); in buf_mem_grow() 125 new_buf = OPENSSL_realloc(buf->data, alloc_size); in buf_mem_grow() 129 if (new_buf == NULL) { in buf_mem_grow() 133 buf->data = new_buf; in buf_mem_grow()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_tgsi.c | 63 char *new_buf; in svga_shader_expand() local 67 new_buf = REALLOC(emit->buf, emit->size, newsize); in svga_shader_expand() 69 new_buf = NULL; in svga_shader_expand() 71 if (new_buf == NULL) { in svga_shader_expand() 79 emit->ptr = new_buf + (emit->ptr - emit->buf); in svga_shader_expand() 80 emit->buf = new_buf; in svga_shader_expand()
|
/external/marisa-trie/lib/marisa/ |
D | vector-inline.h | 201 T * const new_buf = reinterpret_cast<T *>( in realloc() local 203 MARISA_THROW_IF(new_buf == NULL, MARISA_MEMORY_ERROR); in realloc() 205 new (&new_buf[i]) T(buf_[i]); in realloc() 209 buf_ = new_buf; in realloc() 210 objs_ = new_buf; in realloc()
|
/external/webp/src/utils/ |
D | bit_writer.c | 27 uint8_t* new_buf; in BitWriterResize() local 40 new_buf = (uint8_t*)WebPSafeMalloc(1ULL, new_size); in BitWriterResize() 41 if (new_buf == NULL) { in BitWriterResize() 47 memcpy(new_buf, bw->buf_, bw->pos_); in BitWriterResize() 50 bw->buf_ = new_buf; in BitWriterResize()
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
D | vector-inline.h | 201 T * const new_buf = reinterpret_cast<T *>( in realloc() local 203 MARISA_ALPHA_THROW_IF(new_buf == NULL, MARISA_ALPHA_MEMORY_ERROR); in realloc() 205 new (&new_buf[i]) T(buf_[i]); in realloc() 209 buf_ = new_buf; in realloc() 210 objs_ = new_buf; in realloc()
|
/external/pdfium/core/src/fpdfapi/fpdf_parser/ |
D | fpdf_parser_decode.cpp | 304 FX_LPBYTE new_buf = NULL; in PDF_DataDecode() local 315 … = FPDFAPI_FlateOrLZWDecode(FALSE, last_buf, last_size, pParam, estimated_size, new_buf, new_size); in PDF_DataDecode() 318 …t = FPDFAPI_FlateOrLZWDecode(TRUE, last_buf, last_size, pParam, estimated_size, new_buf, new_size); in PDF_DataDecode() 320 offset = _A85Decode(last_buf, last_size, new_buf, new_size); in PDF_DataDecode() 322 offset = _HexDecode(last_buf, last_size, new_buf, new_size); in PDF_DataDecode() 331 offset = RunLengthDecode(last_buf, last_size, new_buf, new_size); in PDF_DataDecode() 352 last_buf = new_buf; in PDF_DataDecode()
|
/external/boringssl/src/crypto/err/ |
D | err.c | 700 char *new_buf; in err_add_error_vdata() local 709 new_buf = OPENSSL_realloc(buf, alloced + 1); in err_add_error_vdata() 710 if (new_buf == NULL) { in err_add_error_vdata() 714 buf = new_buf; in err_add_error_vdata()
|
/external/boringssl/src/crypto/bio/ |
D | bio.c | 514 uint8_t *new_buf = OPENSSL_realloc(*out, len); in bio_read_all() local 515 if (new_buf == NULL) { in bio_read_all() 519 *out = new_buf; in bio_read_all()
|
/external/selinux/libsepol/src/ |
D | services.c | 180 char *p, *new_buf = e_buf; in cat_expr_buf() local 187 new_buf = realloc(e_buf, new_buf_len); in cat_expr_buf() 188 if (!new_buf) { in cat_expr_buf() 193 expr_list[expr_counter] = new_buf; in cat_expr_buf() 194 e_buf = new_buf; in cat_expr_buf() 769 char *p, **new_buf = r_buf; in constraint_expr_eval_reason() local 793 *new_buf = realloc(*r_buf, new_buf_len); in constraint_expr_eval_reason() 794 if (!new_buf) { in constraint_expr_eval_reason() 798 **r_buf = **new_buf; in constraint_expr_eval_reason()
|
/external/webp/src/dec/ |
D | idec.c | 180 uint8_t* const new_buf = in AppendToMemBuffer() local 181 (uint8_t*)WebPSafeMalloc(extra_size, sizeof(*new_buf)); in AppendToMemBuffer() 182 if (new_buf == NULL) return 0; in AppendToMemBuffer() 183 memcpy(new_buf, old_base, current_size); in AppendToMemBuffer() 185 mem->buf_ = new_buf; in AppendToMemBuffer()
|
/external/libvpx/libvpx/ |
D | vpxdec.c | 233 uint8_t *new_buf = realloc(*buffer, 2 * frame_size); in raw_read_frame() local 234 if (new_buf) { in raw_read_frame() 235 *buffer = new_buf; in raw_read_frame()
|
/external/libxml2/ |
D | parser.c | 4859 xmlChar *new_buf; in xmlParseCommentComplex() local 4863 new_buf = (xmlChar *) xmlRealloc(buf, new_size); in xmlParseCommentComplex() 4864 if (new_buf == NULL) { in xmlParseCommentComplex() 4869 buf = new_buf; in xmlParseCommentComplex() 5003 xmlChar *new_buf; in xmlParseComment() local 5005 new_buf = (xmlChar *) xmlRealloc(buf, in xmlParseComment() 5007 if (new_buf == NULL) { in xmlParseComment() 5013 buf = new_buf; in xmlParseComment()
|