[ovs-dev] [PATCH v2] odp-util: Move ufid handling to odp_flow_from_string

Ben Pfaff blp at ovn.org
Tue Oct 23 16:44:15 UTC 2018


On Thu, Oct 18, 2018 at 02:10:48PM -0700, Yifeng Sun wrote:
> When parse_odp_key_mask_attr runs into ufid, it returns length of ufid
> without further parsing. This causes problem to set action in function
> parse_odp_action where nested nlattrs are expected from ofpbuf after.
> 
> Since in all callers of parse_odp_key_mask_attr, only odp_flow_from_string 
> needs to understand ufid. This patch moves ufid parsing from
> parse_odp_key_mask_attr out to odp_flow_from_string.
> 
> Reported-by: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10850
> Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>
> ---
> v1->v2: Improved according to Ben's review.

Thanks, applied to master and backported.


More information about the dev mailing list