malloc 192 examples/libsmbclient/smbwrapper/smbw_dir.c buf = malloc(size); malloc 458 examples/libsmbclient/smbwrapper/wrapper.c internal = malloc(internal_count); malloc 784 examples/libsmbclient/smbwrapper/wrapper.c internal = malloc(sizeof(struct SMBW_dirent) * n); malloc 55 examples/libsmbclient/testbrowse2.c if ((array = malloc(count * sizeof(smbitem*))) == NULL){ malloc 124 examples/libsmbclient/testbrowse2.c if ((item = malloc(sizeof(smbitem) + strlen(dirent->name))) == NULL) malloc 135 examples/libsmbclient/tree.c struct tree_data *p = (struct tree_data *)malloc(sizeof(struct tree_data)); malloc 241 examples/nss/nss_winbind.c buf = malloc(bufsize); malloc 273 examples/nss/nss_winbind.c *sids = (char **)malloc(sizeof(char *) * (num_groups+1)); malloc 68 examples/printing/prtpub.c res = malloc(num*2*sizeof(DWORD)); malloc 159 examples/printing/prtpub.c strings_in = malloc(num_items * size); malloc 204 examples/printing/prtpub.c driver_info = malloc(needed); malloc 242 lib/nss_wrapper/nss_wrapper.c buf = (uint8_t *)malloc(nwrap->st.st_size + 1); malloc 663 lib/nss_wrapper/nss_wrapper.c gr->gr_mem = (char **)malloc(sizeof(char *)); malloc 26 lib/popt/findme.c buf = (char *)malloc(strlen(path) + strlen(argv0) + sizeof("/")); malloc 157 lib/popt/popt.c poptContext con = (poptContext)malloc(sizeof(*con)); malloc 192 lib/popt/popt.c char * t = (char *)malloc(strlen(name) + 1); malloc 292 lib/popt/popt.c { char *s = (char *)malloc((longName ? strlen(longName) : 0) + 3); malloc 381 lib/popt/popt.c argv = (const char **)malloc( malloc 579 lib/popt/popt.c te = t = (char *)malloc(tn);; malloc 974 lib/popt/popt.c { char *s = (char *)malloc( malloc 134 lib/popt/popthelp.c char * le = (char *)malloc(4*lineLength + 1); malloc 217 lib/popt/popthelp.c left = (char *)malloc(nb); malloc 245 lib/popt/popthelp.c char * t = (char *)malloc((help ? strlen(help) : 0) + malloc 30 lib/popt/poptparse.c dst = (char *)malloc(nb); malloc 62 lib/popt/poptparse.c const char ** argv = (const char **)malloc(sizeof(*argv) * argvAlloced); malloc 70 lib/popt/system.h #define xstrdup(_str) (strcpy((malloc(strlen(_str)+1) ? : vmefail()), (_str))) malloc 50 lib/replace/getaddrinfo.c #define SMB_MALLOC(s) malloc(s) malloc 71 lib/replace/repdir_getdents.c d = malloc(sizeof(*d)); malloc 73 lib/replace/repdir_getdirentries.c d = malloc(sizeof(*d)); malloc 180 lib/replace/replace.c if((grouplst = malloc(sizeof(gid_t) * max_gr)) == NULL) { malloc 294 lib/replace/replace.c ret = (char *)malloc(len); malloc 348 lib/replace/replace.c ret = malloc(n+1); malloc 544 lib/replace/replace.c p = malloc(l1+l2+2); malloc 1111 lib/replace/snprintf.c struct pr_chunk *new_c = (struct pr_chunk *)malloc(sizeof(struct pr_chunk)); malloc 1147 lib/replace/snprintf.c l = (struct pr_chunk_x *)malloc(sizeof(struct pr_chunk_x) * max); malloc 1171 lib/replace/snprintf.c c = (struct pr_chunk **)malloc(sizeof(struct pr_chunk *) * cnum); malloc 1269 lib/replace/snprintf.c (*ptr) = (char *)malloc(ret+1); malloc 1443 lib/replace/snprintf.c if ((buf3 = malloc(BUFSZ)) == NULL) { malloc 176 lib/socket_wrapper/socket_wrapper.c struct sockaddr *ret = (struct sockaddr *)malloc(len); malloc 926 lib/socket_wrapper/socket_wrapper.c base = (uint8_t *)malloc(alloc_len); malloc 1474 lib/socket_wrapper/socket_wrapper.c my_addr = (struct sockaddr *)malloc(my_addrlen); malloc 1499 lib/socket_wrapper/socket_wrapper.c child_si = (struct socket_info *)malloc(sizeof(struct socket_info)); malloc 2061 lib/socket_wrapper/socket_wrapper.c buf = (uint8_t *)malloc(ret); malloc 2124 lib/socket_wrapper/socket_wrapper.c buf = (uint8_t *)malloc(ret); malloc 39 lib/talloc/talloc.c #ifdef malloc malloc 338 lib/talloc/talloc.c tc = (struct talloc_chunk *)malloc(TC_HDR_SIZE+size); malloc 1021 lib/talloc/talloc.c new_ptr = malloc(size + TC_HDR_SIZE); malloc 1034 lib/talloc/talloc.c new_ptr = malloc(TC_HDR_SIZE+size); malloc 59 lib/talloc/testsuite.c #ifdef malloc malloc 841 lib/talloc/testsuite.c p1 = malloc(loop % 100); malloc 843 lib/talloc/testsuite.c p3 = malloc(300); malloc 390 lib/tdb/common/io.c if (!(buf = (unsigned char *)malloc(len))) { malloc 480 lib/tdb/common/tdb.c if (!(p = (char *)malloc(key.dsize + dbuf.dsize))) { malloc 585 lib/tdb/common/tdb.c dbuf.dptr = (unsigned char *)malloc(new_dbuf.dsize); malloc 222 lib/tdb/common/transaction.c new_blocks = (uint8_t **)malloc( malloc 718 lib/tdb/common/transaction.c data = (unsigned char *)malloc(recovery_size + sizeof(*rec)); malloc 1039 lib/tdb/common/transaction.c data = (unsigned char *)malloc(rec.data_len); malloc 60 lib/tdb/tools/tdbbackup.c ret = (char *)malloc(len); malloc 102 lib/tdb/tools/tdbtest.c buf = (char *)malloc(len+1); malloc 65 lib/tdb/tools/tdbtorture.c buf = (char *)malloc(len+1); malloc 38 lib/util/memory.h #define malloc_p(type) (type *)malloc(sizeof(type)) malloc 390 lib/util/util.c if ((p = malloc(size)) == NULL) malloc 478 lib/util/util.c p2 = malloc(size); malloc 530 lib/util/util.c return malloc(el_size * count); malloc 55 lib/util/util_file.c s = (char *)malloc(maxlen); malloc 92 lib/util/xfile.c f->buf = (char *)malloc(f->bufsize); malloc 108 lib/zlib/contrib/minizip/iowin32.c ret = malloc(sizeof(WIN32FILE_IOWIN)); malloc 114 lib/zlib/contrib/minizip/miniunz.c buffer = (char*)malloc(len+1); malloc 266 lib/zlib/contrib/minizip/miniunz.c buf = (void*)malloc(size_buf); malloc 240 lib/zlib/contrib/minizip/minizip.c buf = (void*)malloc(size_buf); malloc 114 lib/zlib/contrib/minizip/mztools.c char* data = malloc(dataSize); malloc 78 lib/zlib/contrib/minizip/unzip.c # define ALLOC(size) (malloc(size)) malloc 50 lib/zlib/contrib/minizip/zip.c # define ALLOC(size) (malloc(size)) malloc 806 lib/zlib/contrib/puff/puff.c buf = malloc(size); malloc 132 lib/zlib/contrib/testzlib/testzlib.c ptr=malloc((*plFileSize)+1); malloc 186 lib/zlib/contrib/testzlib/testzlib.c CprPtr=(unsigned char*)malloc(lBufferSizeCpr + BlockSizeCompress); malloc 227 lib/zlib/contrib/testzlib/testzlib.c UncprPtr=(unsigned char*)malloc(lBufferSizeUncpr + BlockSizeUncompress); malloc 257 lib/zlib/contrib/untgz/untgz.c item = (struct attr_item *)malloc(sizeof(struct attr_item)); malloc 147 lib/zlib/examples/fitblk.c blk = malloc(size + EXCESS); malloc 186 lib/zlib/examples/fitblk.c tmp = malloc(size + EXCESS); malloc 674 lib/zlib/examples/gun.c outname = malloc(len + 1); malloc 270 lib/zlib/examples/gzappend.c gz.buf = malloc(CHUNK); malloc 279 lib/zlib/examples/gzappend.c window = malloc(DSIZE); malloc 402 lib/zlib/examples/gzappend.c in = fd == -1 ? NULL : malloc(CHUNK); malloc 403 lib/zlib/examples/gzappend.c out = malloc(CHUNK); malloc 103 lib/zlib/examples/gzjoin.c in = malloc(sizeof(bin)); malloc 106 lib/zlib/examples/gzjoin.c in->buf = malloc(CHUNK); malloc 298 lib/zlib/examples/gzjoin.c junk = malloc(CHUNK); malloc 141 lib/zlib/examples/gzlog.c log = malloc(sizeof(gz_log)); malloc 278 lib/zlib/examples/gzlog.c out = malloc(max); malloc 281 lib/zlib/examples/gzlog.c in = malloc(len); malloc 94 lib/zlib/examples/zran.c index = malloc(sizeof(struct access)); malloc 96 lib/zlib/examples/zran.c index->list = malloc(sizeof(struct point) << 3); malloc 37 lib/zlib/gzio.c extern voidp malloc OF((uInt size)); malloc 41 lib/zlib/gzio.c #define ALLOC(size) malloc(size) malloc 295 lib/zlib/zutil.c extern voidp malloc OF((uInt size)); malloc 306 lib/zlib/zutil.c return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : malloc 205 nsswitch/pam_winbind.c format2 = (char *)malloc(strlen(MODULE_NAME)+strlen(format)+strlen(service)+5); malloc 529 nsswitch/wb_common.c if (!(response->extra_data.data = malloc(extra_data_len))) { malloc 238 nsswitch/winbind_nss_aix.c result->gr_mem = (char **)malloc(sizeof(char *) * (gr->num_gr_mem+1)); malloc 381 nsswitch/winbind_nss_aix.c tmpbuf = malloc(num_gids*12); malloc 486 nsswitch/winbind_nss_aix.c s = malloc(len+2); malloc 534 nsswitch/winbind_nss_aix.c s = malloc(len+2); malloc 580 nsswitch/winbind_nss_aix.c if ( (p = malloc(strlen(s)+2)) == NULL ) { malloc 793 nsswitch/winbind_nss_aix.c if ( (ret = malloc( size )) == NULL ) { malloc 806 nsswitch/winbind_nss_aix.c attrlist_t *a = malloc(sizeof(attrlist_t)); malloc 150 nsswitch/winbind_nss_linux.c *pp_buff = (char *)malloc(len); malloc 71 source3/auth/auth_script.c secret_str = (char *)malloc(secret_str_len); malloc 209 source3/client/mount.cifs.c line_buf = (char *)malloc(4096); malloc 793 source3/client/mount.cifs.c new_pass_buf = (char *)malloc(len+number_of_commas+1); malloc 857 source3/client/mount.cifs.c domainnm = (char *)malloc(len+1); malloc 929 source3/client/mount.cifs.c *punc_name = (char *)malloc(length+3); malloc 1324 source3/client/mount.cifs.c resolved_path = (char *)malloc(PATH_MAX+1); malloc 1407 source3/client/mount.cifs.c options = (char *)malloc(options_size /* space for commas in password */ + 8 /* space for domain= , domain name itself was counted as part of the length username string above */); malloc 1549 source3/client/mount.cifs.c mountent.mnt_opts = (char *)malloc(220); malloc 255 source3/client/umount.cifs.c canonical = (char *)malloc (PATH_MAX + 1); malloc 276 source3/include/smb_macros.h #ifdef malloc malloc 313 source3/include/smb_macros.h #define SMB_MALLOC(s) malloc(s) malloc 314 source3/include/smb_macros.h #define SMB_MALLOC_P(type) (type *)malloc(sizeof(type)) malloc 1664 source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c s = (struct join_state *)malloc(sizeof(struct join_state)); malloc 998 source3/lib/util.c return malloc(size); malloc 1113 source3/lib/util.c ret = (void *)malloc(size); malloc 36 source3/libsmb/smb_share_modes.c #ifdef malloc malloc 61 source3/libsmb/smb_share_modes.c struct smbdb_ctx *smb_db = (struct smbdb_ctx *)malloc(sizeof(struct smbdb_ctx)); malloc 213 source3/libsmb/smb_share_modes.c list = (struct smb_share_mode_entry *)malloc(sizeof(struct smb_share_mode_entry)*num_share_modes); malloc 288 source3/libsmb/smb_share_modes.c db_data.dptr = (uint8 *)malloc( malloc 324 source3/libsmb/smb_share_modes.c new_data_p = (uint8 *)malloc( malloc 425 source3/libsmb/smb_share_modes.c new_data_p = (uint8 *)malloc( malloc 447 source3/modules/getdate.c && ! ((defined YYMALLOC || defined malloc) \ malloc 455 source3/modules/getdate.c # define YYMALLOC malloc malloc 456 source3/modules/getdate.c # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ malloc 458 source3/modules/getdate.c void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ malloc 174 source3/modules/onefs_shadow_copy.c isp = malloc(sizeof *isp); malloc 178 source3/modules/onefs_shadow_copy.c isp->is_name = malloc(strlen(name) + 1); malloc 468 source3/modules/onefs_shadow_copy.c idcp = malloc(sizeof *idcp); malloc 559 source3/modules/onefs_shadow_copy.c cp = malloc(strlen(text) + 1); malloc 737 source3/modules/onefs_shadow_copy.c cpath = malloc(strlen(SNAPSHOT_DIRECTORY) + strlen(isp->is_name) + malloc 167 source3/utils/log2pcaphex.c newdata = malloc(newlen); malloc 214 source3/utils/log2pcaphex.c buffer = malloc(*buffersize+4); /* +4 for NBSS Header */ malloc 748 source4/client/client.c if(!(data = (uint8_t *)malloc(read_size))) { malloc 1140 source4/client/client.c buf = (uint8_t *)malloc(maxwrite); malloc 476 source4/client/mount.cifs.c mountpassword = malloc(33); malloc 503 source4/client/mount.cifs.c options = malloc(optlen + 10); malloc 75 source4/client/smbumount.c char *canonical = malloc (PATH_MAX + 1); malloc 147 source4/heimdal/kdc/524.c v4_addr = malloc (sizeof(*v4_addr)); malloc 172 source4/heimdal/kdc/524.c et->caddr = malloc (sizeof (*et->caddr)); malloc 430 source4/heimdal/kdc/digest.c malloc(sizeof(*r.u.initReply.identifier)); malloc 525 source4/heimdal/kdc/digest.c buf.data = malloc(buf.length); malloc 554 source4/heimdal/kdc/digest.c serverNonce.data = malloc(serverNonce.length); malloc 824 source4/heimdal/kdc/digest.c clientNonce.data = malloc(clientNonce.length); malloc 1028 source4/heimdal/kdc/digest.c r.u.ntlmInitReply.challange.data = malloc(8); malloc 1317 source4/heimdal/kdc/digest.c malloc(sizeof(*r.u.ntlmResponse.sessionkey)); malloc 104 source4/heimdal/kdc/headers.h #define ALLOC(X) ((X) = malloc(sizeof(*(X)))) malloc 236 source4/heimdal/kdc/kaserver.c data->data = malloc(size); malloc 405 source4/heimdal/kdc/kaserver.c *name = malloc(data.length + 1); malloc 413 source4/heimdal/kdc/kaserver.c *instance = malloc(data.length + 1); malloc 608 source4/heimdal/kdc/kaserver.c *auth_domain = malloc(data.length + 1); malloc 618 source4/heimdal/kdc/kaserver.c *name = malloc(data.length + 1); malloc 628 source4/heimdal/kdc/kaserver.c *instance = malloc(data.length + 1); malloc 168 source4/heimdal/kdc/kerberos5.c pn->name_string.val = malloc(sizeof(*pn->name_string.val)); malloc 478 source4/heimdal/kdc/kerberos5.c pa.val = malloc(pa.len * sizeof(*pa.val)); malloc 561 source4/heimdal/kdc/kerberos5.c *ent->salt = malloc(key->salt->salt.length + 1); malloc 581 source4/heimdal/kdc/kerberos5.c ent->s2kparams->data = malloc(ent->s2kparams->length); malloc 600 source4/heimdal/kdc/kerberos5.c ent->s2kparams->data = malloc(ent->s2kparams->length); malloc 639 source4/heimdal/kdc/kerberos5.c pa.val = malloc(pa.len * sizeof(*pa.val)); malloc 1582 source4/heimdal/kdc/kerberos5.c ek.last_req.val = malloc(2 * sizeof(*ek.last_req.val)); malloc 252 source4/heimdal/kdc/krb5tgs.c *delegated = malloc(sizeof(*sp.delegated)); malloc 617 source4/heimdal/kdc/krb5tgs.c rs = malloc(l); malloc 1178 source4/heimdal/kdc/krb5tgs.c *csec = malloc(sizeof(**csec)); malloc 1185 source4/heimdal/kdc/krb5tgs.c *cusec = malloc(sizeof(**cusec)); malloc 108 source4/heimdal/kdc/kx509.c rep->hash->data = malloc(rep->hash->length); malloc 205 source4/heimdal/kdc/pkinit.c dh_gen_key = malloc(size); malloc 660 source4/heimdal/kdc/pkinit.c integer->data = malloc(integer->length); malloc 483 source4/heimdal/kuser/kinit.c enctype = malloc(etype_str.num_strings * sizeof(*enctype)); malloc 53 source4/heimdal/lib/asn1/asn1-common.h (B) = malloc((BL)); \ malloc 72 source4/heimdal/lib/asn1/der_copy.c to->data = malloc(to->length * sizeof(to->data[0])); malloc 84 source4/heimdal/lib/asn1/der_copy.c to->data = malloc(to->length * sizeof(to->data[0])); malloc 102 source4/heimdal/lib/asn1/der_copy.c to->data = malloc(to->length); malloc 113 source4/heimdal/lib/asn1/der_copy.c to->data = malloc(to->length); malloc 125 source4/heimdal/lib/asn1/der_copy.c to->components = malloc(to->length * sizeof(*to->components)); malloc 140 source4/heimdal/lib/asn1/der_copy.c to->data = malloc(len); malloc 61 source4/heimdal/lib/asn1/der_format.c data->data = malloc(data->length); malloc 156 source4/heimdal/lib/asn1/der_get.c s = malloc (len + 1); malloc 198 source4/heimdal/lib/asn1/der_get.c data->data = malloc(data->length * sizeof(data->data[0])); malloc 222 source4/heimdal/lib/asn1/der_get.c data->data = malloc(data->length * sizeof(data->data[0])); malloc 246 source4/heimdal/lib/asn1/der_get.c data->data = malloc(len); malloc 278 source4/heimdal/lib/asn1/der_get.c data->data = malloc(data->length); malloc 302 source4/heimdal/lib/asn1/der_get.c data->data = malloc(data->length); malloc 350 source4/heimdal/lib/asn1/der_get.c times = malloc(len + 1); malloc 391 source4/heimdal/lib/asn1/der_get.c data->components = malloc((len + 1) * sizeof(data->components[0])); malloc 539 source4/heimdal/lib/asn1/der_get.c data->data = malloc(len - 1); malloc 437 source4/heimdal/lib/asn1/der_put.c s->data = malloc(len + 1); malloc 73 source4/heimdal/lib/asn1/extra.c data->data = malloc(length + len_len + l); malloc 101 source4/heimdal/lib/asn1/extra.c to->data = malloc(from->length); malloc 122 source4/heimdal/lib/asn1/extra.c data->data = malloc(len); malloc 55 source4/heimdal/lib/asn1/hash.c htab = (Hashtab *) malloc(sizeof(Hashtab) + (sz - 1) * sizeof(Hashentry *)); malloc 111 source4/heimdal/lib/asn1/hash.c h = (Hashentry *) malloc(sizeof(Hashentry)); malloc 2658 source4/heimdal/lib/asn1/lex.c return (void *) malloc( size ); malloc 461 source4/heimdal/lib/asn1/parse.c && ! ((defined YYMALLOC || defined malloc) \ malloc 469 source4/heimdal/lib/asn1/parse.c # define YYMALLOC malloc malloc 470 source4/heimdal/lib/asn1/parse.c # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ malloc 472 source4/heimdal/lib/asn1/parse.c void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ malloc 83 source4/heimdal/lib/com_err/error.c f = malloc(sizeof(*f)); malloc 1834 source4/heimdal/lib/com_err/lex.c return (void *) malloc( size ); malloc 141 source4/heimdal/lib/com_err/parse.c #define alloca(x) malloc(x) malloc 316 source4/heimdal/lib/com_err/parse.c && ! ((defined YYMALLOC || defined malloc) \ malloc 324 source4/heimdal/lib/com_err/parse.c # define YYMALLOC malloc malloc 325 source4/heimdal/lib/com_err/parse.c # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ malloc 327 source4/heimdal/lib/com_err/parse.c void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ malloc 1440 source4/heimdal/lib/com_err/parse.c struct error_code *ec = malloc(sizeof(*ec)); malloc 48 source4/heimdal/lib/com_err/parse.y #define alloca(x) malloc(x) malloc 118 source4/heimdal/lib/com_err/parse.y struct error_code *ec = malloc(sizeof(*ec)); malloc 132 source4/heimdal/lib/gssapi/krb5/8003.c result->checksum.data = malloc (result->checksum.length); malloc 239 source4/heimdal/lib/gssapi/krb5/8003.c fwd_data->data = malloc(fwd_data->length); malloc 134 source4/heimdal/lib/gssapi/krb5/arcfour.c ptr = malloc(len); malloc 183 source4/heimdal/lib/gssapi/krb5/arcfour.c message_token->value = malloc (total_len); malloc 377 source4/heimdal/lib/gssapi/krb5/arcfour.c output_message_buffer->value = malloc (total_len); malloc 621 source4/heimdal/lib/gssapi/krb5/arcfour.c output_message_buffer->value = malloc(datalen); malloc 219 source4/heimdal/lib/gssapi/krb5/cfx.c tmp = malloc(rrc); malloc 280 source4/heimdal/lib/gssapi/krb5/cfx.c output_message_buffer->value = malloc(output_message_buffer->length); malloc 409 source4/heimdal/lib/gssapi/krb5/cfx.c buf = malloc(input_message_buffer->length + sizeof(*token)); malloc 647 source4/heimdal/lib/gssapi/krb5/cfx.c output_message_buffer->value = malloc(len + sizeof(*token)); malloc 714 source4/heimdal/lib/gssapi/krb5/cfx.c buf = malloc(len); malloc 762 source4/heimdal/lib/gssapi/krb5/cfx.c message_token->value = malloc(message_token->length); malloc 877 source4/heimdal/lib/gssapi/krb5/cfx.c buf = malloc(message_buffer->length + sizeof(*token)); malloc 61 source4/heimdal/lib/gssapi/krb5/display_name.c output_name_buffer->value = malloc(len + 1); malloc 115 source4/heimdal/lib/gssapi/krb5/encapsulate.c output_token->value = malloc (outer_len); malloc 146 source4/heimdal/lib/gssapi/krb5/encapsulate.c output_token->value = malloc (outer_len); malloc 60 source4/heimdal/lib/gssapi/krb5/export_name.c exported_name->value = malloc(exported_name->length); malloc 61 source4/heimdal/lib/gssapi/krb5/get_mic.c message_token->value = malloc (total_len); malloc 154 source4/heimdal/lib/gssapi/krb5/get_mic.c message_token->value = malloc (total_len); malloc 174 source4/heimdal/lib/gssapi/krb5/get_mic.c tmp = malloc (message_buffer->length + 8); malloc 70 source4/heimdal/lib/gssapi/krb5/import_name.c tmp = malloc (input_name_buffer->length + 1); malloc 137 source4/heimdal/lib/gssapi/krb5/import_name.c tmp = malloc (input_name_buffer->length + 1); malloc 201 source4/heimdal/lib/gssapi/krb5/import_name.c name = malloc(length + 1); malloc 116 source4/heimdal/lib/gssapi/krb5/init_sec_context.c ctx = malloc(sizeof(*ctx)); malloc 93 source4/heimdal/lib/gssapi/krb5/prf.c prf_out->value = malloc(desired_output_len); malloc 105 source4/heimdal/lib/gssapi/krb5/prf.c input.data = malloc(prf_in->length + 4); malloc 169 source4/heimdal/lib/gssapi/krb5/set_cred_option.c enctypes = malloc((len + 1) * 4); malloc 62 source4/heimdal/lib/gssapi/krb5/set_sec_context_option.c *str = malloc(value->length + 1); malloc 177 source4/heimdal/lib/gssapi/krb5/unwrap.c output_message_buffer->value = malloc(output_message_buffer->length); malloc 370 source4/heimdal/lib/gssapi/krb5/unwrap.c output_message_buffer->value = malloc(output_message_buffer->length); malloc 234 source4/heimdal/lib/gssapi/krb5/verify_mic.c tmp = malloc (message_buffer->length + 8); malloc 228 source4/heimdal/lib/gssapi/krb5/wrap.c output_message_buffer->value = malloc (total_len); malloc 363 source4/heimdal/lib/gssapi/krb5/wrap.c output_message_buffer->value = malloc (total_len); malloc 90 source4/heimdal/lib/gssapi/mech/context.c string->value = malloc(mg->maj_error.length); malloc 98 source4/heimdal/lib/gssapi/mech/context.c string->value = malloc(mg->min_error.length); malloc 194 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c ctx = malloc(sizeof(struct _gss_context)); malloc 268 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c dcred = malloc(sizeof(struct _gss_cred)); malloc 275 source4/heimdal/lib/gssapi/mech/gss_accept_sec_context.c dmc = malloc(sizeof(struct _gss_mechanism_cred)); malloc 87 source4/heimdal/lib/gssapi/mech/gss_acquire_cred.c cred = malloc(sizeof(struct _gss_cred)); malloc 115 source4/heimdal/lib/gssapi/mech/gss_acquire_cred.c mc = malloc(sizeof(struct _gss_mechanism_cred)); malloc 62 source4/heimdal/lib/gssapi/mech/gss_add_cred.c new_mc = malloc(sizeof(struct _gss_mechanism_cred)); malloc 105 source4/heimdal/lib/gssapi/mech/gss_add_cred.c new_cred = malloc(sizeof(struct _gss_cred)); malloc 153 source4/heimdal/lib/gssapi/mech/gss_add_cred.c mc = malloc(sizeof(struct _gss_mechanism_cred)); malloc 43 source4/heimdal/lib/gssapi/mech/gss_buffer_set.c set = (gss_buffer_set_desc *) malloc(sizeof(*set)); malloc 86 source4/heimdal/lib/gssapi/mech/gss_buffer_set.c p->value = malloc(member_buffer->length); malloc 63 source4/heimdal/lib/gssapi/mech/gss_canonicalize_name.c name = malloc(sizeof(struct _gss_name)); malloc 71 source4/heimdal/lib/gssapi/mech/gss_canonicalize_name.c mn = malloc(sizeof(struct _gss_mechanism_name)); malloc 41 source4/heimdal/lib/gssapi/mech/gss_create_empty_oid_set.c set = malloc(sizeof(gss_OID_set_desc)); malloc 57 source4/heimdal/lib/gssapi/mech/gss_display_name.c output_name_buffer->value = malloc(name->gn_value.length); malloc 62 source4/heimdal/lib/gssapi/mech/gss_duplicate_name.c new_name = malloc(sizeof(struct _gss_name)); malloc 74 source4/heimdal/lib/gssapi/mech/gss_duplicate_name.c new_mn = malloc(sizeof(*new_mn)); malloc 50 source4/heimdal/lib/gssapi/mech/gss_duplicate_oid.c *dest_oid = malloc(sizeof(**dest_oid)); malloc 56 source4/heimdal/lib/gssapi/mech/gss_duplicate_oid.c (*dest_oid)->elements = malloc(src_oid->length); malloc 54 source4/heimdal/lib/gssapi/mech/gss_export_sec_context.c interprocess_token->value = malloc(interprocess_token->length); malloc 192 source4/heimdal/lib/gssapi/mech/gss_import_name.c name = malloc(sizeof(struct _gss_name)); malloc 67 source4/heimdal/lib/gssapi/mech/gss_import_sec_context.c ctx = malloc(sizeof(struct _gss_context)); malloc 91 source4/heimdal/lib/gssapi/mech/gss_init_sec_context.c ctx = malloc(sizeof(struct _gss_context)); malloc 111 source4/heimdal/lib/gssapi/mech/gss_inquire_cred.c mn = malloc(sizeof(struct _gss_mechanism_name)); malloc 147 source4/heimdal/lib/gssapi/mech/gss_inquire_cred.c mn = malloc( malloc 248 source4/heimdal/lib/gssapi/mech/gss_krb5.c key->data = malloc(key->length); malloc 649 source4/heimdal/lib/gssapi/mech/gss_krb5.c oid_flat.elements = malloc(oid_flat.length); malloc 686 source4/heimdal/lib/gssapi/mech/gss_krb5.c ad_data->value = malloc(data_set->elements[0].length); malloc 142 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c res = malloc(byte_count); malloc 180 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c m = malloc(sizeof(*m)); malloc 260 source4/heimdal/lib/gssapi/mech/gss_mech_switch.c m = malloc(sizeof(*m)); malloc 59 source4/heimdal/lib/gssapi/mech/gss_names.c mn = malloc(sizeof(struct _gss_mechanism_name)); malloc 92 source4/heimdal/lib/gssapi/mech/gss_names.c name = malloc(sizeof(struct _gss_name)); malloc 97 source4/heimdal/lib/gssapi/mech/gss_names.c mn = malloc(sizeof(struct _gss_mechanism_name)); malloc 54 source4/heimdal/lib/gssapi/mech/gss_set_cred_option.c cred = malloc(sizeof(*cred)); malloc 65 source4/heimdal/lib/gssapi/mech/gss_set_cred_option.c mc = malloc(sizeof(*mc)); malloc 39 source4/heimdal/lib/gssapi/mech/gss_utils.c to_oid->elements = malloc(len); malloc 69 source4/heimdal/lib/gssapi/mech/gss_utils.c to_buf->value = malloc(len); malloc 126 source4/heimdal/lib/gssapi/spnego/cred_stubs.c actual_desired_mechs.elements = malloc(actual_desired_mechs.count * malloc 290 source4/heimdal/lib/gssapi/spnego/init_sec_context.c ni.mechToken->data = malloc(mech_token.length); malloc 308 source4/heimdal/lib/gssapi/spnego/init_sec_context.c buf = malloc(buf_size); malloc 146 source4/heimdal/lib/hcrypto/bn.c hi->data = malloc(len); malloc 174 source4/heimdal/lib/hcrypto/bn.c data = malloc(len); malloc 207 source4/heimdal/lib/hcrypto/bn.c data = malloc(len); malloc 334 source4/heimdal/lib/hcrypto/bn.c i->data = malloc(len); malloc 395 source4/heimdal/lib/hcrypto/bn.c ci.data = malloc(ci.length); malloc 55 source4/heimdal/lib/hcrypto/dh-imath.c p = malloc(len); malloc 70 source4/heimdal/lib/hcrypto/dh-imath.c p = malloc(size); malloc 780 source4/heimdal/lib/hcrypto/evp.c ctx->cipher_data = malloc(c->ctx_size); malloc 1572 source4/heimdal/lib/hcrypto/evp.c buf = malloc(EVP_MD_size(md)); malloc 93 source4/heimdal/lib/hcrypto/hmac.c ctx->buf = malloc(ctx->key_length); malloc 114 source4/heimdal/lib/hcrypto/hmac.c ctx->opad = malloc(EVP_MD_block_size(ctx->md)); malloc 115 source4/heimdal/lib/hcrypto/hmac.c ctx->ipad = malloc(EVP_MD_block_size(ctx->md)); malloc 342 source4/heimdal/lib/hcrypto/imath/imath.c mp_int out = malloc(sizeof(mpz_t)); malloc 2120 source4/heimdal/lib/hcrypto/imath/imath.c mp_digit *out = malloc(num * sizeof(mp_digit)); malloc 67 source4/heimdal/lib/hcrypto/pkcs12.c v = malloc(vlen + 1); malloc 87 source4/heimdal/lib/hcrypto/pkcs5.c tmpcksum = malloc(checksumsize + datalen); malloc 248 source4/heimdal/lib/hcrypto/rand-egd.c data = malloc(size); malloc 61 source4/heimdal/lib/hcrypto/rsa-imath.c p = malloc(len); malloc 75 source4/heimdal/lib/hcrypto/rsa-imath.c p = malloc(size); malloc 175 source4/heimdal/lib/hcrypto/rsa-imath.c p = p0 = malloc(size - 1); malloc 314 source4/heimdal/lib/hcrypto/rsa-imath.c p0 = p = malloc(size); malloc 510 source4/heimdal/lib/hcrypto/rsa-imath.c p = malloc(len); malloc 267 source4/heimdal/lib/hcrypto/rsa.c buffer = malloc(RSA_size(rsa)); malloc 425 source4/heimdal/lib/hcrypto/rsa.c integer->data = malloc(integer->length); malloc 152 source4/heimdal/lib/hcrypto/ui.c buf2 = malloc(length); malloc 132 source4/heimdal/lib/hdb/db.c entry->entry.principal = malloc(sizeof(*entry->entry.principal)); malloc 359 source4/heimdal/lib/hdb/ext.c malloc(sizeof(*ext.data.u.password.mkvno)); malloc 377 source4/heimdal/lib/hdb/hdb.c buf = malloc(len); malloc 188 source4/heimdal/lib/hdb/keys.c *ret_enctypes = malloc(sizeof(enctypes[0]) * num_enctypes); malloc 220 source4/heimdal/lib/hdb/keys.c key.salt = malloc(sizeof(*key.salt)); malloc 56 source4/heimdal/lib/hdb/keytab.c d = malloc(sizeof(*d)); malloc 79 source4/heimdal/lib/hdb/keytab.c d->dbname = malloc(mkey - db + 1); malloc 515 source4/heimdal/lib/hdb/mkey.c k->mkvno = malloc(sizeof(*k->mkvno)); malloc 111 source4/heimdal/lib/hdb/ndbm.c entry->entry.principal = malloc (sizeof(*entry->entry.principal)); malloc 283 source4/heimdal/lib/hdb/ndbm.c struct ndbm_db *d = malloc(sizeof(*d)); malloc 878 source4/heimdal/lib/hx509/ca.c ext.critical = malloc(sizeof(*ext.critical)); malloc 1044 source4/heimdal/lib/hx509/ca.c tbsc->serialNumber.data = malloc(tbsc->serialNumber.length); malloc 1265 source4/heimdal/lib/hx509/ca.c malloc(sizeof(*info.pCPathLenConstraint)); malloc 224 source4/heimdal/lib/hx509/cert.c *cert = malloc(sizeof(**cert)); malloc 2418 source4/heimdal/lib/hx509/cert.c a = malloc(sizeof(*a)); malloc 2521 source4/heimdal/lib/hx509/cert.c cert->friendlyname = malloc(n.val[0].length + 1); malloc 2622 source4/heimdal/lib/hx509/cert.c q->serial = malloc(sizeof(*q->serial)); malloc 2635 source4/heimdal/lib/hx509/cert.c q->issuer_name = malloc(sizeof(*q->issuer_name)); malloc 96 source4/heimdal/lib/hx509/cms.c ci.content->data = malloc(buf->length); malloc 1010 source4/heimdal/lib/hx509/cms.c content->data = malloc(signedContent->length); malloc 1154 source4/heimdal/lib/hx509/cms.c sd.encapContentInfo.eContent->data = malloc(length); malloc 162 source4/heimdal/lib/hx509/crypto.c id->parameters = malloc(sizeof(*id->parameters)); malloc 165 source4/heimdal/lib/hx509/crypto.c id->parameters->data = malloc(length); malloc 237 source4/heimdal/lib/hx509/crypto.c to = malloc(tosize); malloc 387 source4/heimdal/lib/hx509/crypto.c sig->data = malloc(sig->length); malloc 445 source4/heimdal/lib/hx509/crypto.c spki->subjectPublicKey.data = malloc(len); malloc 529 source4/heimdal/lib/hx509/crypto.c data->data = malloc(ret); malloc 734 source4/heimdal/lib/hx509/crypto.c sig->data = malloc(SHA256_DIGEST_LENGTH); malloc 800 source4/heimdal/lib/hx509/crypto.c sig->data = malloc(SHA_DIGEST_LENGTH); malloc 1201 source4/heimdal/lib/hx509/crypto.c to = malloc(tosize); malloc 1253 source4/heimdal/lib/hx509/crypto.c cleartext->data = malloc(cleartext->length); malloc 2029 source4/heimdal/lib/hx509/crypto.c crypto->key.data = malloc(length); malloc 2047 source4/heimdal/lib/hx509/crypto.c crypto->key.data = malloc(crypto->key.length); malloc 2086 source4/heimdal/lib/hx509/crypto.c ivec->data = malloc(ivec->length); malloc 2139 source4/heimdal/lib/hx509/crypto.c (*ciphertext)->data = malloc(length + padsize); malloc 2211 source4/heimdal/lib/hx509/crypto.c clear->data = malloc(length); malloc 2413 source4/heimdal/lib/hx509/crypto.c key.data = malloc(key.length); malloc 2421 source4/heimdal/lib/hx509/crypto.c iv.data = malloc(iv.length); malloc 62 source4/heimdal/lib/hx509/env.c n = malloc(sizeof(*n)); malloc 113 source4/heimdal/lib/hx509/env.c n = malloc(sizeof(*n)); malloc 127 source4/heimdal/lib/hx509/keyset.c type = malloc(residue - name + 1); malloc 85 source4/heimdal/lib/hx509/ks_file.c key = malloc(keylen); malloc 100 source4/heimdal/lib/hx509/ks_file.c clear.data = malloc(len); malloc 193 source4/heimdal/lib/hx509/ks_file.c ivdata = malloc(size); malloc 236 source4/heimdal/lib/hx509/ks_keychain.c data = malloc(kc->keysize); malloc 114 source4/heimdal/lib/hx509/ks_mem.c unsigned long *iter = malloc(sizeof(*iter)); malloc 527 source4/heimdal/lib/hx509/ks_p11.c query[i].pValue = malloc(query[i].ulValueLen); malloc 586 source4/heimdal/lib/hx509/ks_p11.c query.pValue = malloc(query.ulValueLen); malloc 884 source4/heimdal/lib/hx509/ks_p11.c slot_ids = malloc(p->num_slots * sizeof(*slot_ids)); malloc 1012 source4/heimdal/lib/hx509/ks_p11.c c = malloc(sizeof(*c)); malloc 90 source4/heimdal/lib/hx509/name.c to = malloc(tolen); malloc 168 source4/heimdal/lib/hx509/name.c s = malloc(len + 1); malloc 231 source4/heimdal/lib/hx509/name.c ss = malloc(bmplen + 1); malloc 240 source4/heimdal/lib/hx509/name.c ss = malloc(ds->u.teletexString.length + 1); malloc 251 source4/heimdal/lib/hx509/name.c ss = malloc(unilen + 1); malloc 286 source4/heimdal/lib/hx509/name.c (_n) = malloc((_l) * sizeof((_n)[0])); \ malloc 295 source4/heimdal/lib/hx509/name.c (_n) = malloc((_l) * sizeof((_n)[0])); \ malloc 303 source4/heimdal/lib/hx509/name.c (_n) = malloc((_l) * sizeof((_n)[0])); \ malloc 343 source4/heimdal/lib/hx509/name.c name = malloc(len * sizeof(name[0])); malloc 358 source4/heimdal/lib/hx509/name.c *rname = malloc(*rlen * sizeof((*rname)[0])); malloc 511 source4/heimdal/lib/hx509/name.c rdn->val = malloc(sizeof(rdn->val[0])); malloc 604 source4/heimdal/lib/hx509/name.c r = malloc(pstr_len + 1); malloc 75 source4/heimdal/lib/hx509/print.c s = malloc(30); malloc 811 source4/heimdal/lib/hx509/print.c *ctx = malloc(sizeof(**ctx)); malloc 1021 source4/heimdal/lib/hx509/revoke.c es->val[0].extnValue.data = malloc(10); malloc 1442 source4/heimdal/lib/hx509/revoke.c c.tbsCertList.version = malloc(sizeof(*c.tbsCertList.version)); malloc 1466 source4/heimdal/lib/hx509/revoke.c c.tbsCertList.nextUpdate = malloc(sizeof(*c.tbsCertList.nextUpdate)); malloc 278 source4/heimdal/lib/hx509/sel-gram.c && ! ((defined YYMALLOC || defined malloc) \ malloc 286 source4/heimdal/lib/hx509/sel-gram.c # define YYMALLOC malloc malloc 287 source4/heimdal/lib/hx509/sel-gram.c # if ! defined malloc && ! defined _STDLIB_H && (defined __STDC__ || defined __C99__FUNC__ \ malloc 289 source4/heimdal/lib/hx509/sel-gram.c void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ malloc 1820 source4/heimdal/lib/hx509/sel-lex.c return (void *) malloc( size ); malloc 41 source4/heimdal/lib/hx509/sel.c expr = malloc(sizeof(*expr)); malloc 163 source4/heimdal/lib/krb5/acache.c cred->session.keyvalue.data = malloc(incred->keyblock.length); malloc 336 source4/heimdal/lib/krb5/acache.c addr = malloc(sizeof(*addr)); malloc 343 source4/heimdal/lib/krb5/acache.c addr->data = malloc(addr->length); malloc 1417 source4/heimdal/lib/krb5/addr_families.c *res = malloc (sizeof(**res)); malloc 55 source4/heimdal/lib/krb5/asn1_glue.c krb5_principal p = malloc(sizeof(*p)); malloc 144 source4/heimdal/lib/krb5/auth_context.c if ((auth_context->local_address = malloc(sizeof(krb5_address))) == NULL) malloc 152 source4/heimdal/lib/krb5/auth_context.c if ((auth_context->remote_address = malloc(sizeof(krb5_address))) == NULL) malloc 242 source4/heimdal/lib/krb5/auth_context.c *local_addr = malloc (sizeof(**local_addr)); malloc 253 source4/heimdal/lib/krb5/auth_context.c *remote_addr = malloc (sizeof(**remote_addr)); malloc 453 source4/heimdal/lib/krb5/auth_context.c *authenticator = malloc(sizeof(**authenticator)); malloc 101 source4/heimdal/lib/krb5/cache.c p = malloc (sizeof(*p)); malloc 323 source4/heimdal/lib/krb5/cache.c append = malloc((tmp - str) + 1); malloc 56 source4/heimdal/lib/krb5/config_file_netinfo.c b = malloc(sizeof(*b)); malloc 99 source4/heimdal/lib/krb5/config_file_netinfo.c b = malloc(sizeof(*b)); malloc 68 source4/heimdal/lib/krb5/context.c etypes = malloc((i+1) * sizeof(*etypes)); malloc 104 source4/heimdal/lib/krb5/context.c *ret_enctypes = malloc(sizeof(ret_enctypes[0]) * i); malloc 306 source4/heimdal/lib/krb5/context.c p->mutex = malloc(sizeof(HEIMDAL_MUTEX)); malloc 362 source4/heimdal/lib/krb5/context.c p->mutex = malloc(sizeof(HEIMDAL_MUTEX)); malloc 550 source4/heimdal/lib/krb5/context.c fn = malloc(l + 1); malloc 951 source4/heimdal/lib/krb5/context.c context->extra_addresses = malloc(sizeof(*context->extra_addresses)); malloc 1033 source4/heimdal/lib/krb5/context.c context->ignore_addresses = malloc(sizeof(*context->ignore_addresses)); malloc 158 source4/heimdal/lib/krb5/creds.c c = malloc (sizeof (*c)); malloc 357 source4/heimdal/lib/krb5/crypto.c s = malloc(len); malloc 440 source4/heimdal/lib/krb5/crypto.c str = malloc(len); malloc 502 source4/heimdal/lib/krb5/crypto.c s = malloc(len); malloc 595 source4/heimdal/lib/krb5/crypto.c s = malloc (len * sizeof(s[0])); malloc 1410 source4/heimdal/lib/krb5/crypto.c ipad = malloc(cm->blocksize + len); malloc 1413 source4/heimdal/lib/krb5/crypto.c opad = malloc(cm->blocksize + cm->checksumsize); malloc 2028 source4/heimdal/lib/krb5/crypto.c void *loiv = malloc(len); malloc 2915 source4/heimdal/lib/krb5/crypto.c tmp = malloc (sz); malloc 2967 source4/heimdal/lib/krb5/crypto.c p = malloc(len); malloc 3038 source4/heimdal/lib/krb5/crypto.c p = malloc(len); malloc 3100 source4/heimdal/lib/krb5/crypto.c p = malloc (len); malloc 3238 source4/heimdal/lib/krb5/crypto.c p = q = malloc(len); malloc 3289 source4/heimdal/lib/krb5/crypto.c p = q = malloc(len); malloc 3418 source4/heimdal/lib/krb5/crypto.c p = q = malloc(len); malloc 3475 source4/heimdal/lib/krb5/crypto.c p = q = malloc(len); malloc 3547 source4/heimdal/lib/krb5/crypto.c p = q = malloc(len); malloc 3797 source4/heimdal/lib/krb5/crypto.c k = malloc(nblocks * et->blocksize); malloc 3818 source4/heimdal/lib/krb5/crypto.c void *c = malloc(len); malloc 3827 source4/heimdal/lib/krb5/crypto.c k = malloc(res_len); malloc 4144 source4/heimdal/lib/krb5/crypto.c tmp = malloc (keylen); malloc 4325 source4/heimdal/lib/krb5/crypto.c keydata = malloc(keylen); malloc 4492 source4/heimdal/lib/krb5/crypto.c keydata = malloc(keylen); malloc 4622 source4/heimdal/lib/krb5/crypto.c ret = malloc (n * sizeof(*ret)); malloc 4697 source4/heimdal/lib/krb5/crypto.c ret = malloc(n * sizeof(*ret)); malloc 117 source4/heimdal/lib/krb5/data.c p->data = malloc(len); malloc 183 source4/heimdal/lib/krb5/fcache.c f = malloc(sizeof(*f)); malloc 306 source4/heimdal/lib/krb5/fcache.c f = malloc(sizeof(*f)); malloc 680 source4/heimdal/lib/krb5/fcache.c *cursor = malloc(sizeof(struct fcc_cursor)); malloc 70 source4/heimdal/lib/krb5/get_addrs.c res->val = malloc (sizeof(*res->val)); malloc 1271 source4/heimdal/lib/krb5/get_cred.c opt->ticket = malloc(sizeof(*ticket)); malloc 67 source4/heimdal/lib/krb5/get_host_realm.c *realms = malloc ((n + 1) * sizeof(krb5_realm)); malloc 193 source4/heimdal/lib/krb5/get_host_realm.c *realms = malloc(2 * sizeof(krb5_realm)); malloc 60 source4/heimdal/lib/krb5/get_in_tkt.c *val = malloc(i * sizeof(**val)); malloc 683 source4/heimdal/lib/krb5/get_in_tkt.c a->req_body.cname = malloc(sizeof(*a->req_body.cname)); malloc 689 source4/heimdal/lib/krb5/get_in_tkt.c a->req_body.sname = malloc(sizeof(*a->req_body.sname)); malloc 706 source4/heimdal/lib/krb5/get_in_tkt.c a->req_body.from = malloc(sizeof(*a->req_body.from)); malloc 719 source4/heimdal/lib/krb5/get_in_tkt.c a->req_body.rtime = malloc(sizeof(*a->req_body.rtime)); malloc 742 source4/heimdal/lib/krb5/get_in_tkt.c a->req_body.addresses = malloc(sizeof(*a->req_body.addresses)); malloc 125 source4/heimdal/lib/krb5/init_creds.c opt->opt_private->error = malloc(sizeof(*opt->opt_private->error)); malloc 387 source4/heimdal/lib/krb5/init_creds.c *error = malloc(sizeof(**error)); malloc 78 source4/heimdal/lib/krb5/init_creds_pw.c *key = malloc(sizeof(**key)); malloc 336 source4/heimdal/lib/krb5/init_creds_pw.c etypes = malloc((options->etype_list_length + 1) malloc 348 source4/heimdal/lib/krb5/init_creds_pw.c pre_auth_types = malloc((options->preauth_list_length + 1) malloc 506 source4/heimdal/lib/krb5/init_creds_pw.c a = malloc (sizeof(*a)); malloc 558 source4/heimdal/lib/krb5/init_creds_pw.c a->req_body.cname = malloc(sizeof(*a->req_body.cname)); malloc 564 source4/heimdal/lib/krb5/init_creds_pw.c a->req_body.sname = malloc(sizeof(*a->req_body.sname)); malloc 583 source4/heimdal/lib/krb5/init_creds_pw.c a->req_body.from = malloc(sizeof(*a->req_body.from)); malloc 596 source4/heimdal/lib/krb5/init_creds_pw.c a->req_body.rtime = malloc(sizeof(*a->req_body.rtime)); malloc 619 source4/heimdal/lib/krb5/init_creds_pw.c a->req_body.addresses = malloc(sizeof(*a->req_body.addresses)); malloc 674 source4/heimdal/lib/krb5/init_creds_pw.c paid->salt.saltvalue.data = malloc(salt_len + 1); malloc 208 source4/heimdal/lib/krb5/kcm.c k = malloc(sizeof(*k)); malloc 644 source4/heimdal/lib/krb5/kcm.c *cursor = malloc(sizeof(tmp)); malloc 82 source4/heimdal/lib/krb5/keyblock.c k = malloc (sizeof(*k)); malloc 107 source4/heimdal/lib/krb5/keytab.c k = malloc (sizeof(*k)); malloc 66 source4/heimdal/lib/krb5/keytab_any.c a = malloc(sizeof(*a)); malloc 135 source4/heimdal/lib/krb5/keytab_any.c c->data = malloc (sizeof(struct any_cursor_extra_data)); malloc 63 source4/heimdal/lib/krb5/keytab_file.c data->data = malloc(size); malloc 84 source4/heimdal/lib/krb5/keytab_file.c *data = malloc(size + 1); malloc 296 source4/heimdal/lib/krb5/keytab_file.c d = malloc(sizeof(*d)); malloc 137 source4/heimdal/lib/krb5/keytab_keyfile.c struct akf_data *d = malloc(sizeof (struct akf_data)); malloc 262 source4/heimdal/lib/krb5/keytab_keyfile.c entry->keyblock.keyvalue.data = malloc (8); malloc 98 source4/heimdal/lib/krb5/krbhst.c *res = malloc(num_srv * sizeof(**res)); malloc 189 source4/heimdal/lib/krb5/log.c struct _heimdal_syslog_data *sd = malloc(sizeof(*sd)); malloc 247 source4/heimdal/lib/krb5/log.c struct file_data *fd = malloc(sizeof(*fd)); malloc 243 source4/heimdal/lib/krb5/mcache.c l = malloc (sizeof(*l)); malloc 99 source4/heimdal/lib/krb5/mit_glue.c *data = malloc(sizeof(**data)); malloc 170 source4/heimdal/lib/krb5/mit_glue.c *new = malloc(sizeof(**new)); malloc 49 source4/heimdal/lib/krb5/n-fold.c tmp = malloc(bytes); malloc 109 source4/heimdal/lib/krb5/n-fold.c unsigned char *tmp = malloc(maxlen); malloc 110 source4/heimdal/lib/krb5/n-fold.c unsigned char *buf = malloc(len); malloc 437 source4/heimdal/lib/krb5/pac.c cksum.checksum.data = malloc(cksum.checksum.length); malloc 569 source4/heimdal/lib/krb5/pac.c s = malloc(len); malloc 588 source4/heimdal/lib/krb5/pac.c ucs2 = malloc(sizeof(ucs2[0]) * ucs2len); malloc 607 source4/heimdal/lib/krb5/pac.c s = malloc(u8len); malloc 675 source4/heimdal/lib/krb5/pac.c s2 = malloc(len * 2); malloc 100 source4/heimdal/lib/krb5/pkinit.c integer->data = malloc(integer->length); malloc 424 source4/heimdal/lib/krb5/pkinit.c malloc(sizeof(*a->clientPublicValue->algorithm.parameters)); malloc 485 source4/heimdal/lib/krb5/pkinit.c content_info->content->data = malloc(buf->length); malloc 808 source4/heimdal/lib/krb5/pkinit.c *key = malloc (sizeof (**key)); malloc 873 source4/heimdal/lib/krb5/pkinit.c *key = malloc (sizeof (**key)); malloc 1024 source4/heimdal/lib/krb5/pkinit.c unsigned char *ptr = malloc(length + ph); malloc 1247 source4/heimdal/lib/krb5/pkinit.c dh_gen_key = malloc(size); malloc 1264 source4/heimdal/lib/krb5/pkinit.c *key = malloc (sizeof (**key)); malloc 237 source4/heimdal/lib/krb5/principal.c comp[n] = malloc(q - start + 1); malloc 269 source4/heimdal/lib/krb5/principal.c realm = malloc(q - start + 1); malloc 293 source4/heimdal/lib/krb5/principal.c comp[n] = malloc(q - start + 1); malloc 304 source4/heimdal/lib/krb5/principal.c *principal = malloc(sizeof(**principal)); malloc 475 source4/heimdal/lib/krb5/principal.c *name = malloc(len); malloc 591 source4/heimdal/lib/krb5/principal.c princ_ncomp(p, len) = malloc(comp_len + 1); malloc 726 source4/heimdal/lib/krb5/principal.c krb5_principal p = malloc(sizeof(*p)); malloc 79 source4/heimdal/lib/krb5/rd_rep.c *repl = malloc(sizeof(**repl)); malloc 294 source4/heimdal/lib/krb5/replay.c char *tmp = malloc(4 * piece->length + 1); malloc 490 source4/heimdal/lib/krb5/send_to_kdc.c context->send_to_kdc = malloc(sizeof(*context->send_to_kdc)); malloc 47 source4/heimdal/lib/krb5/set_default_realm.c *list = malloc (2 * sizeof(**list)); malloc 121 source4/heimdal/lib/krb5/store_emem.c sp = malloc(sizeof(krb5_storage)); malloc 125 source4/heimdal/lib/krb5/store_emem.c s = malloc(sizeof(*s)); malloc 134 source4/heimdal/lib/krb5/store_emem.c s->base = malloc(s->size); malloc 78 source4/heimdal/lib/krb5/store_fd.c sp = malloc(sizeof(krb5_storage)); malloc 84 source4/heimdal/lib/krb5/store_fd.c sp->data = malloc(sizeof(fd_storage)); malloc 99 source4/heimdal/lib/krb5/store_mem.c krb5_storage *sp = malloc(sizeof(krb5_storage)); malloc 103 source4/heimdal/lib/krb5/store_mem.c s = malloc(sizeof(*s)); malloc 130 source4/heimdal/lib/krb5/store_mem.c krb5_storage *sp = malloc(sizeof(krb5_storage)); malloc 134 source4/heimdal/lib/krb5/store_mem.c s = malloc(sizeof(*s)); malloc 58 source4/heimdal/lib/krb5/ticket.c tmp = malloc(sizeof(*tmp)); malloc 123 source4/heimdal/lib/krb5/transited.c path->realm = malloc(p - from + 1); malloc 205 source4/heimdal/lib/krb5/transited.c tmp = malloc(len); malloc 293 source4/heimdal/lib/krb5/transited.c tmp = malloc(tr + i - start + 1); malloc 312 source4/heimdal/lib/krb5/transited.c tmp = malloc(tr + i - start + 1); malloc 383 source4/heimdal/lib/krb5/transited.c R = malloc((*num_realms + 1) * sizeof(*R)); malloc 413 source4/heimdal/lib/krb5/transited.c s = malloc(len + 1); malloc 141 source4/heimdal/lib/ntlm/ntlm.c buf->data = malloc(buf->length); malloc 207 source4/heimdal/lib/ntlm/ntlm.c *s = malloc(desc->length + 1); malloc 263 source4/heimdal/lib/ntlm/ntlm.c buf->data = malloc(desc->length); malloc 915 source4/heimdal/lib/ntlm/ntlm.c key->data = malloc(MD5_DIGEST_LENGTH); malloc 959 source4/heimdal/lib/ntlm/ntlm.c answer->data = malloc(24); malloc 999 source4/heimdal/lib/ntlm/ntlm.c session->data = malloc(session->length); malloc 1005 source4/heimdal/lib/ntlm/ntlm.c master->data = malloc(master->length); malloc 1286 source4/heimdal/lib/ntlm/ntlm.c infotarget->data = malloc(infotarget->length); malloc 1344 source4/heimdal/lib/ntlm/ntlm.c lm->data = malloc(24); malloc 1349 source4/heimdal/lib/ntlm/ntlm.c ntlm->data = malloc(24); malloc 63 source4/heimdal/lib/roken/base64.c p = s = (char *) malloc(size * 4 / 3 + 4); malloc 52 source4/heimdal/lib/roken/copyhostent.c res = malloc (sizeof (*res)); malloc 67 source4/heimdal/lib/roken/copyhostent.c res->h_aliases = malloc ((n + 1) * sizeof(*res->h_aliases)); malloc 84 source4/heimdal/lib/roken/copyhostent.c res->h_addr_list = malloc ((n + 1) * sizeof(*res->h_addr_list)); malloc 93 source4/heimdal/lib/roken/copyhostent.c res->h_addr_list[i] = malloc (h->h_length); malloc 79 source4/heimdal/lib/roken/dumpdata.c *buf = malloc(sb.st_size); malloc 51 source4/heimdal/lib/roken/emalloc.c void *tmp = malloc (sz); malloc 116 source4/heimdal/lib/roken/getaddrinfo.c a = malloc (sizeof (*a)); malloc 143 source4/heimdal/lib/roken/getaddrinfo.c a->ai_addr = malloc (sizeof(*sin4)); malloc 163 source4/heimdal/lib/roken/getaddrinfo.c a->ai_addr = malloc (sizeof(*sin6)); malloc 66 source4/heimdal/lib/roken/hex.c p = malloc(size * 2 + 1); malloc 200 source4/heimdal/lib/roken/resolve.c rr->u.mx = (struct mx_record*)malloc(sizeof(struct mx_record) + malloc 224 source4/heimdal/lib/roken/resolve.c (struct srv_record*)malloc(sizeof(struct srv_record) + malloc 241 source4/heimdal/lib/roken/resolve.c rr->u.txt = (char*)malloc(*p + 1); malloc 259 source4/heimdal/lib/roken/resolve.c rr->u.key = malloc (sizeof(*rr->u.key) + key_len - 1); malloc 296 source4/heimdal/lib/roken/resolve.c rr->u.sig = malloc(sizeof(*rr->u.sig) malloc 328 source4/heimdal/lib/roken/resolve.c rr->u.cert = malloc (sizeof(*rr->u.cert) + cert_len - 1); malloc 351 source4/heimdal/lib/roken/resolve.c rr->u.sshfp = malloc (sizeof(*rr->u.sshfp) + sshfp_len - 1); malloc 373 source4/heimdal/lib/roken/resolve.c rr->u.ds = malloc (sizeof(*rr->u.ds) + digest_len - 1); malloc 387 source4/heimdal/lib/roken/resolve.c rr->u.data = (unsigned char*)malloc(size); malloc 539 source4/heimdal/lib/roken/resolve.c reply = malloc(size); malloc 625 source4/heimdal/lib/roken/resolve.c srvs = malloc(num_srv * sizeof(*srvs)); malloc 134 source4/heimdal/lib/roken/rtbl.c col = malloc (sizeof (*col)); malloc 86 source4/heimdal/lib/roken/strcollect.c char **ret = malloc (initial * sizeof(char *)); malloc 74 source4/heimdal/lib/roken/strpool.c p = malloc(sizeof(*p)); malloc 140 source4/heimdal/lib/roken/vis.c extra = malloc((size_t)((o - orig) + MAXEXTRAS)); \ malloc 288 source4/heimdal/lib/wind/normalize.c tmp = malloc(tmp_len * sizeof(uint32_t)); malloc 63 source4/heimdal/lib/wind/stringprep.c uint32_t *tmp = malloc(tmp_len * sizeof(uint32_t)); malloc 552 source4/kdc/hdb-samba4.c entry_ex->entry.principal = malloc(sizeof(*(entry_ex->entry.principal))); malloc 607 source4/kdc/hdb-samba4.c entry_ex->entry.modified_by = (Event *) malloc(sizeof(Event)); malloc 625 source4/kdc/hdb-samba4.c entry_ex->entry.valid_end = malloc(sizeof(*entry_ex->entry.valid_end)); malloc 640 source4/kdc/hdb-samba4.c entry_ex->entry.pw_end = malloc(sizeof(*entry_ex->entry.pw_end)); malloc 664 source4/kdc/hdb-samba4.c entry_ex->entry.etypes = malloc(sizeof(*(entry_ex->entry.etypes))); malloc 815 source4/kdc/hdb-samba4.c entry_ex->entry.principal = malloc(sizeof(*(entry_ex->entry.principal))); malloc 853 source4/kdc/hdb-samba4.c entry_ex->entry.etypes = malloc(sizeof(*(entry_ex->entry.etypes))); malloc 207 source4/kdc/pac-glue.c pa.padata_value.data = malloc(pa.padata_value.length); malloc 87 source4/lib/smbreadline/smbreadline.c line = (char *)malloc(BUFSIZ); malloc 1248 source4/lib/wmi/wmi_wrap.c PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); malloc 1856 source4/lib/wmi/wmi_wrap.c void *pack = malloc(size); malloc 2630 source4/lib/wmi/wmi_wrap.c *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); malloc 4177 source4/lib/wmi/wmi_wrap.c swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); malloc 4180 source4/lib/wmi/wmi_wrap.c gv->name = (char *)malloc(size); malloc 4254 source4/lib/wmi/wmi_wrap.c char *ndoc = (char*)malloc(ldoc + lptr + 10); malloc 555 source4/torture/nbench/nbio.c buf = malloc(size); malloc 596 source4/torture/nbench/nbio.c buf = malloc(size); malloc 721 source4/torture/nbench/nbio.c buf = malloc(size); malloc 350 source4/utils/ntlm_auth.c tok = (char *)malloc(tok_len);