summaryrefslogtreecommitdiff
path: root/crypto/cts.c
diff options
context:
space:
mode:
authorJan Stancek <jstancek@redhat.com>2016-09-28 16:38:37 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-10-02 22:33:43 +0800
commit9900fc24982726c6957b008d35ef281ecada85fb (patch)
tree1cfc0726e19ad676e04cf6de87c6d9dacf718d0b /crypto/cts.c
parentfc1c69a630a3b23f4fb7462be45e081cc0aed124 (diff)
downloadlinux-crypto-9900fc24982726c6957b008d35ef281ecada85fb.tar.gz
linux-crypto-9900fc24982726c6957b008d35ef281ecada85fb.zip
crypto: testmgr - add guard to dst buffer for ahash_export
Add a guard to 'state' buffer and warn if its consistency after call to crypto_ahash_export() changes, so that any write that goes beyond advertised statesize (and thus causing potential memory corruption [1]) is more visible. [1] https://marc.info/?l=linux-crypto-vger&m=147467656516085 Signed-off-by: Jan Stancek <jstancek@redhat.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Marcelo Cerri <marcelo.cerri@canonical.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/cts.c')
0 files changed, 0 insertions, 0 deletions