]> Git Repo - linux.git/commit - crypto/morus640.c
crypto: morus640 - Fix out-of-bounds access
authorOndrej Mosnáček <[email protected]>
Wed, 13 Jun 2018 14:44:17 +0000 (16:44 +0200)
committerHerbert Xu <[email protected]>
Fri, 15 Jun 2018 15:06:48 +0000 (23:06 +0800)
commita81ae8095712d1513fe8d58527c92c439b43233e
treeba5545a359bc33638ace2a1468f4b3c8d5d53d70
parentf044a84e040b85cd609851ac88ae8b54b2cc0b75
crypto: morus640 - Fix out-of-bounds access

We must load the block from the temporary variable here, not directly
from the input.

Also add forgotten zeroing-out of the uninitialized part of the
temporary block (as is done correctly in morus1280.c).

Fixes: 396be41f16fd ("crypto: morus - Add generic MORUS AEAD implementations")
Reported-by: [email protected]
Reported-by: [email protected]
Signed-off-by: Ondrej Mosnacek <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
crypto/morus640.c
This page took 0.049618 seconds and 4 git commands to generate.