FreeRangeRouting Github Pull Request Testing

Build: #8353 was successful

Job: Static Analyzer (Clang) was successful

Job result summary

Completed
Duration
16 minutes
Flags
Custom revisionCustom build
Agent
clang1002.lab.netdef.org
Successful since
#6642 ()

Error summary

The build generated some errors. See the full build log for more details.

      ({ unsigned short int __v, __x = (unsigned short int) (x);              \
                                                            ^~~
1 warning generated.
ospf6d/ospf6_abr.c:1010:8: warning: Array access (via field 'options') results in a null pointer dereference
                if (!OSPF6_OPT_ISSET(router_lsa->options, OSPF6_OPT_R)
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ospf6d/ospf6_proto.h:42:33: note: expanded from macro 'OSPF6_OPT_ISSET'
#define OSPF6_OPT_ISSET(x,opt) ((x)[2] &   (opt))
                                ^~~~~~
1 warning generated.
ospf6d/ospf6_route.c:735:11: warning: Access to field 'rnode' results in a dereference of a null pointer (loaded from variable 'next')
                        assert(next->rnode == node);
                               ^~~~~~~~~~~
./lib/zassert.h:40:28: note: expanded from macro 'assert'
#define assert(EX) zassert(EX)
                           ^~
./lib/zassert.h:35:11: note: expanded from macro 'zassert'
        ((void)((EX) ? 0 : (_zlog_assert_failed(#EX, __FILE__, __LINE__,       \
                 ^~
1 warning generated.
isisd/isis_lsp.c:1027:14: warning: Access to field 'link_params' results in a dereference of a null pointer (loaded from field 'interface')
                                                    && HAS_LINK_PARAMS(
                                                       ^~~~~~~~~~~~~~~~
./lib/if.h:200:32: note: expanded from macro 'HAS_LINK_PARAMS'
#define HAS_LINK_PARAMS(ifp)  ((ifp)->link_params != NULL)
                               ^~~~~~~~~~~~~~~~~~
1 warning generated.
ldpd/lde.c:1624:3: warning: Use of memory after it is freed
                TAILQ_REMOVE(&ln->addr_list, lde_addr, entry);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/freebsd-queue.h:647:7: note: expanded from macro 'TAILQ_REMOVE'
                if ((TAILQ_NEXT((elm), field)) != NULL)                        \
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
ldpd/packet.c:627:10: warning: Potential leak of memory pointed to by 'buf'
        return (0);
                ^
1 warning generated.
babeld/message.c:857:5: warning: Null pointer passed as an argument to a 'nonnull' parameter
    memcpy(babel_ifp->sendbuf + babel_ifp->buffered, value, len);
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
pimd/pim_nht.c:751:3: warning: 5th function call argument is an uninitialized value
                zlog_debug("%s: Looking up: %s(%s), last lookup time: %lld",
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
In file included from nhrpd/nhrp_peer.c:17:
nhrpd/nhrpd.h:78:2: warning: Dereference of null pointer
        list_for_each_entry_safe(n, nn, &l->notifier_head, notifier_entry)
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nhrpd/list.h:202:10: note: expanded from macro 'list_for_each_entry_safe'
            n = list_entry(pos->member.next, typeof(*pos), member);            \
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
nhrpd/list.h:186:39: note: expanded from macro 'list_entry'
#define list_entry(ptr, type, member) container_of(ptr,type,member)
                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./lib/zebra.h:362:47: note: expanded from macro 'container_of'
                const typeof(((type *)0)->member) *__mptr = (ptr);             \
                                                            ^~~~~
1 warning generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-STATICANALYZER/frr-source/doc/manpages/bfd-options.rst:: WARNING: document isn't included in any toctree
nhrpd/vici.c:209:11: warning: Array access (via field 'ptr') results in a null pointer dereference
                switch (key->ptr[0]) {
                        ^~~~~~~~~~~
1 warning generated.
/home/ci/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-STATICANALYZER/frr-source/doc/user/bgp.rst:1089: ERROR: invalid RFC number draft-uttaro-idr-bgp-persistence
/home/ci/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-STATICANALYZER/frr-source/doc/user/bgp.rst:1099: ERROR: invalid RFC number draft-uttaro-idr-bgp-persistence
/home/ci/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-STATICANALYZER/frr-source/doc/user/bgp.rst:1109: ERROR: invalid RFC number draft-agrewal-idr-accept-own-nexthop
/home/ci/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-STATICANALYZER/frr-source/doc/user/bgp.rst:1109: ERROR: invalid RFC number draft-agrewal-idr-accept-own-nexthop
/home/ci/bamboo-agent-home/xml-data/build-dir/FRR-FRRPULLREQ-STATICANALYZER/frr-source/doc/user/snmptrap.rst:: WARNING: document isn't included in any toctree
staticd/static_vty.c:101:9: warning: Null pointer passed as an argument to a 'nonnull' parameter
        return strcmp(s1, s2);
               ^~~~~~~~~~~~~~
1 warning generated.
ospfd/ospf_vty.c:9604:9: warning: Dereference of null pointer
                                                                rn->p.u.prefix4));
                                                                ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9640:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9651:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9665:9: warning: Dereference of null pointer
                                                                rn->p.u.prefix4));
                                                                ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9676:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
ospfd/ospf_vty.c:9687:17: warning: Dereference of null pointer
                                                inet_ntoa(rn->p.u.prefix4));
                                                          ^~~~~~~~~~~~~~~
6 warnings generated.
bgpd/bgp_route.c:419:45: warning: Access to field 'host' results in a dereference of a null pointer (loaded from field 'peer')
                sprintf(buf, "path %s (addpath rxid %d)", ri->peer->host,
                                                          ^~~~~~~~~~~~~~
bgpd/bgp_route.c:422:27: warning: Access to field 'host' results in a dereference of a null pointer (loaded from field 'peer')
                sprintf(buf, "path %s", ri->peer->host);
                                        ^~~~~~~~~~~~~~
2 warnings generated.