]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib: Fix string size issue with clang 3469/head
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 12 Dec 2018 17:32:22 +0000 (12:32 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 12 Dec 2018 17:32:22 +0000 (12:32 -0500)
Newer versions of clang are failing on xpath length
not being sufficiently sized to hold all possible data
that could be thrown at it.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
lib/northbound.c

index 8b96dc4a6cb15d793624d72b5570ecaabeca36ae..09aa60b1d2b43f05c1dc3f26d3100e8ca5f2c9b5 100644 (file)
@@ -1071,7 +1071,7 @@ static int nb_oper_data_iter_list(const struct nb_node *nb_node,
        /* Iterate over all list entries. */
        do {
                struct yang_list_keys list_keys;
-               char xpath[XPATH_MAXLEN];
+               char xpath[XPATH_MAXLEN * 2];
                int ret;
 
                /* Obtain list entry. */