/external/oss-fuzz/projects/jbig2dec/ |
D | jbig2_fuzzer.cc | 34 static void *jbig2_fuzzer_reached_limit(size_t oldsize, size_t size) in jbig2_fuzzer_reached_limit() argument 36 if (oldsize == 0) in jbig2_fuzzer_reached_limit() 39 …e reallocation: %zu -> %zu: limit reached\n", MAX_ALLOCATION / MBYTE, used / MBYTE, oldsize, size); in jbig2_fuzzer_reached_limit() 83 size_t oldsize; in jbig2_fuzzer_realloc() local 99 memcpy(&oldsize, old, sizeof(oldsize)); in jbig2_fuzzer_realloc() 101 if (size + ALIGNMENT > MAX_ALLOCATION - used + oldsize + ALIGNMENT) in jbig2_fuzzer_realloc() 102 return jbig2_fuzzer_reached_limit(oldsize + ALIGNMENT, size + ALIGNMENT); in jbig2_fuzzer_realloc() 108 used -= oldsize + ALIGNMENT; in jbig2_fuzzer_realloc()
|
/external/oss-fuzz/projects/mupdf/ |
D | pdf_fuzzer.cc | 34 static void *fz_limit_reached_ossfuzz(size_t oldsize, size_t size) in fz_limit_reached_ossfuzz() argument 36 if (oldsize == 0) in fz_limit_reached_ossfuzz() 39 …e reallocation: %zu -> %zu: limit reached\n", MAX_ALLOCATION / MBYTE, used / MBYTE, oldsize, size); in fz_limit_reached_ossfuzz() 83 size_t oldsize; in fz_realloc_ossfuzz() local 99 memcpy(&oldsize, old, sizeof(oldsize)); in fz_realloc_ossfuzz() 101 if (size + ALIGNMENT > MAX_ALLOCATION - used + oldsize + ALIGNMENT) in fz_realloc_ossfuzz() 102 return fz_limit_reached_ossfuzz(oldsize + ALIGNMENT, size + ALIGNMENT); in fz_realloc_ossfuzz() 108 used -= oldsize + ALIGNMENT; in fz_realloc_ossfuzz()
|
/external/bsdiff/ |
D | bsdiff.cc | 49 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument 53 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, &patch, in bsdiff() 57 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument 60 return bsdiff(old_buf, oldsize, new_buf, newsize, 0, patch, in bsdiff() 64 int bsdiff(const uint8_t* old_buf, size_t oldsize, const uint8_t* new_buf, in bsdiff() argument 82 local_sai = CreateSuffixArrayIndex(old_buf, oldsize); in bsdiff() 93 DiffEncoder diff_encoder(patch, old_buf, oldsize, new_buf, newsize); in bsdiff() 117 for(;scsc<scan+len && scsc+lastoffset<oldsize;scsc++) in bsdiff() 124 if((scan+lastoffset<oldsize) && in bsdiff() 142 for(i=0;(lastscan+i<scan)&&(lastpos+i<oldsize);) { in bsdiff()
|
D | bsdiff_main.cc | 63 size_t oldsize; in GenerateBsdiffFromFiles() local 64 uint8_t* old_buf = static_cast<uint8_t*>(MapFile(old_filename, &oldsize)); in GenerateBsdiffFromFiles() 72 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles() 93 int ret = bsdiff::bsdiff(old_buf, oldsize, new_buf, newsize, in GenerateBsdiffFromFiles() 96 munmap(old_buf, oldsize); in GenerateBsdiffFromFiles()
|
/external/icu/icu4c/source/tools/tzcode/ |
D | ialloc.c | 14 register int oldsize, newsize; in icatalloc() local 18 oldsize = 0; in icatalloc() 21 else oldsize = strlen(old); in icatalloc() 22 if ((result = realloc(old, oldsize + newsize + 1)) != NULL) in icatalloc() 24 (void) strcpy(result + oldsize, new); in icatalloc()
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | jemalloc_internal_inlines_c.h | 135 iralloct_realign(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, in iralloct_realign() argument 166 copysize = (size < oldsize) ? size : oldsize; in iralloct_realign() 168 isdalloct(tsdn, ptr, oldsize, tcache, NULL, true); in iralloct_realign() 173 iralloct(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, size_t alignment, in iralloct() argument 186 return iralloct_realign(tsdn, ptr, oldsize, size, 0, alignment, in iralloct() 190 return arena_ralloc(tsdn, arena, ptr, oldsize, size, alignment, zero, in iralloct() 195 iralloc(tsd_t *tsd, void *ptr, size_t oldsize, size_t size, size_t alignment, in iralloc() argument 197 return iralloct(tsd_tsdn(tsd), ptr, oldsize, size, alignment, zero, in iralloc() 202 ixalloc(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, size_t extra, in ixalloc() argument 215 return arena_ralloc_no_move(tsdn, ptr, oldsize, size, extra, zero); in ixalloc()
|
D | arena_externs.h | 36 extent_t *extent, size_t oldsize); 38 extent_t *extent, size_t oldsize); 65 bool arena_ralloc_no_move(tsdn_t *tsdn, void *ptr, size_t oldsize, size_t size, 67 void *arena_ralloc(tsdn_t *tsdn, arena_t *arena, void *ptr, size_t oldsize,
|
/external/python/pybind11/tools/ |
D | libsize.py | 26 oldsize = int(sf.readline()) variable 28 if oldsize > 0: 29 change = libsize - oldsize 33 print(" (change of {:+} bytes = {:+.2%})".format(change, change / oldsize))
|
/external/dtc/tests/ |
D | open_pack.c | 23 int oldsize, bufsize, packsize; in main() local 32 oldsize = fdt_totalsize(fdt); in main() 34 bufsize = oldsize * 2; in main() 56 oldsize, bufsize, packsize); in main()
|
D | del_property.c | 25 int oldsize, delsize, newsize; in main() local 32 oldsize = fdt_totalsize(fdt); in main() 71 oldsize, delsize, newsize); in main() 73 if (newsize >= oldsize) in main()
|
D | mangle-layout.c | 50 int align, size, oldsize; in add_block() local 80 oldsize = buf->size; in add_block() 81 offset = ALIGN(oldsize, align); in add_block() 83 memset(buf->buf + oldsize, 0, offset - oldsize); in add_block()
|
D | del_node.c | 24 int oldsize, delsize, newsize; in main() local 31 oldsize = fdt_totalsize(fdt); in main() 104 oldsize, delsize, newsize); in main() 106 if (newsize >= oldsize) in main()
|
/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/ |
D | upb.h | 81 typedef void *upb_alloc_func(upb_alloc *alloc, void *ptr, size_t oldsize, 93 UPB_INLINE void *upb_realloc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_realloc() argument 96 return alloc->func(alloc, ptr, oldsize, size); in upb_realloc() 117 UPB_INLINE void *upb_grealloc(void *ptr, size_t oldsize, size_t size) { in upb_grealloc() argument 118 return upb_realloc(&upb_alloc_global, ptr, oldsize, size); in upb_grealloc() 196 UPB_INLINE void *upb_arena_realloc(upb_arena *a, void *ptr, size_t oldsize, in upb_arena_realloc() argument 200 if (ret && oldsize > 0) { in upb_arena_realloc() 201 memcpy(ret, ptr, oldsize); in upb_arena_realloc()
|
D | upb.c | 58 static void *upb_global_allocfunc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_global_allocfunc() argument 61 UPB_UNUSED(oldsize); in upb_global_allocfunc() 136 static void *upb_arena_doalloc(upb_alloc *alloc, void *ptr, size_t oldsize, in upb_arena_doalloc() argument 139 return upb_arena_realloc(a, ptr, oldsize, size); in upb_arena_doalloc()
|
/external/bsdiff/include/bsdiff/ |
D | bsdiff.h | 23 size_t oldsize, 31 size_t oldsize, 47 size_t oldsize,
|
/external/ltp/testcases/kernel/mem/mtest07/ |
D | mallocstress.c | 71 size_t oldsize = 5; in allocate_free() local 95 newsize = size + oldsize; in allocate_free() 96 oldsize = size; in allocate_free()
|
/external/libtextclassifier/native/utils/base/ |
D | arena.cc | 487 char* UnsafeArena::Realloc(char* original, size_t oldsize, size_t newsize) { in AllocNewBlock() argument 488 assert(oldsize >= 0 && newsize >= 0); in AllocNewBlock() 495 if (newsize > oldsize) { in AllocNewBlock() 497 memcpy(resized, original, oldsize); in AllocNewBlock() 506 ASAN_POISON_MEMORY_REGION(original, oldsize); in AllocNewBlock()
|
/external/lua/src/ |
D | lmem.c | 113 size_t oldsize = cast_sizet((*size) * size_elem); in luaM_shrinkvector_() local 115 lua_assert(newsize <= oldsize); in luaM_shrinkvector_() 116 newblock = luaM_saferealloc_(L, block, oldsize, newsize); in luaM_shrinkvector_()
|
D | lmem.h | 80 LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, 82 LUAI_FUNC void *luaM_saferealloc_ (lua_State *L, void *block, size_t oldsize,
|
/external/mesa3d/src/util/ |
D | os_memory_aligned.h | 118 os_realloc_aligned(void *ptr, size_t oldsize, size_t newsize, size_t alignment) in os_realloc_aligned() argument 120 const size_t copySize = MIN2(oldsize, newsize); in os_realloc_aligned()
|
/external/flac/src/test_libFLAC/ |
D | matrix | 31 1 newsize==oldsize 32 newsize>oldsize 39 newsize<oldsize
|
/external/vboot_reference/firmware/2lib/ |
D | 2common.c | 92 uint32_t oldsize, in vb2_workbuf_realloc() argument 100 vb2_workbuf_free(wb, oldsize); in vb2_workbuf_realloc()
|
/external/python/cpython2/Objects/ |
D | tupleobject.c | 839 Py_ssize_t oldsize; in _PyTuple_Resize() local 849 oldsize = Py_SIZE(v); in _PyTuple_Resize() 850 if (oldsize == newsize) in _PyTuple_Resize() 853 if (oldsize == 0) { in _PyTuple_Resize() 868 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 879 if (newsize > oldsize) in _PyTuple_Resize() 880 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize() 881 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|
/external/f2fs-tools/fsck/ |
D | xattr.c | 213 int oldsize = ENTRY_SIZE(here); in f2fs_setxattr() local 216 last = (struct f2fs_xattr_entry *)((char *)last - oldsize); in f2fs_setxattr() 217 memset(last, 0, oldsize); in f2fs_setxattr()
|
/external/python/cpython3/Objects/ |
D | tupleobject.c | 957 Py_ssize_t oldsize; in _PyTuple_Resize() local 967 oldsize = Py_SIZE(v); in _PyTuple_Resize() 968 if (oldsize == newsize) in _PyTuple_Resize() 971 if (oldsize == 0) { in _PyTuple_Resize() 991 for (i = newsize; i < oldsize; i++) { in _PyTuple_Resize() 1002 if (newsize > oldsize) in _PyTuple_Resize() 1003 memset(&sv->ob_item[oldsize], 0, in _PyTuple_Resize() 1004 sizeof(*sv->ob_item) * (newsize - oldsize)); in _PyTuple_Resize()
|