aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorPatrick McHardy <[email protected]>2008-05-07 22:34:27 +0800
committerHerbert Xu <[email protected]>2008-07-10 20:35:11 +0800
commit136f702f51a4bfa38003660768e7153823fff8a1 (patch)
tree61bd60f542dcaf74419d47a7d5866138727bb566 /lib/string_helpers.c
parentd069033b42b392662320f71e319296a14d57ff3a (diff)
[HIFN]: Properly handle requests for less than the full scatterlist
The scatterlist may contain more data than the crypto request, causing an underflow of the remaining byte count while walking the list. Use the minimum of the scatterlist element size and the remaining byte count specified in the crypto request to avoid this. Signed-off-by: Patrick McHardy <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions