summaryrefslogtreecommitdiff
path: root/crypto/Makefile
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2017-10-09 23:30:02 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2017-10-11 00:34:07 +0800
commit58425dc5a756e7d9cab4d4f0632c0455e1419279 (patch)
tree607fa71fd8932c2657db62de8db0679197e2b894 /crypto/Makefile
parent75b192a19c70ec09e68484d7741a99438bbef306 (diff)
downloadlinux-crypto-58425dc5a756e7d9cab4d4f0632c0455e1419279.tar.gz
linux-crypto-58425dc5a756e7d9cab4d4f0632c0455e1419279.zip
crypto: shash - Fix zero-length shash ahash digest crash
The shash ahash digest adaptor function may crash if given a zero-length input together with a null SG list. This is because it tries to read the SG list before looking at the length. This patch fixes it by checking the length first. Cc: <stable@vger.kernel.org> Reported-by: Stephan Müller<smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Stephan Müller <smueller@chronox.de>
Diffstat (limited to 'crypto/Makefile')
0 files changed, 0 insertions, 0 deletions