BGP: make sure the path attributes don't go past the end of the packet.
authorGuy Harris <gharris@sonic.net>
Mon, 15 Nov 2021 22:33:10 +0000 (14:33 -0800)
committerGuy Harris <gharris@sonic.net>
Mon, 15 Nov 2021 22:33:10 +0000 (14:33 -0800)
commitf21edaed159942cb763f2ef1925bb411cfce5e2f
tree97a9688b03fffc72978389b14fd9104c323746b6
parentd402846793a6fa51f98e6510e936d82c11dbd422
BGP: make sure the path attributes don't go past the end of the packet.

This fixes some undefined behavior in which we subtract the remaining
length of the path attributes from the remaining length of the packet,
where the former is greater than the latter and they're both unsigned.
print-bgp.c