[dpdk-stable] [PATCH v3] test/hash: fix buffer overflow
    David Marchand 
    david.marchand at redhat.com
       
    Fri Oct 15 11:33:30 CEST 2021
    
    
  
On Thu, Oct 14, 2021 at 7:55 PM Vladimir Medvedkin
<vladimir.medvedkin at intel.com> wrote:
> @@ -1607,6 +1611,17 @@ static struct rte_hash_parameters hash_params_ex = {
>  };
>
>  /*
> + * Wrapper function around rte_jhash_32b.
> + * It is required because rte_jhash_32b() accepts the length
> + * as size of 4-byte units.
> + */
> +static inline uint32_t
> +test_jhash_32b(const void *k, uint32_t length, uint32_t initval)
> +{
> +       return rte_jhash_32b(k, length >> 2, initval);
> +}
I am confused.
Does it mean that rte_jhash_32b is not compliant with rte_hash_create API?
-- 
David Marchand
    
    
More information about the stable
mailing list