]> git.proxmox.com Git - ovs.git/commit - lib/ofp-actions.c
ofp-print: Avoid array overread in print_table_instruction_features().
authorBen Pfaff <blp@ovn.org>
Sat, 27 May 2017 02:59:47 +0000 (19:59 -0700)
committerBen Pfaff <blp@ovn.org>
Thu, 1 Jun 2017 23:44:45 +0000 (16:44 -0700)
commit3b048d73f4cd4a29ea15b6d6f3eb5835376a2ad2
tree85c680f23f0e923ea7d821f080f96ea7243ecbf0
parentd713501835575e0427cceba6c14ac6eede852e1a
ofp-print: Avoid array overread in print_table_instruction_features().

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@ovn.org>
Acked-by: Justin Pettit <jpettit@ovn.org>
lib/ofp-actions.c
lib/ofp-print.c