Punt socket: Fix coverity error for pathname length mismatch between API and sun_path. 25/8325/2
authorOle Troan <ot@cisco.com>
Thu, 7 Sep 2017 08:04:41 +0000 (10:04 +0200)
committerChris Luke <chris_luke@comcast.com>
Thu, 7 Sep 2017 10:54:02 +0000 (10:54 +0000)
Change-Id: I69d67707540e075afe7bad0a70e57d9d80b1bc8e
Signed-off-by: Ole Troan <ot@cisco.com>
src/vpp/api/vpe.api

index 0dee153..eda95ce 100644 (file)
@@ -1006,7 +1006,7 @@ define punt_socket_register {
     u8 is_ip4;
     u8 l4_protocol;
     u16 l4_port;
-    u8 pathname[64];
+    u8 pathname[108]; /* Linux sun_path defined to be 108 bytes, see unix(7) */
 };
 
 define punt_socket_register_reply