diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-09 08:45:21 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2007-09-09 08:45:21 +0100 |
commit | a25a77b56a664958c8c982ea8b2e31e7b366f10b (patch) | |
tree | 39937db5738a909dabdf0a2baea4bc935f244dd0 /crypto/arc4.c | |
parent | a37620a6dacd79bc1a6ebbc581f651eee93f2945 (diff) | |
download | linux-crypto-a25a77b56a664958c8c982ea8b2e31e7b366f10b.tar.gz linux-crypto-a25a77b56a664958c8c982ea8b2e31e7b366f10b.zip |
[CRYPTO] blkcipher: Fix handling of kmalloc page straddling
The function blkcipher_get_spot tries to return a buffer of
the specified length that does not straddle a page. It has
an off-by-one bug so it may advance a page unnecessarily.
What's worse, one of its callers doesn't provide a buffer
that's sufficiently long for this operation.
This patch fixes both problems. Thanks to Bob Gilligan for
diagnosing this problem and providing a fix.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/arc4.c')
0 files changed, 0 insertions, 0 deletions