Re: [Qemu-devel] [PATCH v2] crypto: afalg: fix a NULL pointer dereference

2017-11-07 Thread Eric Blake
On 11/07/2017 05:32 AM, Longpeng(Mike) wrote: > From: Longpeng > > Test-crypto-hash calls qcrypto_hash_bytesv/digest/base64 with > errp=NULL, this will cause a NULL pointer deference if afalg_driver s/deference/dereference/ (I called out two typo fixes against v1, but you only fixed one of them

[Qemu-devel] [PATCH v2] crypto: afalg: fix a NULL pointer dereference

2017-11-07 Thread Longpeng(Mike)
From: Longpeng Test-crypto-hash calls qcrypto_hash_bytesv/digest/base64 with errp=NULL, this will cause a NULL pointer deference if afalg_driver doesn't support requested algos: ret = qcrypto_hash_afalg_driver.hash_bytesv(alg, iov, niov, result