Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
odp-util: Properly handle the return values of scan_XXX functions
Functions like scan_u8, return 0 when they failed to scan the expected values. Function scan_geneve failed to check this situation. This leads to using of uninitialized value of opt_len_mask. This patch fixes it and further inspects and fixes all the problematic places where the return values of scan_XXX functions are not properly handled. Reported-at: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=10800 Signed-off-by: Yifeng Sun <pkusunyifeng@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
- Loading branch information
Showing
1 changed file
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters