diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-26 11:56:46 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-27 08:43:32 +0300 |
commit | 0a84874c7e7dde5cdddc80a82093120e924a348b (patch) | |
tree | 375258bee154e1288056eb10860a9f8ca6fd3ae0 /scripts/lib/kdoc/kdoc_parser.py | |
parent | 2297554f01df6d3d4e98a3915c183ce3e491740a (diff) | |
download | linux-0a84874c7e7dde5cdddc80a82093120e924a348b.tar.xz |
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: syzbot+4851c19615d35f0e4d68@syzkaller.appspotmail.com
Fixes: 7650f826f7b2 ("crypto: shash - Handle partial blocks in API")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions