aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2017-10-09 15:30:02 +0000
committerHerbert Xu <[email protected]>2017-10-10 16:34:07 +0000
commitb61907bb42409adf9b3120f741af7c57dd7e3db2 (patch)
tree5e2e631bddf0f13336e2c52ac93cbce361bfcbd7 /drivers/fpga/fpga-region.c
parentcrypto: skcipher - Fix crash on zero-length input (diff)
downloadkernel-b61907bb42409adf9b3120f741af7c57dd7e3db2.tar.gz
kernel-b61907bb42409adf9b3120f741af7c57dd7e3db2.zip
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]>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions