Home
last modified time | relevance | path

Searched refs:new_buf (Results 1 – 18 of 18) sorted by relevance

/external/chromium_org/third_party/boringssl/src/crypto/buf/
Dbuf.c90 char *new_buf; in buf_mem_grow() local
118 new_buf = OPENSSL_malloc(alloc_size); in buf_mem_grow()
121 new_buf = OPENSSL_realloc_clean(buf->data, buf->max, alloc_size); in buf_mem_grow()
123 new_buf = OPENSSL_realloc(buf->data, alloc_size); in buf_mem_grow()
127 if (new_buf == NULL) { in buf_mem_grow()
131 buf->data = new_buf; in buf_mem_grow()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_tgsi.c63 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/chromium_org/third_party/mesa/src/src/gallium/drivers/svga/
Dsvga_tgsi.c63 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/chromium_org/third_party/ots/include/
Dots-memory-stream.h73 uint8_t* new_buf = new uint8_t[new_length]; in WriteRaw() local
74 std::memcpy(new_buf, ptr_, length_); in WriteRaw()
77 ptr_ = new_buf; in WriteRaw()
/external/webp/src/utils/
Dbit_writer.c27 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/chromium_org/third_party/libwebp/utils/
Dbit_writer.c27 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/pdfium/core/src/fpdfapi/fpdf_parser/
Dfpdf_parser_decode.cpp314 FX_LPBYTE new_buf = NULL; in PDF_DataDecode() local
325 … = FPDFAPI_FlateOrLZWDecode(FALSE, last_buf, last_size, pParam, estimated_size, new_buf, new_size); in PDF_DataDecode()
328 …t = FPDFAPI_FlateOrLZWDecode(TRUE, last_buf, last_size, pParam, estimated_size, new_buf, new_size); in PDF_DataDecode()
330 offset = _A85Decode(last_buf, last_size, new_buf, new_size); in PDF_DataDecode()
332 offset = _HexDecode(last_buf, last_size, new_buf, new_size); in PDF_DataDecode()
341 offset = RunLengthDecode(last_buf, last_size, new_buf, new_size); in PDF_DataDecode()
362 last_buf = new_buf; in PDF_DataDecode()
/external/chromium_org/third_party/boringssl/src/crypto/err/
Derr.c528 char *new_buf; in err_add_error_vdata() local
537 new_buf = OPENSSL_realloc(buf, alloced + 1); in err_add_error_vdata()
538 if (new_buf == NULL) { in err_add_error_vdata()
542 buf = new_buf; in err_add_error_vdata()
/external/libsepol/src/
Dservices.c180 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()
757 char *p, **new_buf = r_buf; in constraint_expr_eval_reason() local
781 *new_buf = realloc(*r_buf, new_buf_len); in constraint_expr_eval_reason()
782 if (!new_buf) { in constraint_expr_eval_reason()
786 **r_buf = **new_buf; in constraint_expr_eval_reason()
/external/webp/src/dec/
Didec.c180 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/chromium_org/third_party/libwebp/dec/
Didec.c180 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/chromium_org/url/
Durl_canon.h158 T* new_buf = new T[sz]; in Resize() local
159 memcpy(new_buf, this->buffer_, in Resize()
163 this->buffer_ = new_buf; in Resize()
/external/qemu/android/camera/
Dcamera-service.c144 char* new_buf = (char*)realloc(*str_buf, required_mem); in _append_string() local
145 if (new_buf == NULL) { in _append_string()
150 *str_buf = new_buf; in _append_string()
/external/libvpx/libvpx/
Dvpxdec.c196 uint8_t *new_buf = realloc(*buffer, 2 * frame_size); in raw_read_frame() local
197 if (new_buf) { in raw_read_frame()
198 *buffer = new_buf; in raw_read_frame()
/external/chromium_org/third_party/libvpx/source/libvpx/
Dvpxdec.c233 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/bluetooth/bluedroid/bta/av/
Dbta_av_aact.c2196 BOOLEAN new_buf = FALSE; in bta_av_data_path() local
2217 new_buf = TRUE; in bta_av_data_path()
2256 if(new_buf) in bta_av_data_path()
/external/chromium_org/third_party/libxml/src/
Dparser.c4510 xmlChar *new_buf; in xmlParseCommentComplex() local
4512 new_buf = (xmlChar *) xmlRealloc(buf, size * sizeof(xmlChar)); in xmlParseCommentComplex()
4513 if (new_buf == NULL) { in xmlParseCommentComplex()
4518 buf = new_buf; in xmlParseCommentComplex()
4650 xmlChar *new_buf; in xmlParseComment() local
4652 new_buf = (xmlChar *) xmlRealloc(buf, in xmlParseComment()
4654 if (new_buf == NULL) { in xmlParseComment()
4660 buf = new_buf; in xmlParseComment()
/external/libxml2/
Dparser.c4804 xmlChar *new_buf; in xmlParseCommentComplex() local
4808 new_buf = (xmlChar *) xmlRealloc(buf, new_size); in xmlParseCommentComplex()
4809 if (new_buf == NULL) { in xmlParseCommentComplex()
4814 buf = new_buf; in xmlParseCommentComplex()
4948 xmlChar *new_buf; in xmlParseComment() local
4950 new_buf = (xmlChar *) xmlRealloc(buf, in xmlParseComment()
4952 if (new_buf == NULL) { in xmlParseComment()
4958 buf = new_buf; in xmlParseComment()