[ovs-git] [openvswitch/ovs] 9fc0f8: ofp-print: Avoid array overread in print_table_ins...

GitHub noreply at github.com
Thu Jun 1 23:46:13 UTC 2017


  Branch: refs/heads/branch-2.7
  Home:   https://github.com/openvswitch/ovs
  Commit: 9fc0f8f04258d25d6a6a7ad0278abe39fd7bce99
      https://github.com/openvswitch/ovs/commit/9fc0f8f04258d25d6a6a7ad0278abe39fd7bce99
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-06-01 (Thu, 01 Jun 2017)

  Changed paths:
    M lib/ofp-actions.c
    M lib/ofp-print.c

  Log Message:
  -----------
  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 at ovn.org>
Acked-by: Justin Pettit <jpettit at ovn.org>




More information about the git mailing list