[dpdk-stable] [PATCH] rib: fix undefined behavior

David Marchand david.marchand at redhat.com
Tue Dec 15 10:08:21 CET 2020


On Tue, Dec 8, 2020 at 6:00 PM Vladimir Medvedkin
<vladimir.medvedkin at intel.com> wrote:
>
> According to GCC documentation for __builtin_clz:
> Returns the number of leading 0-bits in x,
> starting at the most significant bit position.
> If x is 0, the result is undefined.
> __builtin_clz will be called with 0 if the existing
> prefix address matches the one we want to insert.
>
> Fixes: 5a5793a5ffa2 ("rib: add RIB library")
> Cc: stable at dpdk.org
>
> Reported-by: David Marchand <david.marchand at redhat.com>
> Signed-off-by: Vladimir Medvedkin <vladimir.medvedkin at intel.com>

Applied, thanks.


-- 
David Marchand



More information about the stable mailing list