[ovs-dev] [PATCH] ofp-print: Avoid array overread in print_table_instruction_features().

Justin Pettit jpettit at ovn.org
Thu Jun 1 23:23:52 UTC 2017


> On May 26, 2017, at 8:00 PM, Ben Pfaff <blp at ovn.org> wrote:
> 
> If a switch claimed to support an instruction that OVS does not know about,
> then print_table_instruction_features() would read past the end of the
> array of instruction names.  This fixes the problem.
> 
> None of the other uses of print_table_instruction_features() appear to have
> the same problem.
> 
> Found by Coverity.
> 
> Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14762675&defectInstanceId=4305296&mergedDefectId=179859
> Signed-off-by: Ben Pfaff <blp at ovn.org>

Acked-by: Justin Pettit <jpettit at ovn.org>

--Justin




More information about the dev mailing list