[dpdk-dev] [PATCH] app/test_acl: fix division by float zero

Thomas Monjalon thomas.monjalon at 6wind.com
Wed Apr 27 16:14:44 CEST 2016


> > Fix issue reported by Coverity.
> > Coverity ID 13240
> > 
> > This could cause an immediate crash or incorrect computation.
> > 
> > In search_ip5tuples: An expression which may be zero is used
> > as a divisor in floating-point arithmetic.
> > 
> > divide_by_zero: In expression (long double)tm / pkt,
> > division by expression pkt which may be zero has undefined behavior.
> > 
> > Fixes: 26c057ab6c45 ("acl: new test-acl application")
> > 
> > Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod at intel.com>
> 
> Acked-by: Konstantin Ananyev <konstantin.ananyev at intel.com>

Applied, thanks


More information about the dev mailing list