CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/04/16 13:06:45

Modified files:
        usr.sbin/bgpd  : rde_community.c 

Log message:
Avoid undefined behaviour in the community code by checking nentries to
be not 0 before memcmp, bsearch or siphash calls.

Calling these functions with a NULL pointer is UB even with a zero len.
While I did fix some code already during a review of all such possible
NULL, 0 calls I missed the bsearch one and introduced the community_equal
memcmp after that.

Reported by Synmac Oliver
OK tb@ deraadt@

Reply via email to