Files
Linux/crypto
Herbert Xu b61907bb42 crypto: shash - Fix zero-length shash ahash digest crash
The shash ahash digest adaptor function may crash if given a
zero-length input together with a null SG list.  This is because
it tries to read the SG list before looking at the length.

This patch fixes it by checking the length first.

Cc: <[email protected]>
Reported-by: Stephan Müller<[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Tested-by: Stephan Müller <[email protected]>
2017-10-11 00:34:07 +08:00
..
…
…
2017-06-10 12:04:25 +08:00
2017-09-20 17:42:29 +08:00
…
2017-06-10 12:04:25 +08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2016-11-28 21:23:18 +08:00
…
…
…
…
…
…