Commit 0a84874c authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: shash - Fix buffer overrun in import function



Only set the partial block length to zero if the algorithm is
block-only.  Otherwise the descriptor context could be empty,
e.g., for digest_null.

Reported-by: default avatar <syzbot+4851c19615d35f0e4d68@syzkaller.appspotmail.com>
Fixes: 7650f826 ("crypto: shash - Handle partial blocks in API")
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 2297554f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment