malloc 79 core/action_stack.c stack = (action_stack_t*)malloc(sizeof(action_stack_t)); malloc 88 core/chdk-dir.c myDIR_s *dir = malloc( sizeof(myDIR_s) ); malloc 263 core/gps.c bitmap = (char*) malloc (sizeof(char)*bitmap_size); malloc 342 core/gui.c props = (int *)malloc(NUM_PROPS*sizeof(int)); malloc 736 core/gui.c CMenuItem *submenu = malloc((mcnt+2) * sizeof(CMenuItem)); malloc 761 core/gui.c nm = malloc(strlen(modName)+1); malloc 766 core/gui.c nm = malloc(strlen(de->d_name)+1); malloc 849 core/gui.c partitions_enum=malloc((strlen(vBuf)+1)*sizeof(char)); malloc 59 core/gui_script.c sc_param *p = malloc(sizeof(sc_param)); malloc 74 core/gui_script.c p->name = malloc(strlen(name)+1); malloc 163 core/gui_script.c p->desc = malloc(l+1); malloc 198 core/gui_script.c p->desc = malloc(l+1); malloc 294 core/gui_script.c p->option_buf = malloc(len+1); malloc 306 core/gui_script.c p->options = malloc(cnt * sizeof(char*)); malloc 351 core/gui_script.c p->desc = malloc(s-ptr); malloc 874 core/gui_script.c script_submenu_items = malloc(n * sizeof(CMenuItem)); malloc 64 core/gui_user_menu.c conf.user_menu_vars.items[i].script_file = malloc(CONF_STR_LEN); malloc 71 core/gui_user_menu.c conf.user_menu_vars.items[i].script_title = malloc(CONF_STR_LEN); malloc 101 core/gui_user_menu.c conf.user_menu_vars.items = malloc(num_items * sizeof(tUserMenuItem)); malloc 28 core/lib_thumb.c DIR *dir = malloc(sizeof(DIR)); malloc 298 core/lib_thumb.c palbackup = malloc(256*4); // 256 entries, 4 bytes each malloc 102 core/ptp.c rs->buf = malloc(rs->buf_size); malloc 216 core/ptp.c sb->buf=malloc(buf_size); malloc 361 core/ptp.c msg = malloc(sizeof(ptp_script_msg) + datasize); malloc 550 core/ptp.c unsigned *buf = malloc(s); malloc 603 core/ptp.c temp_data.str = (char *) malloc(temp_data_extra); malloc 649 core/ptp.c fn = malloc(fn_len+1); malloc 693 core/ptp.c fn = (char *) malloc(temp_data_extra+1); malloc 771 core/ptp.c buf = (char *) malloc(s); malloc 417 core/raw.c pixel=malloc(sizeof(struct point)); malloc 1216 core/shooting.c min_av96_zoom_point_tbl = (short *) malloc(zoom_points * sizeof(short)); malloc 22 include/std/stdlib.h extern void *malloc(long size); malloc 63 lib/font/rbf_font.c font *f = malloc(sizeof(font)); malloc 112 lib/font/rbf_font.c f->cTable = malloc(f->charCount*f->hdr.charSize); malloc 45 lib/lang/fileutil.c buf = malloc(ssize+add0); malloc 40 lib/lang/lang.c strings = malloc(num*sizeof(short)); malloc 102 lib/lang/lang.c pstrtmp = malloc(count*sizeof(char*)); malloc 152 lib/lang/lang.c langbuf = malloc(langbufneed); malloc 675 lib/lua/lauxlib.c void* res = malloc( nsize ); malloc 7 modules/bitvector.c bit_vector_t* bm = (bit_vector_t*)malloc(sizeof(bit_vector_t)); malloc 14 modules/bitvector.c bm->ptr = malloc(bm->ptrLen); malloc 85 modules/curves.c curve_data=malloc(size); malloc 602 modules/dng.c dng_header_buf = malloc(raw_offset); malloc 608 modules/dng.c dng_header_buf = malloc(raw_offset + DNG_TH_BYTES); malloc 803 modules/dng.c buf=malloc(BUF_SIZE); malloc 1032 modules/dng.c ptr=malloc(filesize); malloc 73 modules/edgeoverlay.c smbuf = (unsigned char*)malloc(viewport_byte_width*3); malloc 379 modules/file_shelter.c path = malloc(strlen(parent) + strlen(name) + 2); malloc 172 modules/games/gui_sokoban.c buf=malloc(len+1); malloc 299 modules/games/gui_sokoban.c buf=malloc(st.st_size+1); malloc 386 modules/games/gui_tetris.c StcGame *game = (StcGame *) malloc(sizeof(StcGame)); malloc 212 modules/gui_bench.c benchbuf = malloc(0x10000); malloc 187 modules/gui_fselect.c fitem *p = malloc(sizeof(fitem) + strlen(name)); malloc 256 modules/gui_fselect.c fitem **sbuf = malloc(list->count*sizeof(fitem*)); malloc 529 modules/gui_fselect.c path = malloc(strlen(parent) + strlen(name) + 2); malloc 964 modules/gui_fselect.c char *path = malloc(strlen(folder) + strlen(de.de->d_name) + 2); malloc 54 modules/gui_grid.c gline* p = malloc(sizeof(gline)); malloc 86 modules/histogram.c histogram_proc[0] = malloc(5 * 256 * sizeof(unsigned short)); malloc 655 modules/luascript.c buf = malloc(size); malloc 868 modules/luascript.c char *buf = malloc(size); malloc 1631 modules/luascript.c unsigned short *h = malloc(256*sizeof(short)); malloc 2228 modules/luascript.c argbuf=malloc(n_args * 4); malloc 2280 modules/luascript.c argbuf=malloc(n_args * 4); malloc 2385 modules/luascript.c configVal.pInt = malloc(configVal.numb*sizeof(int)); malloc 45 modules/module_exportlist.c malloc malloc 470 modules/module_load.c *flat_buf = (flat_hdr*)malloc(size+bss_size); malloc 81 modules/raw_merge.c unsigned char *bacc = malloc(camera_sensor.raw_rowlen); malloc 82 modules/raw_merge.c unsigned char *bsub = malloc(camera_sensor.raw_rowlen); malloc 299 modules/raw_merge.c row = malloc(camera_sensor.raw_rowpix*sizeof(unsigned short)); malloc 302 modules/raw_merge.c rawrow = malloc(camera_sensor.raw_rowlen); malloc 569 modules/rawhookops.c h->data = malloc(entries*sizeof(unsigned)); malloc 257 modules/user_menu_edit.c conf.user_menu_vars.items[i-1].script_file = malloc(CONF_STR_LEN); malloc 260 modules/user_menu_edit.c conf.user_menu_vars.items[i-1].script_title = malloc(CONF_STR_LEN); malloc 148 modules/zebra.c buf = malloc(buffer_size); malloc 161 modules/zebra.c cur_buf_top = malloc(camera_screen.buffer_width * ZFIX_TOP); malloc 162 modules/zebra.c cur_buf_bot = malloc(camera_screen.buffer_width * ZFIX_BOTTOM); malloc 39 tools/capdis.c lst = (struct llist *) malloc(sizeof(struct llist)); malloc 72 tools/capdis.c node = (struct lnode *) malloc (sizeof (struct lnode)); malloc 147 tools/capdis.c struct llist **addr_hash = malloc(ADDR_HASH_BUCKETS*sizeof(struct llist *)); malloc 154 tools/chdk_dasm.c lst = (struct llist *) malloc(sizeof(struct llist)); malloc 187 tools/chdk_dasm.c node = (struct lnode *) malloc (sizeof (struct lnode)); malloc 466 tools/code_gen.c p->name = malloc(strlen(nm)+1); malloc 479 tools/code_gen.c p->comment = malloc(strlen(s)+1); malloc 490 tools/code_gen.c op *p = malloc(sizeof(op)); malloc 494 tools/code_gen.c p->source = malloc(strlen(last_line)+1); malloc 1155 tools/code_gen.c char *def = malloc(len+1); malloc 1168 tools/code_gen.c fw = malloc(sizeof(firmware)); malloc 50 tools/dancingbits.c ewavr = malloc(GHOST); malloc 105 tools/dumpchk.c buf=malloc(size); malloc 162 tools/dumpchk.c buf = malloc(sigsize); malloc 103 tools/dumputil.c if ((p = malloc(st.st_size)) == NULL ) { malloc 188 tools/elf2flt/elfflt.c flag_sym_display = malloc( num_syms); malloc 519 tools/elf2flt/elfflt.c bss.address = (char *)malloc(bss.size); malloc 523 tools/elf2flt/elfflt.c data.address = (char *)malloc(data.size); malloc 527 tools/elf2flt/elfflt.c text.address = (char *)malloc(text.size); malloc 531 tools/elf2flt/elfflt.c rodata.address = (char *)malloc(rodata.size); malloc 569 tools/elf2flt/elfflt.c flat_buf=malloc( flatmainsize+flatrelocsize ); malloc 575 tools/elf2flt/elfflt.c flat_import_buf=malloc( flatrelocsize* sizeof(import_record_t)/sizeof(reloc_record_t) ); malloc 672 tools/elf2flt/elfflt.c uint32_t *new_import_buf = malloc(flat_import_count*3*sizeof(uint32_t)); malloc 32 tools/elf2flt/myio.c filebuf=malloc(filesize); malloc 110 tools/elf2flt/myio.c import_buf=malloc(importfilesize+1); malloc 229 tools/elf2flt/myio.c stoplist_buf=malloc(stoplistfilesize+1); malloc 281 tools/elf2flt/myio.c stoplisthead = malloc (sizeof(struct StopListRecord)); malloc 72 tools/extract_event_procedures.c char *dump = malloc(DUMP_SIZE); malloc 7616 tools/finsig_dryos.c s = malloc(strlen(n) + strlen(suffix) + 1); malloc 7651 tools/finsig_dryos.c char *s = malloc(strlen(n) + 3); malloc 7945 tools/finsig_dryos.c char *nm = malloc(strlen(s)+6); malloc 8005 tools/finsig_dryos.c char *buf=malloc(64); malloc 804 tools/finsig_thumb2.c s = malloc(strlen(n) + strlen(suffix) + 1); malloc 865 tools/finsig_thumb2.c char *buf=malloc(strlen(name)+7); malloc 3349 tools/finsig_thumb2.c misc_blob_t *blobs=malloc((MISC_BLOB_XTENSA_MAX + 1)*sizeof(misc_blob_t)); malloc 3483 tools/finsig_thumb2.c misc_blob_t *blobs=malloc(3*sizeof(misc_blob_t)); malloc 5635 tools/finsig_thumb2.c char *buf=malloc(strlen(name)+6); malloc 5792 tools/finsig_thumb2.c char *buf=malloc(64); malloc 5808 tools/finsig_thumb2.c char *buf=malloc(64); malloc 5756 tools/finsig_vxworks.c s = malloc(strlen(n) + strlen(suffix) + 1); malloc 5786 tools/finsig_vxworks.c char *s = malloc(strlen(n) + 3); malloc 5990 tools/finsig_vxworks.c char *nm = malloc(strlen(s)+6); malloc 6043 tools/finsig_vxworks.c char *buf=malloc(64); malloc 55 tools/firmware_load.c BufRange *n = malloc(sizeof(BufRange)); malloc 956 tools/firmware_load.c fw->buf = malloc((fw->size+32)*4); malloc 15 tools/firmware_load_ng.c BufRange *n = malloc(sizeof(BufRange)); malloc 954 tools/firmware_load_ng.c iter_state_t *is=(iter_state_t *)malloc(sizeof(iter_state_t)); malloc 2257 tools/firmware_load_ng.c fw->buf8 = malloc(fw->size8); malloc 169 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall void * malloc(int size); malloc 239 tools/makeexport.c buf = (char*)malloc(size+1); malloc 59 tools/makelang.c langfile = malloc( sizeof(char*)*(num_lines+1) ); malloc 194 tools/makelang.c buf = malloc(size+1); malloc 232 tools/makelang.c lang_conditions = malloc(sizeof(char*) * (GUI_LANG_ITEMS+1)); malloc 260 tools/makelang.c lang_conditions[i] = malloc(strlen(cond)+1); malloc 162 tools/packfi2/fi2enc.c upkbuf = (unsigned char*)malloc( flen ); // allocate buffer for data file malloc 173 tools/packfi2/fi2enc.c buf = (unsigned char*)malloc( i ); // allocate buffer for compressed block + blocksize malloc 207 tools/packfi2/fi2enc.c buf = (unsigned char*)malloc( i ); // allocate buffer for encrypted header malloc 295 tools/packfi2/zutil.c extern voidp malloc OF((uInt size)); malloc 306 tools/packfi2/zutil.c return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : malloc 253 tools/pakwif.c p = malloc(sizeof(pak_t)); malloc 307 tools/rawconvert.c in_data=malloc(st.st_size); malloc 325 tools/rawconvert.c out_data=malloc(osize); malloc 19 tools/stubs_load.c stub_values *p = malloc(sizeof(stub_values)); malloc 77 tools/stubs_load.c osig *p = malloc(sizeof(osig)); malloc 80 tools/ubasic_test/run-ubasic.c program = (char *) malloc(sz+3); malloc 145 tools/yuvconvert.c in_data=malloc(isize); malloc 161 tools/yuvconvert.c py_data = y_data=malloc(npixels); malloc 163 tools/yuvconvert.c pu_data = u_data=malloc(npixels/4); malloc 165 tools/yuvconvert.c pv_data = v_data=malloc(npixels/4); malloc 208 tools/yuvconvert.c out_data=malloc(osize);