[dpdk-dev] [PATCH] crypto/qat: fix out-of-bounds compiler error

Trahe, Fiona fiona.trahe at intel.com
Mon Jan 15 15:30:53 CET 2018



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Tomasz Jozwiak
> Sent: Monday, January 15, 2018 1:53 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>
> Cc: dev at dpdk.org; Jozwiak, TomaszX <tomaszx.jozwiak at intel.com>
> Subject: [dpdk-dev] [PATCH] crypto/qat: fix out-of-bounds compiler error
> 
> This commit fixes
>   - bpi_cipher_encrypt to prevent before 'array subscript is
>     above array bounds' error
>   - bpi_cipher_decrypt to prevent before 'array subscript is
>     above array bounds' error
>   - right cast from qat_cipher_get_block_size function.
>     This function can return -EFAULT in case of any error,
>     and that value must be cast to int instead of uint8_t
>   - typo in error message
> 
> A performance improvement was added to bpi_cipher_encrypt and
> bpi_cipher_decrypt as well.
> 
> Fixes: d18ab45f7654 ("crypto/qat: support DOCSIS BPI mode")
> 
> Signed-off-by: Tomasz Jozwiak <tomaszx.jozwiak at intel.com>

Acked-by: Fiona Trahe <fiona.trahe at intel.com>


More information about the dev mailing list