crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
165
oblock = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
166
dbuf = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
238
oblock = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
242
dbuf = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
291
oblock = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/aes.c
294
dbuf = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
164
oblock = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
165
dbuf = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
237
oblock = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
241
dbuf = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
290
oblock = OPENSSL_malloc(dlen);
crypto/krb5/src/lib/crypto/openssl/enc_provider/camellia.c
293
dbuf = OPENSSL_malloc(dlen);
crypto/openssl/apps/lib/apps.c
641
void *vp = OPENSSL_malloc(sz);
crypto/openssl/apps/lib/apps_ui.c
147
void *vp = OPENSSL_malloc(sz);
crypto/openssl/apps/lib/engine.c
123
new_uri = OPENSSL_malloc(uri_sz);
crypto/openssl/apps/lib/vms_decc_argv.c
59
newargv = OPENSSL_malloc(sizeof(*newargv) * (count + 1));
crypto/openssl/apps/s_client.c
3430
curve = OPENSSL_malloc(++namelen);
crypto/openssl/apps/x509.c
1328
if ((names = OPENSSL_malloc(sizeof(char *) * nn)) == NULL)
crypto/openssl/crypto/asn1/a_bitstr.c
121
s = OPENSSL_malloc((int)len);
crypto/openssl/crypto/asn1/a_digest.c
39
if ((str = OPENSSL_malloc(inl)) == NULL)
crypto/openssl/crypto/asn1/a_dup.c
30
b = OPENSSL_malloc(i + 10);
crypto/openssl/crypto/asn1/a_i2d_fp.c
44
b = OPENSSL_malloc(n);
crypto/openssl/crypto/asn1/a_int.c
439
s = OPENSSL_malloc((int)len + 1);
crypto/openssl/crypto/asn1/a_mbstr.c
196
if ((p = OPENSSL_malloc(outlen + 1)) == NULL) {
crypto/openssl/crypto/asn1/a_object.c
135
tmp = OPENSSL_malloc(tmpsize);
crypto/openssl/crypto/asn1/a_object.c
194
if ((p = OPENSSL_malloc(i + 1)) == NULL)
crypto/openssl/crypto/asn1/a_object.c
302
data = OPENSSL_malloc(length);
crypto/openssl/crypto/asn1/a_object.c
34
if ((p = allocated = OPENSSL_malloc(objsize)) == NULL)
crypto/openssl/crypto/asn1/a_sign.c
266
buf_out = OPENSSL_malloc(outll);
crypto/openssl/crypto/asn1/a_sign.c
79
buf_in = OPENSSL_malloc(inll);
crypto/openssl/crypto/asn1/a_sign.c
81
buf_out = OPENSSL_malloc(outll);
crypto/openssl/crypto/asn1/a_strex.c
281
if ((der_buf = OPENSSL_malloc(der_len)) == NULL)
crypto/openssl/crypto/asn1/a_verify.c
56
buf_in = OPENSSL_malloc((unsigned int)inl);
crypto/openssl/crypto/asn1/asn1_gen.c
205
new_der = OPENSSL_malloc(len);
crypto/openssl/crypto/asn1/asn1_lib.c
456
if ((result = OPENSSL_malloc(length + 1)) == NULL)
crypto/openssl/crypto/asn1/asn_mime.c
883
mhdr = OPENSSL_malloc(sizeof(*mhdr));
crypto/openssl/crypto/asn1/asn_mime.c
917
mparam = OPENSSL_malloc(sizeof(*mparam));
crypto/openssl/crypto/asn1/asn_moid.c
90
if ((lntmp = OPENSSL_malloc((p - ln) + 1)) == NULL)
crypto/openssl/crypto/asn1/bio_asn1.c
121
if ((ctx->buf = OPENSSL_malloc(size)) == NULL)
crypto/openssl/crypto/asn1/bio_ndef.c
143
if ((p = OPENSSL_malloc(derlen)) == NULL)
crypto/openssl/crypto/asn1/bio_ndef.c
217
if ((p = OPENSSL_malloc(derlen)) == NULL)
crypto/openssl/crypto/asn1/p5_pbe.c
53
sstr = OPENSSL_malloc(saltlen);
crypto/openssl/crypto/asn1/p5_pbev2.c
206
if ((osalt->data = OPENSSL_malloc(saltlen)) == NULL)
crypto/openssl/crypto/asn1/t_pkey.c
75
buf = tmp = OPENSSL_malloc(buflen);
crypto/openssl/crypto/asn1/tasn_enc.c
413
derlst = OPENSSL_malloc(sk_const_ASN1_VALUE_num(sk)
crypto/openssl/crypto/asn1/tasn_enc.c
417
tmpdat = OPENSSL_malloc(skcontlen);
crypto/openssl/crypto/asn1/tasn_enc.c
65
if ((buf = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/asn1/tasn_new.c
299
if ((typ = OPENSSL_malloc(sizeof(*typ))) == NULL)
crypto/openssl/crypto/asn1/tasn_utl.c
175
if ((enc->enc = OPENSSL_malloc(inlen)) == NULL)
crypto/openssl/crypto/async/arch/async_posix.c
84
return OPENSSL_malloc(*num);
crypto/openssl/crypto/async/async.c
256
ctx->currjob->funcargs = OPENSSL_malloc(size);
crypto/openssl/crypto/async/async.c
42
nctx = OPENSSL_malloc(sizeof(*nctx));
crypto/openssl/crypto/bio/bf_buff.c
292
p1 = OPENSSL_malloc((size_t)num);
crypto/openssl/crypto/bio/bf_buff.c
323
p1 = OPENSSL_malloc((size_t)num);
crypto/openssl/crypto/bio/bf_buff.c
328
p2 = OPENSSL_malloc((size_t)num);
crypto/openssl/crypto/bio/bf_buff.c
52
ctx->ibuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
crypto/openssl/crypto/bio/bf_buff.c
58
ctx->obuf = OPENSSL_malloc(DEFAULT_BUFFER_SIZE);
crypto/openssl/crypto/bio/bf_lbuf.c
255
p = OPENSSL_malloc((size_t)obs);
crypto/openssl/crypto/bio/bf_lbuf.c
60
if ((ctx = OPENSSL_malloc(sizeof(*ctx))) == NULL)
crypto/openssl/crypto/bio/bf_lbuf.c
62
ctx->obuf = OPENSSL_malloc(DEFAULT_LINEBUFFER_SIZE);
crypto/openssl/crypto/bio/bio_print.c
851
if ((*buffer = OPENSSL_malloc(*maxlen)) == NULL)
crypto/openssl/crypto/bio/bss_bio.c
618
b1->buf = OPENSSL_malloc(b1->size);
crypto/openssl/crypto/bio/bss_bio.c
626
b2->buf = OPENSSL_malloc(b2->size);
crypto/openssl/crypto/bio/bss_dgram.c
2159
authchunks = OPENSSL_malloc(optlen);
crypto/openssl/crypto/bio/bss_dgram.c
2369
authkey = OPENSSL_malloc(sockopt_len);
crypto/openssl/crypto/bio/bss_dgram_pair.c
37
r->start = OPENSSL_malloc(nbytes);
crypto/openssl/crypto/bio/bss_log.c
162
if ((buf = OPENSSL_malloc(inl + 1)) == NULL)
crypto/openssl/crypto/bio/bss_log.c
279
#define OPCDEF_MALLOC OPENSSL_malloc
crypto/openssl/crypto/bio/ossl_core_bio.c
25
OSSL_CORE_BIO *cb = OPENSSL_malloc(sizeof(*cb));
crypto/openssl/crypto/bn/bn_conv.c
23
buf = OPENSSL_malloc(a->top * BN_BYTES * 2 + 2);
crypto/openssl/crypto/bn/bn_conv.c
66
bn_data = OPENSSL_malloc(bn_data_num * sizeof(BN_ULONG));
crypto/openssl/crypto/bn/bn_conv.c
67
buf = OPENSSL_malloc(tbytes);
crypto/openssl/crypto/bn/bn_ctx.c
273
if ((newitems = OPENSSL_malloc(sizeof(*newitems) * newsize)) == NULL)
crypto/openssl/crypto/bn/bn_ctx.c
324
if ((item = OPENSSL_malloc(sizeof(*item))) == NULL)
crypto/openssl/crypto/bn/bn_exp.c
729
if ((powerbufFree = OPENSSL_malloc(powerbufLen + MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH))
crypto/openssl/crypto/bn/bn_gf2m.c
1106
arr = OPENSSL_malloc(sizeof(*arr) * max);
crypto/openssl/crypto/bn/bn_gf2m.c
467
arr = OPENSSL_malloc(sizeof(*arr) * max);
crypto/openssl/crypto/bn/bn_gf2m.c
527
arr = OPENSSL_malloc(sizeof(*arr) * max);
crypto/openssl/crypto/bn/bn_gf2m.c
910
arr = OPENSSL_malloc(sizeof(*arr) * max);
crypto/openssl/crypto/bn/bn_gf2m.c
972
arr = OPENSSL_malloc(sizeof(*arr) * max);
crypto/openssl/crypto/bn/bn_intern.c
31
r = OPENSSL_malloc(1);
crypto/openssl/crypto/bn/bn_intern.c
58
r = OPENSSL_malloc(len + 1); /*
crypto/openssl/crypto/bn/bn_lib.c
1096
if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
crypto/openssl/crypto/bn/bn_mod.c
66
tp = OPENSSL_malloc(mtop * sizeof(BN_ULONG));
crypto/openssl/crypto/bn/bn_mont.c
231
if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
crypto/openssl/crypto/bn/bn_rand.c
319
k_bytes = OPENSSL_malloc(num_k_bytes);
crypto/openssl/crypto/bn/bn_rand.c
45
buf = OPENSSL_malloc(bytes);
crypto/openssl/crypto/bn/rsaz_exp_x2.c
248
storage = (BN_ULONG *)OPENSSL_malloc(storage_len_bytes);
crypto/openssl/crypto/cmac/cmac.c
58
if ((ctx = OPENSSL_malloc(sizeof(*ctx))) == NULL)
crypto/openssl/crypto/cmp/cmp_hdr.c
123
unsigned char *bytes = OPENSSL_malloc(len);
crypto/openssl/crypto/cms/cms_dh.c
60
if ((buf = OPENSSL_malloc(plen)) == NULL)
crypto/openssl/crypto/cms/cms_enc.c
128
tkey = OPENSSL_malloc(tkeylen);
crypto/openssl/crypto/cms/cms_enc.c
216
if ((ec->key = OPENSSL_malloc(keylen)) == NULL)
crypto/openssl/crypto/cms/cms_env.c
1316
|| (tag = OPENSSL_malloc(taglen)) == NULL
crypto/openssl/crypto/cms/cms_env.c
543
ek = OPENSSL_malloc(eklen);
crypto/openssl/crypto/cms/cms_env.c
894
wkey = OPENSSL_malloc(ec->keylen + 8);
crypto/openssl/crypto/cms/cms_env.c
975
ukey = OPENSSL_malloc(kekri->encryptedKey->length - 8);
crypto/openssl/crypto/cms/cms_kari.c
233
out = OPENSSL_malloc(outlen);
crypto/openssl/crypto/cms/cms_pwri.c
218
if ((tmp = OPENSSL_malloc(inlen)) == NULL)
crypto/openssl/crypto/cms/cms_pwri.c
385
key = OPENSSL_malloc(keylen);
crypto/openssl/crypto/cms/cms_pwri.c
395
key = OPENSSL_malloc(pwri->encryptedKey->length);
crypto/openssl/crypto/cms/cms_sd.c
302
if (len <= 0 || (pp = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/cms/cms_sd.c
327
if (len <= 0 || (pp = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/cms/cms_sd.c
796
if (siglen == 0 || (sig = OPENSSL_malloc(siglen)) == NULL)
crypto/openssl/crypto/cms/cms_sd.c
812
if (siglen == 0 || (sig = OPENSSL_malloc(siglen)) == NULL)
crypto/openssl/crypto/cms/cms_sd.c
907
abuf = OPENSSL_malloc(siglen);
crypto/openssl/crypto/comp/c_brotli.c
521
ctx->decode.buf = OPENSSL_malloc(ctx->decode.bufsize);
crypto/openssl/crypto/comp/c_brotli.c
595
ctx->encode.buf = OPENSSL_malloc(ctx->encode.bufsize);
crypto/openssl/crypto/comp/c_zlib.c
457
ctx->ibuf = OPENSSL_malloc(ctx->ibufsize);
crypto/openssl/crypto/comp/c_zlib.c
519
ctx->obuf = OPENSSL_malloc(ctx->obufsize);
crypto/openssl/crypto/comp/c_zstd.c
594
ctx->decompress.buffer = OPENSSL_malloc(ctx->decompress.bufsize);
crypto/openssl/crypto/comp/c_zstd.c
654
ctx->compress.outbuf.dst = OPENSSL_malloc(ctx->compress.bufsize);
crypto/openssl/crypto/comp_methods.c
38
comp = OPENSSL_malloc(sizeof(*comp));
crypto/openssl/crypto/conf/conf_api.c
193
if ((v = OPENSSL_malloc(sizeof(*v))) == NULL)
crypto/openssl/crypto/conf/conf_api.c
196
if ((v->section = OPENSSL_malloc(i)) == NULL)
crypto/openssl/crypto/conf/conf_def.c
115
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/crypto/conf/conf_def.c
471
include_path = OPENSSL_malloc(newlen);
crypto/openssl/crypto/conf/conf_def.c
533
if ((v = OPENSSL_malloc(sizeof(*v))) == NULL)
crypto/openssl/crypto/conf/conf_mod.c
437
imod = OPENSSL_malloc(sizeof(*imod));
crypto/openssl/crypto/conf/conf_mod.c
707
file = OPENSSL_malloc(size);
crypto/openssl/crypto/crmf/crmf_lib.c
809
|| (ek = OPENSSL_malloc(eksize)) == NULL)
crypto/openssl/crypto/crmf/crmf_lib.c
823
if ((iv = OPENSSL_malloc(EVP_CIPHER_get_iv_length(cipher))) == NULL)
crypto/openssl/crypto/crmf/crmf_lib.c
832
if ((out = OPENSSL_malloc(enc->encValue->length + EVP_CIPHER_get_block_size(cipher))) == NULL
crypto/openssl/crypto/crmf/crmf_pbm.c
149
if ((mac_res = OPENSSL_malloc(EVP_MAX_MD_SIZE)) == NULL)
crypto/openssl/crypto/crmf/crmf_pbm.c
54
if ((salt = OPENSSL_malloc(slen)) == NULL)
crypto/openssl/crypto/ct/ct_b64.c
36
outbuf = OPENSSL_malloc(outlen);
crypto/openssl/crypto/ct/ct_oct.c
180
pstart = p = OPENSSL_malloc(len);
crypto/openssl/crypto/ct/ct_oct.c
225
pstart = p = OPENSSL_malloc(len);
crypto/openssl/crypto/ct/ct_oct.c
329
if ((*pp = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/ct/ct_sct_ctx.c
216
md = OPENSSL_malloc(SHA256_DIGEST_LENGTH);
crypto/openssl/crypto/dh/dh_key.c
440
pbuf = OPENSSL_malloc(p_size);
crypto/openssl/crypto/dh/dh_meth.c
47
DH_METHOD *ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/crypto/dh/dh_pmeth.c
443
if ((Z = OPENSSL_malloc(Zlen)) == NULL)
crypto/openssl/crypto/dsa/dsa_meth.c
48
DSA_METHOD *ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/crypto/dsa/dsa_pmeth.c
40
DSA_PKEY_CTX *dctx = OPENSSL_malloc(sizeof(*dctx));
crypto/openssl/crypto/dso/dso_dl.c
194
merged = OPENSSL_malloc(len + 2);
crypto/openssl/crypto/dso/dso_dl.c
225
translated = OPENSSL_malloc(rsize);
crypto/openssl/crypto/dso/dso_dlfcn.c
234
merged = OPENSSL_malloc(len + 2);
crypto/openssl/crypto/dso/dso_dlfcn.c
258
translated = OPENSSL_malloc(rsize);
crypto/openssl/crypto/dso/dso_dlfcn.c
337
if ((ldinfos = OPENSSL_malloc(DLFCN_LDINFO_SIZE)) == NULL) {
crypto/openssl/crypto/dso/dso_dlfcn.c
370
if ((buffer = OPENSSL_malloc(buffer_sz)) != NULL) {
crypto/openssl/crypto/dso/dso_lib.c
311
filename = OPENSSL_malloc(len);
crypto/openssl/crypto/dso/dso_vms.c
25
#define DSO_MALLOC OPENSSL_malloc
crypto/openssl/crypto/dso/dso_vms.c
458
merged = OPENSSL_malloc(nam.NAMX_ESL + 1);
crypto/openssl/crypto/dso/dso_vms.c
485
if ((translated = OPENSSL_malloc(rsize)) != NULL) {
crypto/openssl/crypto/dso/dso_win32.c
112
p = OPENSSL_malloc(sizeof(*p));
crypto/openssl/crypto/dso/dso_win32.c
332
result = OPENSSL_malloc(len + 1);
crypto/openssl/crypto/dso/dso_win32.c
452
translated = OPENSSL_malloc(len);
crypto/openssl/crypto/ec/ec_ameth.c
83
penc = OPENSSL_malloc(penclen);
crypto/openssl/crypto/ec/ec_asn1.c
1160
if ((*out = OPENSSL_malloc(buf_len)) == NULL)
crypto/openssl/crypto/ec/ec_asn1.c
328
if ((a_buf = OPENSSL_malloc(len)) == NULL
crypto/openssl/crypto/ec/ec_asn1.c
329
|| (b_buf = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/ec/ec_asn1.c
688
if ((ret->seed = OPENSSL_malloc(params->curve->seed->length)) == NULL)
crypto/openssl/crypto/ec/ec_curve.c
3284
param_bytes = OPENSSL_malloc(param_len * NUM_BN_FIELDS);
crypto/openssl/crypto/ec/ec_deprecated.c
50
if ((buf = OPENSSL_malloc(buf_len)) == NULL)
crypto/openssl/crypto/ec/ec_key.c
1067
if ((buf = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/ec/ec_lib.c
257
if ((dest->seed = OPENSSL_malloc(src->seed_len)) == NULL)
crypto/openssl/crypto/ec/ec_lib.c
541
if ((group->seed = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/ec/ec_mult.c
505
wsize = OPENSSL_malloc(totalnum * sizeof(wsize[0]));
crypto/openssl/crypto/ec/ec_mult.c
506
wNAF_len = OPENSSL_malloc(totalnum * sizeof(wNAF_len[0]));
crypto/openssl/crypto/ec/ec_mult.c
508
wNAF = OPENSSL_malloc((totalnum + 1) * sizeof(wNAF[0]));
crypto/openssl/crypto/ec/ec_mult.c
509
val_sub = OPENSSL_malloc(totalnum * sizeof(val_sub[0]));
crypto/openssl/crypto/ec/ec_mult.c
623
wNAF[i] = OPENSSL_malloc(wNAF_len[i]);
crypto/openssl/crypto/ec/ec_mult.c
651
val = OPENSSL_malloc((num_val + 1) * sizeof(val[0]));
crypto/openssl/crypto/ec/ec_mult.c
879
points = OPENSSL_malloc(sizeof(*points) * (num + 1));
crypto/openssl/crypto/ec/ec_oct.c
147
if ((buf = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/ec/ec_pmeth.c
230
if ((ktmp = OPENSSL_malloc(ktmplen)) == NULL)
crypto/openssl/crypto/ec/ec_print.c
29
ret = OPENSSL_malloc(buf_len * 2 + 2);
crypto/openssl/crypto/ec/ec_print.c
63
oct_buf = OPENSSL_malloc(len);
crypto/openssl/crypto/ec/ecdh_ossl.c
124
if ((buf = OPENSSL_malloc(buflen)) == NULL)
crypto/openssl/crypto/ec/ecp_nistp224.c
1464
tmp_felems = OPENSSL_malloc(sizeof(felem) * (num_points * 17 + 1));
crypto/openssl/crypto/ec/ecp_nistp256.c
2080
secrets = OPENSSL_malloc(sizeof(*secrets) * num_points);
crypto/openssl/crypto/ec/ecp_nistp256.c
2081
pre_comp = OPENSSL_malloc(sizeof(*pre_comp) * num_points);
crypto/openssl/crypto/ec/ecp_nistp256.c
2083
tmp_smallfelems = OPENSSL_malloc(sizeof(*tmp_smallfelems) * (num_points * 17 + 1));
crypto/openssl/crypto/ec/ecp_nistp384.c
1804
tmp_felems = OPENSSL_malloc(sizeof(*tmp_felems) * (num_points * 17 + 1));
crypto/openssl/crypto/ec/ecp_nistp521.c
1898
tmp_felems = OPENSSL_malloc(sizeof(*tmp_felems) * (num_points * 17 + 1));
crypto/openssl/crypto/ec/ecp_nistz256.c
1101
new_scalars = OPENSSL_malloc((num + 1) * sizeof(BIGNUM *));
crypto/openssl/crypto/ec/ecp_nistz256.c
1105
new_points = OPENSSL_malloc((num + 1) * sizeof(EC_POINT *));
crypto/openssl/crypto/ec/ecp_nistz256.c
625
|| (table_storage = OPENSSL_malloc((num * 16 + 5) * sizeof(P256_POINT) + 64)) == NULL
crypto/openssl/crypto/ec/ecp_nistz256.c
626
|| (p_str = OPENSSL_malloc(num * 33 * sizeof(unsigned char))) == NULL
crypto/openssl/crypto/ec/ecp_nistz256.c
627
|| (scalars = OPENSSL_malloc(num * sizeof(BIGNUM *))) == NULL)
crypto/openssl/crypto/ec/ecp_nistz256.c
852
if ((precomp_storage = OPENSSL_malloc(37 * 64 * sizeof(P256_POINT_AFFINE) + 64)) == NULL)
crypto/openssl/crypto/ec/ecp_sm2p256.c
465
|| (scalars = OPENSSL_malloc(num * sizeof(BIGNUM *))) == NULL) {
crypto/openssl/crypto/ec/ecp_smpl.c
1229
prod_Z = OPENSSL_malloc(num * sizeof(prod_Z[0]));
crypto/openssl/crypto/encode_decode/decoder_pkey.c
765
DECODER_CACHE *cache = OPENSSL_malloc(sizeof(*cache));
crypto/openssl/crypto/encode_decode/encoder_pkey.c
288
encoder_data.id_names = OPENSSL_malloc(end * sizeof(int));
crypto/openssl/crypto/engine/eng_lib.c
132
if ((item = OPENSSL_malloc(sizeof(*item))) == NULL)
crypto/openssl/crypto/engine/eng_table.c
106
fnd = OPENSSL_malloc(sizeof(*fnd));
crypto/openssl/crypto/err/err.c
851
} else if ((str = OPENSSL_malloc(size = 81)) == NULL) {
crypto/openssl/crypto/evp/asymcipher.c
335
|| (*outp = OPENSSL_malloc(*outlenp)) == NULL)
crypto/openssl/crypto/evp/ctrl_params_translate.c
473
= OPENSSL_malloc(ctx->buflen))
crypto/openssl/crypto/evp/digest.c
701
out->md_data = OPENSSL_malloc(out->digest->ctx_size);
crypto/openssl/crypto/evp/e_aes.c
1480
if ((gctx->iv = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/evp/e_aes.c
1597
if ((gctx_out->iv = OPENSSL_malloc(len)) == NULL)
crypto/openssl/crypto/evp/e_aes.c
2683
if ((gctx->iv = OPENSSL_malloc(arg)) == NULL)
crypto/openssl/crypto/evp/e_aes.c
2782
if ((gctx_out->iv = OPENSSL_malloc(gctx->ivlen)) == NULL)
crypto/openssl/crypto/evp/e_aria.c
285
if ((gctx->iv = OPENSSL_malloc(arg)) == NULL)
crypto/openssl/crypto/evp/e_aria.c
386
if ((gctx_out->iv = OPENSSL_malloc(gctx->ivlen)) == NULL)
crypto/openssl/crypto/evp/evp_enc.c
1828
out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size);
crypto/openssl/crypto/evp/evp_fetch.c
483
propstr = OPENSSL_malloc(strsz);
crypto/openssl/crypto/evp/evp_fetch.c
600
propstr = OPENSSL_malloc(sz);
crypto/openssl/crypto/evp/evp_lib.c
1310
if ((der = OPENSSL_malloc(derl)) != NULL) {
crypto/openssl/crypto/evp/evp_lib.c
1356
if ((aid = OPENSSL_malloc(aid_len)) != NULL) {
crypto/openssl/crypto/evp/evp_lib.c
1427
&& (der = OPENSSL_malloc(derl)) != NULL) {
crypto/openssl/crypto/evp/evp_lib.c
1473
if ((aid = OPENSSL_malloc(aid_len)) != NULL) {
crypto/openssl/crypto/evp/kdf_lib.c
62
dst = OPENSSL_malloc(sizeof(*dst));
crypto/openssl/crypto/evp/keymgmt_lib.c
268
p = OPENSSL_malloc(sizeof(*p));
crypto/openssl/crypto/evp/mac_lib.c
299
out = OPENSSL_malloc(len);
crypto/openssl/crypto/evp/mac_lib.c
57
dst = OPENSSL_malloc(sizeof(*dst));
crypto/openssl/crypto/evp/p_lib.c
1474
buf = OPENSSL_malloc(return_size);
crypto/openssl/crypto/evp/p_open.c
45
if ((key = OPENSSL_malloc(keylen)) == NULL)
crypto/openssl/crypto/ex_data.c
180
a = (EX_CALLBACK *)OPENSSL_malloc(sizeof(*a));
crypto/openssl/crypto/ex_data.c
242
storage = OPENSSL_malloc(sizeof(*storage) * mx);
crypto/openssl/crypto/ex_data.c
304
storage = OPENSSL_malloc(sizeof(*storage) * mx);
crypto/openssl/crypto/ex_data.c
388
storage = OPENSSL_malloc(sizeof(*storage) * mx);
crypto/openssl/crypto/ffc/ffc_params_generate.c
646
seed_tmp = OPENSSL_malloc(seedlen);
crypto/openssl/crypto/ffc/ffc_params_generate.c
657
seed = OPENSSL_malloc(seedlen);
crypto/openssl/crypto/getenv.c
67
val = OPENSSL_malloc(vallen);
crypto/openssl/crypto/hashtable/hashtable.c
164
ret = *freeptr = OPENSSL_malloc(sizeof(struct ht_neighborhood_st) * len);
crypto/openssl/crypto/hashtable/hashtable.c
604
tmp = OPENSSL_malloc(nvsize);
crypto/openssl/crypto/hpke/hpke.c
1016
lpub = OPENSSL_malloc(OSSL_HPKE_MAXSIZE);
crypto/openssl/crypto/hpke/hpke.c
522
ctx->shared_secret = OPENSSL_malloc(lsslen);
crypto/openssl/crypto/hpke/hpke.c
618
ctx->shared_secret = OPENSSL_malloc(lsslen);
crypto/openssl/crypto/hpke/hpke.c
756
ctx->nonce = OPENSSL_malloc(ctx->noncelen);
crypto/openssl/crypto/hpke/hpke.c
769
ctx->key = OPENSSL_malloc(ctx->keylen);
crypto/openssl/crypto/hpke/hpke.c
783
ctx->exportersec = OPENSSL_malloc(ctx->exporterseclen);
crypto/openssl/crypto/hpke/hpke_util.c
316
labeled_ikm = OPENSSL_malloc(labeled_ikmlen);
crypto/openssl/crypto/hpke/hpke_util.c
366
labeled_info = OPENSSL_malloc(labeled_infolen);
crypto/openssl/crypto/http/http_client.c
111
rctx->buf = OPENSSL_malloc(rctx->buf_size);
crypto/openssl/crypto/http/http_client.c
1422
out = OPENSSL_malloc(outl + 1);
crypto/openssl/crypto/http/http_client.c
1445
char *mbuf = OPENSSL_malloc(BUF_SIZE);
crypto/openssl/crypto/http/http_client.c
1486
proxyauth = OPENSSL_malloc(len + 1);
crypto/openssl/crypto/http/http_lib.c
177
if ((*ppath = OPENSSL_malloc(buflen)) == NULL)
crypto/openssl/crypto/init.c
750
if ((newhand = OPENSSL_malloc(sizeof(*newhand))) == NULL)
crypto/openssl/crypto/initthread.c
434
hand = OPENSSL_malloc(sizeof(*hand));
crypto/openssl/crypto/lhash/lhash.c
130
if ((nn = OPENSSL_malloc(sizeof(*nn))) == NULL) {
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
629
uint8_t *enc = OPENSSL_malloc(enc_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_encoders.c
716
uint8_t *enc = OPENSSL_malloc(enc_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
326
polys = OPENSSL_malloc(sizeof(*polys) * (k + l + k * l));
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
389
polys = OPENSSL_malloc(sizeof(*polys) * (2 * k));
crypto/openssl/crypto/ml_dsa/ml_dsa_key.c
470
if ((out->seed = OPENSSL_malloc(seed_len)) == NULL)
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
235
alloc = OPENSSL_malloc(w1_encoded_len
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
347
encoded = OPENSSL_malloc(encoded_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_sign.c
84
alloc = OPENSSL_malloc(alloc_len);
crypto/openssl/crypto/ml_dsa/ml_dsa_vector.h
34
v->poly = OPENSSL_malloc(num_polys * sizeof(POLY));
crypto/openssl/crypto/ml_kem/ml_kem.c
1934
if ((key = OPENSSL_malloc(sizeof(*key))) == NULL)
crypto/openssl/crypto/ml_kem/ml_kem.c
2114
if (add_storage(OPENSSL_malloc(vinfo->puballoc), 0, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2142
if (add_storage(OPENSSL_malloc(vinfo->prvalloc), 1, key))
crypto/openssl/crypto/ml_kem/ml_kem.c
2190
if (add_storage(OPENSSL_malloc(vinfo->prvalloc), 1, key))
crypto/openssl/crypto/modes/gcm128.c
1618
if ((ret = OPENSSL_malloc(sizeof(*ret))) != NULL)
crypto/openssl/crypto/modes/ocb128.c
137
if ((octx = OPENSSL_malloc(sizeof(*octx))) != NULL) {
crypto/openssl/crypto/modes/ocb128.c
158
if ((ctx->l = OPENSSL_malloc(ctx->max_l_index * 16)) == NULL)
crypto/openssl/crypto/modes/ocb128.c
203
if ((dest->l = OPENSSL_malloc(src->max_l_index * 16)) == NULL)
crypto/openssl/crypto/modes/siv128.c
149
if ((ctx = OPENSSL_malloc(sizeof(*ctx))) != NULL) {
crypto/openssl/crypto/o_fopen.c
92
if ((newname = OPENSSL_malloc(strlen(filename) + 1)) == NULL)
crypto/openssl/crypto/o_str.c
271
if ((buf = OPENSSL_malloc(buf_n)) == NULL)
crypto/openssl/crypto/o_str.c
354
if ((tmp = OPENSSL_malloc(tmp_n)) == NULL)
crypto/openssl/crypto/objects/o_names.c
200
onp = OPENSSL_malloc(sizeof(*onp));
crypto/openssl/crypto/objects/o_names.c
338
d.names = OPENSSL_malloc(sizeof(*d.names) * lh_OBJ_NAME_num_items(names_lh));
crypto/openssl/crypto/objects/obj_dat.c
270
if ((ao[ADDED_NID] = OPENSSL_malloc(sizeof(*ao[0]))) == NULL
crypto/openssl/crypto/objects/obj_dat.c
273
&& (ao[ADDED_DATA] = OPENSSL_malloc(sizeof(*ao[0]))) == NULL)
crypto/openssl/crypto/objects/obj_dat.c
275
&& (ao[ADDED_SNAME] = OPENSSL_malloc(sizeof(*ao[0]))) == NULL)
crypto/openssl/crypto/objects/obj_dat.c
277
&& (ao[ADDED_LNAME] = OPENSSL_malloc(sizeof(*ao[0]))) == NULL))
crypto/openssl/crypto/objects/obj_dat.c
450
if ((buf = OPENSSL_malloc(j)) == NULL)
crypto/openssl/crypto/objects/obj_xref.c
158
if ((ntr = OPENSSL_malloc(sizeof(*ntr))) == NULL)
crypto/openssl/crypto/ocsp/ocsp_ext.c
254
os.data = OPENSSL_malloc(os.length);
crypto/openssl/crypto/param_build.c
475
params = OPENSSL_malloc(total);
crypto/openssl/crypto/params.c
1363
char *const q = OPENSSL_malloc(alloc_sz);
crypto/openssl/crypto/params.c
1637
res = OPENSSL_malloc(sz);
crypto/openssl/crypto/passphrase.c
44
: OPENSSL_malloc(1);
crypto/openssl/crypto/pem/pem_lib.c
361
data = OPENSSL_malloc((unsigned int)dsize + EVP_MAX_BLOCK_LENGTH);
crypto/openssl/crypto/pem/pem_lib.c
663
buf = OPENSSL_malloc(PEM_BUFSIZE * 8);
crypto/openssl/crypto/pem/pem_sign.c
35
m = OPENSSL_malloc(EVP_PKEY_get_size(pkey));
crypto/openssl/crypto/pem/pvkfmt.c
1052
start = p = OPENSSL_malloc(outlen);
crypto/openssl/crypto/pem/pvkfmt.c
347
buf = OPENSSL_malloc(length);
crypto/openssl/crypto/pem/pvkfmt.c
592
if ((p = OPENSSL_malloc(outlen)) == NULL) {
crypto/openssl/crypto/pem/pvkfmt.c
889
enctmp = OPENSSL_malloc(keylen + 8);
crypto/openssl/crypto/pem/pvkfmt.c
968
buf = OPENSSL_malloc(buflen);
crypto/openssl/crypto/pkcs12/p12_mutl.c
425
if ((p12->mac->salt->data = OPENSSL_malloc(saltlen)) == NULL)
crypto/openssl/crypto/pkcs12/p12_mutl.c
490
known_salt = OPENSSL_malloc(saltlen);
crypto/openssl/crypto/pkcs12/p12_utl.c
120
if ((ret = OPENSSL_malloc(ulen)) == NULL)
crypto/openssl/crypto/pkcs12/p12_utl.c
210
if ((asctmp = OPENSSL_malloc(asclen)) == NULL)
crypto/openssl/crypto/pkcs12/p12_utl.c
29
if ((unitmp = OPENSSL_malloc(ulen)) == NULL)
crypto/openssl/crypto/pkcs12/p12_utl.c
60
if ((asctmp = OPENSSL_malloc(asclen)) == NULL)
crypto/openssl/crypto/pkcs7/pk7_doit.c
170
ek = OPENSSL_malloc(eklen);
crypto/openssl/crypto/pkcs7/pk7_doit.c
649
tkey = OPENSSL_malloc(tkeylen);
crypto/openssl/crypto/pkcs7/pk7_doit.c
900
if (abuflen == 0 || (abuf = OPENSSL_malloc(abuflen)) == NULL)
crypto/openssl/crypto/pkcs7/pk7_doit.c
993
abuf = OPENSSL_malloc(siglen);
crypto/openssl/crypto/pkcs7/pk7_smime.c
319
if ((buf = OPENSSL_malloc(BUFFERSIZE)) == NULL)
crypto/openssl/crypto/pkcs7/pk7_smime.c
522
if ((buf = OPENSSL_malloc(BUFFERSIZE)) == NULL)
crypto/openssl/crypto/property/defn_cache.c
120
p = OPENSSL_malloc(sizeof(*p) + len);
crypto/openssl/crypto/property/property.c
337
impl = OPENSSL_malloc(sizeof(*impl));
crypto/openssl/crypto/property/property.c
922
p = OPENSSL_malloc(sizeof(*p) + (len = strlen(prop_query)));
crypto/openssl/crypto/property/property_parse.c
320
r = OPENSSL_malloc(sizeof(*r)
crypto/openssl/crypto/property/property_parse.c
361
prop = OPENSSL_malloc(sizeof(*prop));
crypto/openssl/crypto/property/property_parse.c
418
prop = OPENSSL_malloc(sizeof(*prop));
crypto/openssl/crypto/property/property_parse.c
548
r = OPENSSL_malloc(sizeof(*r)
crypto/openssl/crypto/property/property_string.c
129
PROPERTY_STRING *ps = OPENSSL_malloc(sizeof(*ps) + l);
crypto/openssl/crypto/provider_core.c
2142
child_cb = OPENSSL_malloc(sizeof(*child_cb));
crypto/openssl/crypto/rand/prov_seed.c
111
if ((buf = OPENSSL_malloc(min_len)) == NULL)
crypto/openssl/crypto/rsa/rsa_meth.c
47
RSA_METHOD *ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/crypto/rsa/rsa_oaep.c
126
dbmask = OPENSSL_malloc(dbmask_len);
crypto/openssl/crypto/rsa/rsa_oaep.c
227
db = OPENSSL_malloc(dblen);
crypto/openssl/crypto/rsa/rsa_oaep.c
231
em = OPENSSL_malloc(num);
crypto/openssl/crypto/rsa/rsa_ossl.c
131
buf = OPENSSL_malloc(num);
crypto/openssl/crypto/rsa/rsa_ossl.c
326
buf = OPENSSL_malloc(num);
crypto/openssl/crypto/rsa/rsa_ossl.c
548
buf = OPENSSL_malloc(num);
crypto/openssl/crypto/rsa/rsa_ossl.c
734
buf = OPENSSL_malloc(num);
crypto/openssl/crypto/rsa/rsa_pk1.c
193
em = OPENSSL_malloc(num);
crypto/openssl/crypto/rsa/rsa_pk1.c
424
synthetic = OPENSSL_malloc(flen);
crypto/openssl/crypto/rsa/rsa_pmeth.c
118
if ((ctx->tbuf = OPENSSL_malloc(RSA_size(EVP_PKEY_get0_RSA(pk->pkey)))) == NULL)
crypto/openssl/crypto/rsa/rsa_pss.c
108
DB = OPENSSL_malloc(maskedDBLen);
crypto/openssl/crypto/rsa/rsa_pss.c
239
salt = OPENSSL_malloc(sLen);
crypto/openssl/crypto/rsa/rsa_saos.c
42
s = OPENSSL_malloc((unsigned int)j + 1);
crypto/openssl/crypto/rsa/rsa_saos.c
72
s = OPENSSL_malloc((unsigned int)siglen);
crypto/openssl/crypto/rsa/rsa_sign.c
275
dig_info = OPENSSL_malloc(dig_info_len);
crypto/openssl/crypto/rsa/rsa_sign.c
358
decrypt_buf = OPENSSL_malloc(siglen);
crypto/openssl/crypto/srp/srp_lib.c
157
if ((cs = OPENSSL_malloc(BN_num_bytes(s))) == NULL)
crypto/openssl/crypto/srp/srp_lib.c
42
if ((tmp = OPENSSL_malloc(numN * 2)) == NULL)
crypto/openssl/crypto/srp/srp_vfy.c
193
if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
crypto/openssl/crypto/srp/srp_vfy.c
279
SRP_VBASE *vb = OPENSSL_malloc(sizeof(*vb));
crypto/openssl/crypto/srp/srp_vfy.c
315
SRP_gN_cache *newgN = OPENSSL_malloc(sizeof(*newgN));
crypto/openssl/crypto/srp/srp_vfy.c
438
if ((gN = OPENSSL_malloc(sizeof(*gN))) == NULL)
crypto/openssl/crypto/srp/srp_vfy.c
670
if (((vf = OPENSSL_malloc(vfsize)) == NULL))
crypto/openssl/crypto/srp/srp_vfy.c
678
if ((tmp_salt = OPENSSL_malloc(SRP_RANDOM_SALT_LEN * 2)) == NULL) {
crypto/openssl/crypto/stack/stack.c
52
if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
crypto/openssl/crypto/stack/stack.c
72
ret->data = OPENSSL_malloc(sizeof(*ret->data) * sk->num_alloc);
crypto/openssl/crypto/stack/stack.c
90
if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
crypto/openssl/crypto/thread/arch/thread_win.c
304
if ((cv = OPENSSL_malloc(sizeof(LEGACY_CONDVAR))) == NULL)
crypto/openssl/crypto/ts/ts_rsp_sign.c
637
unsigned char *p, *pp = OPENSSL_malloc(len);
crypto/openssl/crypto/ts/ts_rsp_sign.c
664
unsigned char *p, *pp = OPENSSL_malloc(len);
crypto/openssl/crypto/ts/ts_rsp_verify.c
453
if ((*imprint = OPENSSL_malloc(*imprint_len)) == NULL)
crypto/openssl/crypto/ts/ts_verify_ctx.c
168
if ((ret->imprint = OPENSSL_malloc(ret->imprint_len)) == NULL)
crypto/openssl/crypto/txt_db/txt_db.c
36
if ((ret = OPENSSL_malloc(sizeof(*ret))) == NULL)
crypto/openssl/crypto/txt_db/txt_db.c
43
if ((ret->index = OPENSSL_malloc(sizeof(*ret->index) * num)) == NULL)
crypto/openssl/crypto/txt_db/txt_db.c
45
if ((ret->qual = OPENSSL_malloc(sizeof(*(ret->qual)) * num)) == NULL)
crypto/openssl/crypto/txt_db/txt_db.c
73
if ((p = OPENSSL_malloc(add + offset)) == NULL)
crypto/openssl/crypto/ui/ui_lib.c
383
if ((prompt = OPENSSL_malloc(len + 1)) == NULL)
crypto/openssl/crypto/x509/by_dir.c
110
BY_DIR *a = OPENSSL_malloc(sizeof(*a));
crypto/openssl/crypto/x509/by_dir.c
202
ent = OPENSSL_malloc(sizeof(*ent));
crypto/openssl/crypto/x509/by_dir.c
379
hent = OPENSSL_malloc(sizeof(*hent));
crypto/openssl/crypto/x509/pcy_cache.c
94
cache = OPENSSL_malloc(sizeof(*cache));
crypto/openssl/crypto/x509/t_x509.c
219
if ((der = dertmp = OPENSSL_malloc(derlen)) == NULL)
crypto/openssl/crypto/x509/v3_asid.c
431
if ((r = OPENSSL_malloc(sizeof(*r))) == NULL)
crypto/openssl/crypto/x509/v3_conf.c
161
if ((ext_der = OPENSSL_malloc(ext_len)) == NULL)
crypto/openssl/crypto/x509/v3_ia5.c
34
if ((tmp = OPENSSL_malloc(ia5->length + 1)) == NULL)
crypto/openssl/crypto/x509/v3_info.c
83
ntmp = OPENSSL_malloc(nlen);
crypto/openssl/crypto/x509/v3_lib.c
98
if ((tmpext = OPENSSL_malloc(sizeof(*tmpext))) == NULL)
crypto/openssl/crypto/x509/v3_prn.c
107
tmp = OPENSSL_malloc(len);
crypto/openssl/crypto/x509/v3_prn.c
56
tmp = OPENSSL_malloc(len);
crypto/openssl/crypto/x509/v3_purp.c
205
if ((ptmp = OPENSSL_malloc(sizeof(*ptmp))) == NULL)
crypto/openssl/crypto/x509/v3_utf8.c
37
if ((tmp = OPENSSL_malloc(utf8->length + 1)) == NULL)
crypto/openssl/crypto/x509/v3_utl.c
148
ret = OPENSSL_malloc(len);
crypto/openssl/crypto/x509/v3_utl.c
57
if ((vtmp = OPENSSL_malloc(sizeof(*vtmp))) == NULL)
crypto/openssl/crypto/x509/x509_req.c
38
ri->version->data = OPENSSL_malloc(1);
crypto/openssl/crypto/x509/x509_trust.c
142
if ((trtmp = OPENSSL_malloc(sizeof(*trtmp))) == NULL)
crypto/openssl/crypto/x509/x509_vpm.c
243
tmp = OPENSSL_malloc(srclen + 1);
crypto/openssl/crypto/x509/x509spki.c
38
if ((spki_der = OPENSSL_malloc(len + 1)) == NULL)
crypto/openssl/crypto/x509/x509spki.c
63
der_spki = OPENSSL_malloc(der_len);
crypto/openssl/crypto/x509/x509spki.c
64
b64_str = OPENSSL_malloc(der_len * 2);
crypto/openssl/crypto/x509/x_crl.c
495
X509_CRL_METHOD *m = OPENSSL_malloc(sizeof(*m));
crypto/openssl/crypto/x509/x_name.c
369
p = OPENSSL_malloc(a->canon_enclen);
crypto/openssl/crypto/x509/x_x509.c
268
*pp = tmp = OPENSSL_malloc(length);
crypto/openssl/demos/digest/BIO_f_md.c
76
digest_value = OPENSSL_malloc(digest_size);
crypto/openssl/demos/digest/EVP_MD_demo.c
166
digest_value = OPENSSL_malloc(digest_length);
crypto/openssl/demos/digest/EVP_MD_stdin.c
72
digest_value = OPENSSL_malloc(digest_length);
crypto/openssl/demos/digest/EVP_MD_xof.c
98
digest = OPENSSL_malloc(digest_len);
crypto/openssl/demos/keyexch/ecdh.c
152
secret = (unsigned char *)OPENSSL_malloc(secretlen);
crypto/openssl/demos/keyexch/x25519.c
173
local_peer->secret = OPENSSL_malloc(local_peer->secret_len);
crypto/openssl/demos/mac/cmac-aes256.c
159
out = OPENSSL_malloc(out_len);
crypto/openssl/demos/mac/hmac-sha512.c
240
out = OPENSSL_malloc(out_len);
crypto/openssl/demos/signature/EVP_DSA_Signature_demo.c
197
sig_value = OPENSSL_malloc(sig_len);
crypto/openssl/demos/signature/EVP_EC_Signature_demo.c
121
sig_value = OPENSSL_malloc(sig_len);
crypto/openssl/demos/signature/EVP_ED_Signature_demo.c
63
sig_value = OPENSSL_malloc(sig_len);
crypto/openssl/demos/signature/rsa_pss_direct.c
96
*sig = OPENSSL_malloc(*sig_len);
crypto/openssl/demos/signature/rsa_pss_hash.c
86
*sig = OPENSSL_malloc(*sig_len);
crypto/openssl/engines/e_capi.c
1149
str = OPENSSL_malloc(sz);
crypto/openssl/engines/e_capi.c
1174
name = OPENSSL_malloc(len);
crypto/openssl/engines/e_capi.c
1259
cname = OPENSSL_malloc(buflen);
crypto/openssl/engines/e_capi.c
1308
pinfo = OPENSSL_malloc(len);
crypto/openssl/engines/e_capi.c
1355
wfname = OPENSSL_malloc(dlen);
crypto/openssl/engines/e_capi.c
1506
CAPI_KEY *key = OPENSSL_malloc(sizeof(*key));
crypto/openssl/engines/e_capi.c
651
pubkey = OPENSSL_malloc(len);
crypto/openssl/engines/e_capi.c
979
if ((tmpbuf = OPENSSL_malloc(flen)) == NULL)
crypto/openssl/engines/e_dasync.c
551
writefd = OPENSSL_malloc(sizeof(*writefd));
crypto/openssl/engines/e_dasync.c
638
void *inner_cipher_data = OPENSSL_malloc(sz);
crypto/openssl/engines/e_ossltest.c
701
tmpbuf = OPENSSL_malloc(inl);
crypto/openssl/engines/e_ossltest.c
732
unsigned char *tmpbuf = OPENSSL_malloc(inl);
crypto/openssl/fuzz/fuzz_rand.c
28
int *st = OPENSSL_malloc(sizeof(*st));
crypto/openssl/fuzz/ml-dsa.c
322
if ((tbs = OPENSSL_malloc(tbslen)) == NULL
crypto/openssl/fuzz/ml-dsa.c
399
if ((tbs = OPENSSL_malloc(tbslen)) == NULL
crypto/openssl/fuzz/ml-dsa.c
414
|| (sig = OPENSSL_malloc(sig_len)) == NULL
crypto/openssl/fuzz/provider.c
114
*res = OPENSSL_malloc(sizeof(uint64_t));
crypto/openssl/fuzz/provider.c
132
*res = OPENSSL_malloc(sizeof(int64_t));
crypto/openssl/fuzz/provider.c
150
*res = OPENSSL_malloc(sizeof(double));
crypto/openssl/fuzz/provider.c
288
use_param = OPENSSL_malloc(sizeof(uint64_t));
crypto/openssl/fuzz/provider.c
295
p_value_int = OPENSSL_malloc(sizeof(ITERS));
crypto/openssl/fuzz/provider.c
298
p_value_int = OPENSSL_malloc(sizeof(ITERS));
crypto/openssl/fuzz/provider.c
301
p_value_int = OPENSSL_malloc(sizeof(BLOCKSIZE));
crypto/openssl/fuzz/provider.c
304
p_value_int = OPENSSL_malloc(sizeof(BLOCKSIZE));
crypto/openssl/fuzz/provider.c
307
p_value_int = OPENSSL_malloc(sizeof(int64_t));
crypto/openssl/fuzz/provider.c
317
p_value_uint = OPENSSL_malloc(sizeof(UITERS));
crypto/openssl/fuzz/provider.c
320
p_value_uint = OPENSSL_malloc(sizeof(UITERS));
crypto/openssl/fuzz/provider.c
323
p_value_uint = OPENSSL_malloc(sizeof(UBLOCKSIZE));
crypto/openssl/fuzz/provider.c
326
p_value_uint = OPENSSL_malloc(sizeof(UBLOCKSIZE));
crypto/openssl/fuzz/provider.c
329
p_value_uint = OPENSSL_malloc(sizeof(uint64_t));
crypto/openssl/fuzz/provider.c
339
p_value_double = OPENSSL_malloc(sizeof(double));
crypto/openssl/fuzz/punycode.c
29
b = OPENSSL_malloc(len + 1);
crypto/openssl/include/internal/ring_buf.h
244
rnew.start = OPENSSL_malloc(num_bytes);
crypto/openssl/providers/fips/self_test_kats.c
547
psig = OPENSSL_malloc(siglen);
crypto/openssl/providers/fips/self_test_kats.c
683
wrapped = OPENSSL_malloc(wrappedlen);
crypto/openssl/providers/fips/self_test_kats.c
684
secret = OPENSSL_malloc(secretlen);
crypto/openssl/providers/fips/self_test_kats.c
746
secret = OPENSSL_malloc(secretlen);
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
191
if ((tbuf = OPENSSL_malloc(rsasize)) == NULL)
crypto/openssl/providers/implementations/asymciphers/rsa_enc.c
266
if ((tbuf = OPENSSL_malloc(len)) == NULL)
crypto/openssl/providers/implementations/ciphers/cipher_aes.c
42
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_aes_ocb.c
340
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_aes_siv.c
67
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_aes_xts.c
169
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_aria.c
35
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_blowfish.c
43
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_camellia.c
41
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_cast5.c
44
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_des.c
55
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_idea.c
42
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_rc2.c
52
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_rc4.c
45
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_rc5.c
49
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_seed.c
41
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_sm4.c
35
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_sm4_xts.c
114
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/ciphers/cipher_tdes_common.c
48
ret = OPENSSL_malloc(sizeof(*ret));
crypto/openssl/providers/implementations/digests/blake2_prov.c
132
ret = ossl_prov_is_running() ? OPENSSL_malloc(sizeof(*ret)) : NULL; \
crypto/openssl/providers/implementations/digests/sha3_prov.c
568
KECCAK1600_CTX *ret = ossl_prov_is_running() ? OPENSSL_malloc(sizeof(*ret))
crypto/openssl/providers/implementations/encode_decode/decode_msblob2key.c
133
buf = OPENSSL_malloc(length);
crypto/openssl/providers/implementations/encode_decode/encode_key2any.c
941
if ((str = OPENSSL_malloc(str_sz)) == NULL
crypto/openssl/providers/implementations/encode_decode/ml_dsa_codecs.c
599
if ((pos = buf = OPENSSL_malloc((size_t)len)) == NULL)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
388
if ((key->encoded_dk = OPENSSL_malloc(p8fmt->priv_length)) == NULL) {
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
421
&& (*out = OPENSSL_malloc(publen)) == NULL)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
486
if ((pos = buf = OPENSSL_malloc((size_t)len)) == NULL)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
586
if ((prvenc = OPENSSL_malloc(prvlen)) == NULL)
crypto/openssl/providers/implementations/encode_decode/ml_kem_codecs.c
602
if ((pubenc = OPENSSL_malloc(key->vinfo->pubkey_bytes)) == NULL
crypto/openssl/providers/implementations/include/prov/digestcommon.h
70
CTX *ret = ossl_prov_is_running() ? OPENSSL_malloc(sizeof(*ret)) : NULL; \
crypto/openssl/providers/implementations/kdfs/pbkdf1.c
168
if ((*buffer = OPENSSL_malloc(1)) == NULL)
crypto/openssl/providers/implementations/kdfs/pbkdf2.c
172
if ((*buffer = OPENSSL_malloc(1)) == NULL)
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
209
if ((*buffer = OPENSSL_malloc(1)) == NULL)
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
74
D = OPENSSL_malloc(v);
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
75
Ai = OPENSSL_malloc(u);
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
76
B = OPENSSL_malloc(v + 1);
crypto/openssl/providers/implementations/kdfs/pkcs12kdf.c
83
I = OPENSSL_malloc(Ilen);
crypto/openssl/providers/implementations/kdfs/pvkkdf.c
124
if ((*buffer = OPENSSL_malloc(1)) == NULL)
crypto/openssl/providers/implementations/kdfs/scrypt.c
153
if ((*buffer = OPENSSL_malloc(1)) == NULL)
crypto/openssl/providers/implementations/kdfs/scrypt.c
524
B = OPENSSL_malloc((size_t)(Blen + Vlen));
crypto/openssl/providers/implementations/kdfs/tls1_prf.c
568
if ((tmp = OPENSSL_malloc(olen)) == NULL)
crypto/openssl/providers/implementations/kem/ml_kem_kem.c
44
if ((ctx = OPENSSL_malloc(sizeof(*ctx))) == NULL)
crypto/openssl/providers/implementations/kem/mlx_kem.c
42
if ((ctx = OPENSSL_malloc(sizeof(*ctx))) == NULL)
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
105
ctext = OPENSSL_malloc(v->ctext_bytes);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
260
pubenc = OPENSSL_malloc(v->pubkey_bytes);
crypto/openssl/providers/implementations/keymgmt/ml_kem_kmgmt.c
361
uint8_t *buf = OPENSSL_malloc(len);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
270
sub_arg.pubenc = OPENSSL_malloc(publen);
crypto/openssl/providers/implementations/keymgmt/mlx_kmgmt.c
83
|| (key = OPENSSL_malloc(sizeof(*key))) == NULL)
crypto/openssl/providers/implementations/keymgmt/slh_dsa_kmgmt.c
326
sig = OPENSSL_malloc(sig_len);
crypto/openssl/providers/implementations/macs/hmac_prov.c
130
dst->key = OPENSSL_malloc(src->keylen > 0 ? src->keylen : 1);
crypto/openssl/providers/implementations/macs/hmac_prov.c
183
macctx->key = OPENSSL_malloc(keylen > 0 ? keylen : 1);
crypto/openssl/providers/implementations/macs/kmac_prov.c
351
out = OPENSSL_malloc(out_len);
crypto/openssl/providers/implementations/macs/poly1305_prov.c
68
dst = OPENSSL_malloc(sizeof(*dst));
crypto/openssl/providers/implementations/macs/siphash_prov.c
80
sdst = OPENSSL_malloc(sizeof(*sdst));
crypto/openssl/providers/implementations/rands/drbg.c
319
if (n > 0 && (buf = OPENSSL_malloc(n)) != NULL) {
crypto/openssl/providers/implementations/rands/drbg.c
393
nonce = OPENSSL_malloc(noncelen);
crypto/openssl/providers/implementations/signature/rsa_sig.c
614
if ((ctx->tbuf = OPENSSL_malloc(RSA_size(ctx->rsa))) == NULL)
crypto/openssl/providers/implementations/signature/sm2_sig.c
389
dstctx->id = OPENSSL_malloc(srcctx->id_len);
crypto/openssl/providers/implementations/storemgmt/winstore_store.c
143
ctx->subject = OPENSSL_malloc(der_len);
crypto/openssl/ssl/d1_lib.c
465
buf = OPENSSL_malloc(DTLS1_RT_HEADER_LENGTH + SSL3_RT_MAX_PLAIN_LENGTH);
crypto/openssl/ssl/d1_lib.c
468
wbuf = OPENSSL_malloc(DTLS1_RT_HEADER_LENGTH + SSL3_RT_MAX_PLAIN_LENGTH);
crypto/openssl/ssl/pqueue.c
20
pitem *item = OPENSSL_malloc(sizeof(*item));
crypto/openssl/ssl/priority_queue.c
333
pq = OPENSSL_malloc(sizeof(*pq));
crypto/openssl/ssl/priority_queue.c
340
pq->heap = OPENSSL_malloc(sizeof(*pq->heap) * min_nodes);
crypto/openssl/ssl/priority_queue.c
341
pq->elements = OPENSSL_malloc(sizeof(*pq->elements) * min_nodes);
crypto/openssl/ssl/quic/json_enc.c
23
wbuf->buf = OPENSSL_malloc(alloc);
crypto/openssl/ssl/quic/qlog.c
125
filename = OPENSSL_malloc(strl);
crypto/openssl/ssl/quic/quic_demux.c
162
e = OPENSSL_malloc(sizeof(QUIC_URXE) + alloc_len);
crypto/openssl/ssl/quic/quic_port.c
1073
|| (token->remote_addr = OPENSSL_malloc(token->remote_addr_len)) == NULL
crypto/openssl/ssl/quic/quic_port.c
1370
|| (remote_addr = OPENSSL_malloc(remote_addr_len)) == NULL
crypto/openssl/ssl/quic/quic_port.c
180
|| (token_key = OPENSSL_malloc(key_len)) == NULL
crypto/openssl/ssl/quic/quic_port.c
872
|| (token->remote_addr = OPENSSL_malloc(token->remote_addr_len)) == NULL
crypto/openssl/ssl/quic/quic_record_rx.c
564
rxe = OPENSSL_malloc(sizeof(RXE) + alloc_len);
crypto/openssl/ssl/quic/quic_record_tx.c
224
txe = OPENSSL_malloc(sizeof(TXE) + alloc_len);
crypto/openssl/ssl/quic/quic_rx_depack.c
962
if ((encoded = OPENSSL_malloc(encoded_len)) == NULL)
crypto/openssl/ssl/quic/uint_set.c
114
UINT_SET_ITEM *x = OPENSSL_malloc(sizeof(UINT_SET_ITEM));
crypto/openssl/ssl/record/methods/dtls_meth.c
293
rdata = OPENSSL_malloc(sizeof(*rdata));
crypto/openssl/ssl/record/methods/tls13_meth.c
33
rl->iv = OPENSSL_malloc(ivlen);
crypto/openssl/ssl/record/methods/tls13_meth.c
37
rl->nonce = OPENSSL_malloc(ivlen);
crypto/openssl/ssl/record/methods/tls_common.c
1049
OPENSSL_malloc(SSL3_RT_MAX_ENCRYPTED_LENGTH);
crypto/openssl/ssl/record/methods/tls_common.c
196
p = OPENSSL_malloc(len);
crypto/openssl/ssl/record/methods/tls_common.c
261
if ((p = OPENSSL_malloc(len)) == NULL) {
crypto/openssl/ssl/record/methods/tls_pad.c
245
*mac = out = OPENSSL_malloc(mac_size);
crypto/openssl/ssl/record/rec_layer_d1.c
24
if ((d = OPENSSL_malloc(sizeof(*d))) == NULL)
crypto/openssl/ssl/record/rec_layer_d1.c
89
rdata = OPENSSL_malloc(sizeof(*rdata));
crypto/openssl/ssl/s3_enc.c
199
if ((p = OPENSSL_malloc(num)) == NULL) {
crypto/openssl/ssl/s3_lib.c
5225
pskpms = OPENSSL_malloc(pskpmslen);
crypto/openssl/ssl/s3_lib.c
5426
pms = OPENSSL_malloc(pmslen);
crypto/openssl/ssl/s3_lib.c
5481
pms = OPENSSL_malloc(pmslen);
crypto/openssl/ssl/s3_lib.c
5533
pms = OPENSSL_malloc(pmslen);
crypto/openssl/ssl/s3_lib.c
5534
ct = OPENSSL_malloc(ctlen);
crypto/openssl/ssl/ssl_cert.c
172
ret->conf_sigalgs = OPENSSL_malloc(cert->conf_sigalgslen
crypto/openssl/ssl/ssl_cert.c
183
ret->client_sigalgs = OPENSSL_malloc(cert->client_sigalgslen
crypto/openssl/ssl/ssl_ciph.c
1449
co_list = OPENSSL_malloc(sizeof(*co_list) * num_of_ciphers);
crypto/openssl/ssl/ssl_ciph.c
1560
ca_list = OPENSSL_malloc(sizeof(*ca_list) * num_of_alias_max);
crypto/openssl/ssl/ssl_ciph.c
1667
if ((buf = OPENSSL_malloc(len)) == NULL)
crypto/openssl/ssl/ssl_ciph.c
2021
comp = OPENSSL_malloc(sizeof(*comp));
crypto/openssl/ssl/ssl_lib.c
322
t->data = OPENSSL_malloc(dlen);
crypto/openssl/ssl/ssl_lib.c
6830
if ((present = OPENSSL_malloc(sizeof(*present) * num)) == NULL)
crypto/openssl/ssl/ssl_lib.c
6983
if ((out = cursor = OPENSSL_malloc(out_len)) == NULL)
crypto/openssl/ssl/ssl_lib.c
7076
raw = OPENSSL_malloc(numciphers * TLS_CIPHER_LEN);
crypto/openssl/ssl/ssl_lib.c
891
s->ext.alpn = OPENSSL_malloc(ctx->ext.alpn_len);
crypto/openssl/ssl/ssl_rsa.c
818
sinfo = OPENSSL_malloc(sinfo_length);
crypto/openssl/ssl/ssl_sess.c
1184
sc->ext.session_ticket = OPENSSL_malloc(sizeof(TLS_SESSION_TICKET_EXT) + ext_len);
crypto/openssl/ssl/ssl_sess.c
140
dest = OPENSSL_malloc(sizeof(*dest));
crypto/openssl/ssl/statem/extensions_clnt.c
1446
s->ext.peer_ecpointformats = OPENSSL_malloc(ecpointformats_len);
crypto/openssl/ssl/statem/extensions_clnt.c
1555
s->ext.scts = OPENSSL_malloc(size);
crypto/openssl/ssl/statem/extensions_clnt.c
1656
s->ext.npn = OPENSSL_malloc(selected_len);
crypto/openssl/ssl/statem/extensions_clnt.c
1718
s->s3.alpn_selected = OPENSSL_malloc(len);
crypto/openssl/ssl/statem/extensions_clnt.c
299
s->session->ext.tick = OPENSSL_malloc(ticklen);
crypto/openssl/ssl/statem/extensions_cust.c
479
= OPENSSL_malloc(sizeof(*add_cb_wrap));
crypto/openssl/ssl/statem/extensions_cust.c
481
= OPENSSL_malloc(sizeof(*parse_cb_wrap));
crypto/openssl/ssl/statem/extensions_srvr.c
663
*keyshares_arr = OPENSSL_malloc(*keyshares_max * sizeof(**keyshares_arr));
crypto/openssl/ssl/statem/extensions_srvr.c
668
*encoded_pubkey_arr = OPENSSL_malloc(*keyshares_max * sizeof(**encoded_pubkey_arr));
crypto/openssl/ssl/statem/statem_clnt.c
2798
s->session->ext.tick = OPENSSL_malloc(ticklen);
crypto/openssl/ssl/statem/statem_clnt.c
2923
s->ext.ocsp.resp = OPENSSL_malloc(resplen);
crypto/openssl/ssl/statem/statem_clnt.c
3132
pms = OPENSSL_malloc(pmslen);
crypto/openssl/ssl/statem/statem_clnt.c
3337
pms = OPENSSL_malloc(pmslen);
crypto/openssl/ssl/statem/statem_clnt.c
3472
pms = OPENSSL_malloc(pmslen);
crypto/openssl/ssl/statem/statem_dtls.c
80
if ((buf = OPENSSL_malloc(frag_len)) == NULL) {
crypto/openssl/ssl/statem/statem_lib.c
2799
unsigned char *tbs = OPENSSL_malloc(tbslen);
crypto/openssl/ssl/statem/statem_lib.c
387
sig = OPENSSL_malloc(siglen);
crypto/openssl/ssl/statem/statem_lib.c
402
sig = OPENSSL_malloc(siglen);
crypto/openssl/ssl/statem/statem_lib.c
553
if ((gost_data = OPENSSL_malloc(len)) == NULL)
crypto/openssl/ssl/statem/statem_srvr.c
2870
if ((s->pha_context = OPENSSL_malloc(s->pha_context_len)) == NULL) {
crypto/openssl/ssl/statem/statem_srvr.c
3024
rsa_decrypt = OPENSSL_malloc(outlen);
crypto/openssl/ssl/statem/statem_srvr.c
3995
senc = OPENSSL_malloc(slen_full);
crypto/openssl/ssl/t1_enc.c
296
if ((p = OPENSSL_malloc(num)) == NULL) {
crypto/openssl/ssl/t1_enc.c
461
val = OPENSSL_malloc(vallen);
crypto/openssl/ssl/t1_lib.c
1099
if ((glist = OPENSSL_malloc(ngroups * sizeof(*glist))) == NULL)
crypto/openssl/ssl/t1_lib.c
1101
if ((kslist = OPENSSL_malloc(1 * sizeof(*kslist))) == NULL)
crypto/openssl/ssl/t1_lib.c
1103
if ((tpllist = OPENSSL_malloc(1 * sizeof(*tpllist))) == NULL)
crypto/openssl/ssl/t1_lib.c
1340
restored_default_group_string = OPENSSL_malloc((1 /* max prefix length */ + strlen(default_group_strings[i].group_string) + 1 /* \0 */) * sizeof(char));
crypto/openssl/ssl/t1_lib.c
1576
restored_tuple_string = OPENSSL_malloc((len + 1 /* \0 */) * sizeof(char));
crypto/openssl/ssl/t1_lib.c
1626
gcb.gid_arr = OPENSSL_malloc(gcb.gidmax * sizeof(*gcb.gid_arr));
crypto/openssl/ssl/t1_lib.c
1629
gcb.tuplcnt_arr = OPENSSL_malloc(gcb.tplmax * sizeof(*gcb.tuplcnt_arr));
crypto/openssl/ssl/t1_lib.c
1633
gcb.ksid_arr = OPENSSL_malloc(gcb.ksidmax * sizeof(*gcb.ksid_arr));
crypto/openssl/ssl/t1_lib.c
2315
char *retval = OPENSSL_malloc(maxretlen);
crypto/openssl/ssl/t1_lib.c
238
tmp = OPENSSL_malloc(sizeof(TLS_GROUP_INFO)
crypto/openssl/ssl/t1_lib.c
3219
sdec = OPENSSL_malloc(eticklen);
crypto/openssl/ssl/t1_lib.c
3534
if ((salgs = OPENSSL_malloc(nmatch * sizeof(*salgs))) == NULL)
crypto/openssl/ssl/t1_lib.c
3559
if ((buf = OPENSSL_malloc(size * sizeof(*buf))) == NULL)
crypto/openssl/ssl/t1_lib.c
3849
if ((sigalgs = OPENSSL_malloc(salglen * sizeof(*sigalgs))) == NULL)
crypto/openssl/ssl/t1_lib.c
3873
if ((sigalgs = OPENSSL_malloc((salglen / 2) * sizeof(*sigalgs))) == NULL)
crypto/openssl/ssl/t1_lib.c
397
tmp = OPENSSL_malloc(sizeof(TLS_SIGALG_INFO)
crypto/openssl/ssl/t1_lib.c
970
if ((gix = OPENSSL_malloc(sizeof(*gix))) == NULL)
crypto/openssl/ssl/t1_trce.c
1442
if (uclen == 0 || uclen > 0xFFFFFF || (ucdata = OPENSSL_malloc(uclen)) == NULL)
crypto/openssl/ssl/tls13_enc.c
433
*iv = OPENSSL_malloc(*ivlen);
crypto/openssl/ssl/tls_srp.c
320
if ((tmp = OPENSSL_malloc(tmp_len)) == NULL) {
crypto/openssl/ssl/tls_srp.c
373
if ((tmp = OPENSSL_malloc(tmp_len)) == NULL) {
crypto/openssl/test/acvp_test.c
107
if (!TEST_ptr(sig = OPENSSL_malloc(sz))
crypto/openssl/test/asn1_encode_test.c
636
*encoding = p = OPENSSL_malloc(seqbytes);
crypto/openssl/test/asn1_encode_test.c
719
if ((o = OPENSSL_malloc(DATA_BUF_SIZE)) == NULL)
crypto/openssl/test/asynctest.c
420
return OPENSSL_malloc(*num);
crypto/openssl/test/bad_dtls_test.c
496
enc = OPENSSL_malloc(len + SHA_DIGEST_LENGTH + 1 + pad);
crypto/openssl/test/bio_addr_test.c
114
adata = OPENSSL_malloc(alen);
crypto/openssl/test/bio_addr_test.c
119
bdata = OPENSSL_malloc(blen);
crypto/openssl/test/bio_base64_test.c
209
out = OPENSSL_malloc(out_len);
crypto/openssl/test/bio_base64_test.c
58
if (len > 0 && len <= BUFMAX && (buf = OPENSSL_malloc(len)) != NULL)
crypto/openssl/test/bio_comp_test.c
86
original = OPENSSL_malloc(BUFFER_SIZE);
crypto/openssl/test/bio_comp_test.c
87
result = OPENSSL_malloc(BUFFER_SIZE);
crypto/openssl/test/danetest.c
185
if (!TEST_ptr(ret = OPENSSL_malloc(strlen(in) / 2)))
crypto/openssl/test/dhtest.c
210
if (!TEST_ptr(abuf = OPENSSL_malloc(alen))
crypto/openssl/test/dhtest.c
215
if (!TEST_ptr(bbuf = OPENSSL_malloc(blen))
crypto/openssl/test/dhtest.c
220
if (!TEST_ptr(cbuf = OPENSSL_malloc(clen))
crypto/openssl/test/dhtest.c
278
|| !TEST_ptr(buf = OPENSSL_malloc(sz))
crypto/openssl/test/dhtest.c
613
if (!TEST_ptr(Z1 = OPENSSL_malloc((size_t)szA))
crypto/openssl/test/dhtest.c
614
|| !TEST_ptr(Z2 = OPENSSL_malloc((size_t)szB)))
crypto/openssl/test/dhtest.c
696
if (!TEST_int_gt(alen, 0) || !TEST_ptr(abuf = OPENSSL_malloc(alen))
crypto/openssl/test/dhtest.c
701
if (!TEST_int_gt(blen, 0) || !TEST_ptr(bbuf = OPENSSL_malloc(blen))
crypto/openssl/test/dsa_no_digest_size_test.c
137
unsigned char *dataToSign = OPENSSL_malloc(len);
crypto/openssl/test/dsa_no_digest_size_test.c
138
unsigned char *paddedData = OPENSSL_malloc(digestlen);
crypto/openssl/test/dsa_no_digest_size_test.c
166
if (!TEST_ptr(signature = OPENSSL_malloc(sigLength)))
crypto/openssl/test/ec_internal_test.c
543
if (!TEST_ptr(curves = OPENSSL_malloc(sizeof(*curves) * crv_len))
crypto/openssl/test/ecdsatest.c
247
|| !TEST_ptr(sig = OPENSSL_malloc(sig_len = (size_t)temp))
crypto/openssl/test/ecdsatest.c
366
&& TEST_ptr(sig = OPENSSL_malloc(siglen0))
crypto/openssl/test/ecdsatest.c
408
if (!TEST_ptr(curves = OPENSSL_malloc(sizeof(*curves) * crv_len))
crypto/openssl/test/ectest.c
1088
|| !TEST_ptr(buf = OPENSSL_malloc(len))
crypto/openssl/test/ectest.c
2509
|| !TEST_ptr(buf2 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3140
|| !TEST_ptr(b1 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3159
|| !TEST_ptr(b2 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3254
|| !TEST_ptr(buf1 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3312
|| !TEST_ptr(buf2 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3345
|| !TEST_ptr(pub1 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3358
|| !TEST_ptr(pub2 = OPENSSL_malloc(bsize))
crypto/openssl/test/ectest.c
3519
if (!TEST_ptr(curves = OPENSSL_malloc(sizeof(*curves) * crv_len))
crypto/openssl/test/enginetest.c
265
if (!TEST_ptr(tmp = OPENSSL_malloc(len)))
crypto/openssl/test/evp_extra_test.c
1677
sig = OPENSSL_malloc(sig_len);
crypto/openssl/test/evp_extra_test.c
1754
sig = OPENSSL_malloc(sig_len);
crypto/openssl/test/evp_extra_test.c
1934
|| !TEST_ptr(sig = OPENSSL_malloc(sig_len)))
crypto/openssl/test/evp_extra_test.c
1954
|| !TEST_ptr(sig = OPENSSL_malloc(sig_len))
crypto/openssl/test/evp_extra_test.c
1999
|| !TEST_ptr(sig2 = OPENSSL_malloc(sig2_len))
crypto/openssl/test/evp_extra_test.c
2657
if (!TEST_ptr(sig = OPENSSL_malloc(sig_len)))
crypto/openssl/test/evp_extra_test.c
3992
|| !TEST_ptr(cbuf = OPENSSL_malloc(clen))
crypto/openssl/test/evp_extra_test.c
4006
|| !TEST_ptr(pbuf = OPENSSL_malloc(plen))
crypto/openssl/test/evp_extra_test.c
5690
|| !TEST_ptr(res = OPENSSL_malloc(reslen))
crypto/openssl/test/evp_extra_test.c
5696
res = OPENSSL_malloc(reslen);
crypto/openssl/test/evp_extra_test.c
5949
|| !TEST_ptr(ct = OPENSSL_malloc(ctlen))
crypto/openssl/test/evp_extra_test.c
5950
|| !TEST_ptr(secret = OPENSSL_malloc(secretlen)))
crypto/openssl/test/evp_extra_test.c
6043
if (!TEST_ptr(mac = OPENSSL_malloc(maclen)))
crypto/openssl/test/evp_extra_test.c
6201
if (!TEST_ptr(mac = OPENSSL_malloc(maclen)))
crypto/openssl/test/evp_extra_test.c
6649
if (!TEST_ptr(iv_array[i] = OPENSSL_malloc(ivlen))
crypto/openssl/test/evp_extra_test.c
6650
|| !TEST_ptr(plaintext_array[i] = OPENSSL_malloc(plaintextlen))
crypto/openssl/test/evp_extra_test.c
6651
|| !TEST_ptr(ciphertext_array_p[i] = OPENSSL_malloc(plaintextlen + EVP_MAX_BLOCK_LENGTH))
crypto/openssl/test/evp_extra_test.c
6652
|| !TEST_ptr(tag_array[i] = OPENSSL_malloc(taglen)))
crypto/openssl/test/evp_extra_test.c
6662
if (!TEST_ptr(ciphertext = OPENSSL_malloc(plaintextlen + EVP_MAX_BLOCK_LENGTH))
crypto/openssl/test/evp_extra_test.c
6663
|| !TEST_ptr(tag = OPENSSL_malloc(taglen))
crypto/openssl/test/evp_extra_test.c
6664
|| !TEST_ptr(exp_plaintext = OPENSSL_malloc(plaintextlen)))
crypto/openssl/test/evp_extra_test2.c
1737
out = OPENSSL_malloc(outlen);
crypto/openssl/test/evp_extra_test2.c
1738
secret = OPENSSL_malloc(secretlen);
crypto/openssl/test/evp_extra_test2.c
1739
secret2 = OPENSSL_malloc(secretlen);
crypto/openssl/test/evp_extra_test2.c
3347
&& TEST_ptr(sig = OPENSSL_malloc(sig_len))
crypto/openssl/test/evp_kdf_test.c
1256
OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 8);
crypto/openssl/test/evp_kdf_test.c
195
OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 5);
crypto/openssl/test/evp_kdf_test.c
39
OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 4);
crypto/openssl/test/evp_kdf_test.c
478
OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 5);
crypto/openssl/test/evp_kdf_test.c
598
OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 6);
crypto/openssl/test/evp_pkey_provided_test.c
2166
OSSL_PARAM *params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 5);
crypto/openssl/test/evp_test.c
1117
tmp = OPENSSL_malloc(out_misalign + in_len + 2 * EVP_MAX_BLOCK_LENGTH);
crypto/openssl/test/evp_test.c
1131
tmp = OPENSSL_malloc(out_misalign + in_len + 2 * EVP_MAX_BLOCK_LENGTH + inp_misalign + in_len);
crypto/openssl/test/evp_test.c
1846
if (!TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
2020
if (!TEST_ptr(got = OPENSSL_malloc(expected->output_len))) {
crypto/openssl/test/evp_test.c
2036
if (!TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
2257
wrapped = OPENSSL_malloc(wrappedlen);
crypto/openssl/test/evp_test.c
2258
secret = OPENSSL_malloc(secretlen);
crypto/openssl/test/evp_test.c
2333
if (!TEST_ptr(out = OPENSSL_malloc(outlen))) {
crypto/openssl/test/evp_test.c
2707
|| !TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
2731
|| !TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
3057
if (!TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
3262
if (!TEST_ptr(key = OPENSSL_malloc(expected->key_len))) {
crypto/openssl/test/evp_test.c
3406
|| !TEST_ptr(encode_out = OPENSSL_malloc(EVP_ENCODE_LENGTH(expected->input_len))))
crypto/openssl/test/evp_test.c
3438
if (!TEST_ptr(decode_out = OPENSSL_malloc(decode_length)))
crypto/openssl/test/evp_test.c
3682
if (!TEST_ptr(got = OPENSSL_malloc(got_len)))
crypto/openssl/test/evp_test.c
3998
if (!TEST_ptr(got = OPENSSL_malloc(got_len == 0 ? 1 : got_len))) {
crypto/openssl/test/evp_test.c
4127
if (!TEST_ptr(got = OPENSSL_malloc(got_len == 0 ? 1 : got_len))) {
crypto/openssl/test/evp_test.c
4200
if (!TEST_ptr(data = OPENSSL_malloc(sizeof(*data))))
crypto/openssl/test/evp_test.c
4352
uint8_t *data = OPENSSL_malloc(p->data_size);
crypto/openssl/test/evp_test.c
437
if (!TEST_ptr(tbuf = OPENSSL_malloc(tbuflen)))
crypto/openssl/test/evp_test.c
4408
if ((params = OPENSSL_malloc(sizeof(OSSL_PARAM) * 4)) == NULL)
crypto/openssl/test/evp_test.c
4449
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
crypto/openssl/test/evp_test.c
4697
if (!TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
4782
if (!TEST_ptr(got = OPENSSL_malloc(got_len))) {
crypto/openssl/test/evp_test.c
508
if (!TEST_ptr(ret = p = OPENSSL_malloc(input_len)))
crypto/openssl/test/evp_test.c
5244
if (!TEST_ptr(key = OPENSSL_malloc(sizeof(*key))))
crypto/openssl/test/evp_test.c
555
*buf = OPENSSL_malloc(1);
crypto/openssl/test/evp_test.c
600
*buf = OPENSSL_malloc(1);
crypto/openssl/test/evp_test.c
773
got = OPENSSL_malloc(expected->output_len > EVP_MAX_MD_SIZE ? expected->output_len : EVP_MAX_MD_SIZE);
crypto/openssl/test/evp_xof_test.c
409
if (!TEST_ptr(out = OPENSSL_malloc(expected_outlen)))
crypto/openssl/test/evp_xof_test.c
481
if (!TEST_ptr(out = OPENSSL_malloc(expected_outlen)))
crypto/openssl/test/exdatatest.c
136
MYOBJ *obj = OPENSSL_malloc(sizeof(*obj));
crypto/openssl/test/exdatatest.c
233
if (!TEST_ptr(saved_argp = OPENSSL_malloc(1)))
crypto/openssl/test/fake_rsaprov.c
1246
if (!TEST_ptr(prov_ctx = OPENSSL_malloc(sizeof(*prov_ctx)))) {
crypto/openssl/test/fake_rsaprov.c
247
if (!TEST_ptr(gctx = OPENSSL_malloc(1)))
crypto/openssl/test/helpers/handshake.c
268
resp = OPENSSL_malloc(1);
crypto/openssl/test/helpers/handshake.c
356
|| !TEST_ptr(*out = OPENSSL_malloc(len + 1)))
crypto/openssl/test/helpers/noisydgrambio.c
493
data->msg.data = OPENSSL_malloc(MSG_DATA_LEN_MAX);
crypto/openssl/test/helpers/pkcs12.c
103
PKCS12_BUILDER *pb = OPENSSL_malloc(sizeof(PKCS12_BUILDER));
crypto/openssl/test/helpers/quictestlib.c
1195
tmpdata = OPENSSL_malloc(bdata->fault->msg.data_len + GROWTH_ALLOWANCE);
crypto/openssl/test/helpers/quictestlib.c
821
fault->pplainio.buf = cur = OPENSSL_malloc(bufsz);
crypto/openssl/test/helpers/quictestlib.c
953
buf = OPENSSL_malloc(msginlen + GROWTH_ALLOWANCE);
crypto/openssl/test/helpers/ssltestlib.c
460
tmp = OPENSSL_malloc(prevlen);
crypto/openssl/test/helpers/ssltestlib.c
477
thispkt = OPENSSL_malloc(sizeof(*thispkt));
crypto/openssl/test/helpers/ssltestlib.c
552
duppkt = OPENSSL_malloc(sizeof(*duppkt));
crypto/openssl/test/helpers/ssltestlib.c
606
if (!TEST_ptr(allpkts[i] = OPENSSL_malloc(sizeof(*thispkt))))
crypto/openssl/test/helpers/ssltestlib.c
610
if (!TEST_ptr(thispkt->data = OPENSSL_malloc(inl)))
crypto/openssl/test/lhash_test.c
358
p = OPENSSL_malloc(sizeof(i));
crypto/openssl/test/lhash_test.c
435
p = OPENSSL_malloc(sizeof(i));
crypto/openssl/test/memleaktest.c
49
lost = OPENSSL_malloc(3);
crypto/openssl/test/ml_dsa_test.c
341
|| !TEST_ptr(priv = OPENSSL_malloc(len))
crypto/openssl/test/ml_dsa_test.c
345
|| !TEST_ptr(pub = OPENSSL_malloc(len))
crypto/openssl/test/ml_kem_internal_test.c
129
encoded_public_key = OPENSSL_malloc(v->pubkey_bytes);
crypto/openssl/test/ml_kem_internal_test.c
130
ciphertext = OPENSSL_malloc(v->ctext_bytes);
crypto/openssl/test/property_test.c
674
buf = OPENSSL_malloc(bufsize);
crypto/openssl/test/punycode_test.c
223
if (!TEST_ptr(out = OPENSSL_malloc(in->length)))
crypto/openssl/test/quic_multistream_test.c
1261
|| !TEST_ptr(tmp_buf = (unsigned char *)OPENSSL_malloc(alpn_len + 1)))
crypto/openssl/test/quic_multistream_test.c
1364
&& !TEST_ptr(tmp_buf = OPENSSL_malloc(op->arg1)))
crypto/openssl/test/quic_multistream_test.c
1395
&& !TEST_ptr(tmp_buf = OPENSSL_malloc(op->arg1)))
crypto/openssl/test/quic_multistream_test.c
4203
if (!TEST_ptr(frame_buf = OPENSSL_malloc(frame_len)))
crypto/openssl/test/quic_record_test.c
10059
if (!TEST_ptr(buf = OPENSSL_malloc(TEST_PKT_BUF_LEN)))
crypto/openssl/test/quic_record_test.c
10122
hbuf = OPENSSL_malloc(t->expected_len);
crypto/openssl/test/quic_stream_test.c
237
if (!TEST_ptr(dst_buf = OPENSSL_malloc(init_size)))
crypto/openssl/test/quic_stream_test.c
240
if (!TEST_ptr(ref_src_buf = OPENSSL_malloc(init_size)))
crypto/openssl/test/quic_stream_test.c
243
if (!TEST_ptr(ref_dst_buf = OPENSSL_malloc(init_size)))
crypto/openssl/test/quic_stream_test.c
486
if (!TEST_ptr(bulk_data = OPENSSL_malloc(data_size))
crypto/openssl/test/quic_stream_test.c
487
|| !TEST_ptr(read_buf = OPENSSL_malloc(data_size))
crypto/openssl/test/quicapitest.c
1056
msg = OPENSSL_malloc(msglen);
crypto/openssl/test/radix/quic_ops.c
584
buf = OPENSSL_malloc(thislen);
crypto/openssl/test/radix/quic_ops.c
657
&& !TEST_ptr(RT()->tmp_buf = OPENSSL_malloc(buf_len)))
crypto/openssl/test/secmemtest.c
41
q = OPENSSL_malloc(20);
crypto/openssl/test/slh_dsa_test.c
408
|| !TEST_ptr(sig = OPENSSL_malloc(sig_len))
crypto/openssl/test/ssl_old_test.c
263
out = OPENSSL_malloc(strlen(in) + 1);
crypto/openssl/test/ssl_old_test.c
309
alpn_selected = OPENSSL_malloc(*outlen);
crypto/openssl/test/sslapitest.c
11695
msg = OPENSSL_malloc(msglen);
crypto/openssl/test/sslapitest.c
11710
buf = OPENSSL_malloc(msglen);
crypto/openssl/test/sslapitest.c
1644
buf = OPENSSL_malloc(SSL3_RT_MAX_PLAIN_LENGTH + 1);
crypto/openssl/test/sslapitest.c
6095
|| (data = OPENSSL_malloc(sizeof(*data))) == NULL)
crypto/openssl/test/sslapitest.c
6141
|| (data = OPENSSL_malloc(sizeof(*data))) == NULL)
crypto/openssl/test/sslcorrupttest.c
157
cipher_list = OPENSSL_malloc(sk_SSL_CIPHER_num(sk_ciphers) * sizeof(cipher_list[0]));
crypto/openssl/test/stack_test.c
260
SS *q = OPENSSL_malloc(sizeof(*q));
crypto/openssl/test/stack_test.c
283
v[i] = OPENSSL_malloc(sizeof(*v[i]));
crypto/openssl/test/testutil/apps_shims.c
25
if (!TEST_ptr(vp = OPENSSL_malloc(sz))) {
crypto/openssl/test/testutil/driver.c
424
if (!TEST_ptr(ret = p = OPENSSL_malloc(len + 1)))
crypto/openssl/test/testutil/format_output.c
302
if (len > MEM_BUFFER_SIZE && (bufp = OPENSSL_malloc(len * 2)) == NULL) {
crypto/openssl/test/testutil/helper.c
45
timestamp_tm = OPENSSL_malloc(sizeof(*timestamp_tm));
crypto/openssl/test/timing_load_creds.c
156
contents = OPENSSL_malloc(sb.st_size + 1);
crypto/openssl/test/tls-provider.c
436
PROV_XOR_CTX *prov_ctx = OPENSSL_malloc(sizeof(PROV_XOR_CTX));
crypto/openssl/test/tls13encryptiontest.c
192
outbuf = OPENSSL_malloc(totlen);
crypto/openssl/test/tls13encryptiontest.c
230
rec->data = rec->input = OPENSSL_malloc(ptlen + EVP_GCM_TLS_TAG_LEN);
crypto/openssl/test/v3nametest.c
289
char *name = OPENSSL_malloc(namelen + 1);
crypto/openssl/test/v3nametest.c
608
GENERAL_NAME **namesa = OPENSSL_malloc(sizeof(*namesa)
crypto/openssl/test/v3nametest.c
610
GENERAL_NAME **namesb = OPENSSL_malloc(sizeof(*namesb)
crypto/openssl/test/x509aux.c
70
if ((buf = bufp = OPENSSL_malloc(len)) == NULL) {