summaryrefslogtreecommitdiff
path: root/tests/topotests/example-test/test_example.py
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-11-22 02:49:45 -0500
committerQuentin Young <qlyoung@cumulusnetworks.com>2020-01-03 14:06:31 -0500
commitf69aeb7696461fc333dc8b12a55f8160a80db1fc (patch)
tree40ff8f44f6110e01eb6f5550de0e5201ae633ac6 /tests/topotests/example-test/test_example.py
parentf8034506de01e8f77ff470acec3fdbbd9a05dd2d (diff)
bgpd: fix missing bounds checks for psid attr
Guess what - for a bounds check to work, it has to happen *before* you read the data. We were trusting the attribute field received in a prefix SID attribute and then checking if it was correct afterwards, but if was wrong we'd crash before that. This fixes the problem, and adds additional paranoid bounds checks. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'tests/topotests/example-test/test_example.py')
0 files changed, 0 insertions, 0 deletions