summaryrefslogtreecommitdiff
path: root/proto_ipv6.c
AgeCommit message (Expand)AuthorFilesLines
2014-02-24dissectors: Get rid of unecessary includes of protos.hTobias Klauser1-1/+0
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+112
>authorHerbert Xu <herbert@gondor.apana.org.au>2016-09-13 14:43:29 +0800 committerHerbert Xu <herbert@gondor.apana.org.au>2016-09-13 18:44:57 +0800 commitacdb04d0b36769b3e05990c488dc74d8b7ac8060 (patch) tree929bde16dc4aa075f378f43a923dfa3dfe6aaefd parent53a5d5ddccf849dbc27a8c1bba0b43c3a45fb792 (diff)
crypto: skcipher - Fix blkcipher walk OOM crash
When we need to allocate a temporary blkcipher_walk_next and it fails, the code is supposed to take the slow path of processing the data block by block. However, due to an unrelated change we instead end up dereferencing the NULL pointer. This patch fixes it by moving the unrelated bsize setting out of the way so that we enter the slow path as inteded. Fixes: 7607bd8ff03b ("[CRYPTO] blkcipher: Added blkcipher_walk_virt_block") Cc: stable@vger.kernel.org Reported-by: xiakaixu <xiakaixu@huawei.com> Reported-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat