[ovs-dev] [PATCH v2] odp-util: Validate close-brace in scan_geneve and fix return values of san_xxx functions

Ben Pfaff blp at ovn.org
Mon Nov 5 15:35:11 UTC 2018


On Thu, Nov 01, 2018 at 10:33:03AM -0700, Yifeng Sun wrote:
> This patch adds validation of close-braces in scan_geneve. An simple
> example is "set(encap(tunnel(geneve({{))))". When scan_geneve returns,
> (struct geneve_scan *key)->len equals to 2*sizeof(struct geneve_opt).
> That seems not correct.
> 
> Found this issue while inspecting oss-fuzz
> https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=11153.
> 
> In addition, SCAN_TYPE expects scan_XXX functions to return 0
> on errors. This patch inspects all related scan_XXX functions
> and fixes their return values.
> 
> Signed-off-by: Yifeng Sun <pkusunyifeng at gmail.com>

Thanks, applied to master.


More information about the dev mailing list