bpf: fix add/sub min/max estimations
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Wed, 27 May 2020 14:16:50 +0000 (15:16 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 24 Jun 2020 21:34:07 +0000 (23:34 +0200)
commit20c19d9df5f08840d96204dcc65437223c434325
tree7bacd2fdcd297f40dc0a129de3f1a4ad75c3eaf4
parent83633ba230761647b5014301c1f98b670d03e375
bpf: fix add/sub min/max estimations

eval_add()/eval_sub() not always correctly estimate
minimum and maximum possible values of add/sub operations.

Fixes: 8021917293d0 ("bpf: add extra validation for input BPF program")
Cc: stable@dpdk.org
Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_bpf/bpf_validate.c