[openssl-dev] [openssl.org #4073] Segfault in engine processing

Dmitry Belyavsky via RT rt at openssl.org
Tue Oct 6 20:08:12 UTC 2015


Hello!

I get a segfault when executing the command

openssl dgst -engine gost -md_gost94 -mac hmac -macop
key:123456901234567890123456789012

The stack trace is

#0  0x0000000000000000 in ?? ()
#1  0x00007ffff763420d in look_str_cb (arg=<optimized out>, sk=<optimized
out>, nid=<optimized out>, def=<optimized out>) at tb_asnmth.c:217
#2  look_str_cb (nid=815, sk=0x6afea0, def=<optimized out>,
arg=0x7fffffffe300) at tb_asnmth.c:208
#3  0x00007ffff764091c in doall_util_fn (arg=<optimized out>,
func_arg=<optimized out>, lh=0x6afd00, use_arg=<optimized out>,
func=<optimized out>) at lhash.c:261
#4  lh_doall_arg (lh=0x6afd00, func=func at entry=0x7ffff7632550
<int_cb_LHASH_DOALL_ARG>, arg=arg at entry=0x7fffffffe2e0) at lhash.c:276
#5  0x00007ffff7632a31 in engine_table_doall (table=<optimized out>,
cb=cb at entry=0x7ffff76341a0 <look_str_cb>, arg=arg at entry=0x7fffffffe300) at
eng_table.c:357
#6  0x00007ffff76345d3 in ENGINE_pkey_asn1_find_str
(pe=pe at entry=0x7fffffffe330,
str=str at entry=0x7fffffffed4e "hmac", len=len at entry=4) at tb_asnmth.c:237
#7  0x00007ffff766d7f3 in EVP_PKEY_asn1_find_str (pe=pe at entry=0x7fffffffe390,
str=str at entry=0x7fffffffed4e "hmac", len=4, len at entry=-1) at ameth_lib.c:198
#8  0x000000000042e510 in init_gen_str (pctx=pctx at entry=0x7fffffffe4c0,
algname=algname at entry=0x7fffffffed4e "hmac", e=e at entry=0x0, do_param=0,
do_param at entry=7013296) at genpkey.c:305
#9  0x00000000004282f1 in dgst_main (argc=1, argv=0x7fffffffeaf0) at
dgst.c:303
#10 0x000000000041e1db in do_cmd (prog=prog at entry=0x6aaae0, argc=argc at entry=9,
argv=0x7fffffffeab0) at openssl.c:641
#11 0x000000000041de29 in main (argc=9, argv=<optimized out>) at
openssl.c:348


-- 
SY, Dmitry Belyavsky

-------------- next part --------------
_______________________________________________
openssl-bugs-mod mailing list
openssl-bugs-mod at openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-bugs-mod


More information about the openssl-dev mailing list