CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/03/19 09:36:44

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

Log message:
You can not use ibuf_add_n32 for an signed 32bit type.

ibuf_add_nXY() and ibuf_add_hXY() pass values as uint64_t so the sign
extension of a negative 32bit value will cause an overflow check to trigger.
The relative metric field can be negative and so this will trigger this
error. Use ibuf_add() instead, which is more what this should use anyway.

Found the hard way by sthen@ who also debugged it.
OK tb@ sthen@

Reply via email to