Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expr: Disallow < <= >= > comparisons against empty value set.
OVN expression syntax does not allow a literal empty value set, like {}. Rather, any literal value set has to have at least one value. However, value sets that originate from address sets or from port groups can be empty. In such a case, == and != comparisons are allowed but < <= >= > should be errors. The actual implementation failed to properly disallow the latter and instead tried to access the first element of the value set, a bad read. This fixes the problem. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10731 Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10767 Signed-off-by: Ben Pfaff <blp@ovn.org> Reviewed-by: Yifeng Sun <pkusunyifeng@gmail.com>
- Loading branch information