Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:GA
openvswitch-dpdk.6197
0001-ofp-print-Don-t-abort-on-unknown-reason-in...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-ofp-print-Don-t-abort-on-unknown-reason-in-role-stat.patch of Package openvswitch-dpdk.6197
From fdbf47630376596ad212daff55387e2bb393da7b Mon Sep 17 00:00:00 2001 From: Ben Pfaff <blp@ovn.org> Date: Fri, 26 May 2017 13:22:26 -0700 Subject: [PATCH] ofp-print: Don't abort on unknown reason in role status message. A buggy or malicious switch could send a role status message with a bad reason code, which if printed by OVS would cause it to abort. This fixes the problem. Reported-by: Bhargava Shastry <bshastry@sec.t-labs.tu-berlin.de> Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Yi-Hung Wei <yihung.wei@gmail.com> --- lib/ofp-print.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index cdf2f4bd9..4c852dab6 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1905,7 +1905,8 @@ ofp_print_role_status_message(struct ds *string, const struct ofp_header *oh) break; case OFPCRR_N_REASONS: default: - OVS_NOT_REACHED(); + ds_put_cstr(string, "(unknown)"); + break; } } -- 2.15.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor