isisd: fix router capability TLV parsing issues - #10517
Conversation
|
|
||
| break; | ||
| case ISIS_SUBTLV_ALGORITHM: | ||
| /* Only 2 algorithms are supported: SPF & Strict SPF */ |
There was a problem hiding this comment.
We may miss a check on length before calling stream_get in this case. We may need a check length != 0 here.
Continuous Integration Result: FAILEDContinuous Integration Result: FAILEDSee below for issues. This is a comment from an automated CI system. Get source / Pull Request: SuccessfulBuilding Stage: SuccessfulBasic Tests: FailedTopotests Ubuntu 18.04 arm8 part 7: Failed (click for details)Topotests Ubuntu 18.04 arm8 part 7: No useful log foundTopotests Ubuntu 18.04 amd64 part 7: Failed (click for details)Topology Test Results are at https://ci1.netdef.org/browse/FRR-PULLREQ2-TOPO7U18AMD64-3271/test Topology Tests failed for Topotests Ubuntu 18.04 amd64 part 7 Topotests Ubuntu 18.04 i386 part 7: Failed (click for details)Topology Test Results are at https://ci1.netdef.org/browse/FRR-PULLREQ2-TOPO7U18I386-3271/test Topology Tests failed for Topotests Ubuntu 18.04 i386 part 7 Topotests debian 10 amd64 part 7: Failed (click for details)Topology Test Results are at https://ci1.netdef.org/browse/FRR-PULLREQ2-TOPO7DEB10AMD64-3271/test Topology Tests failed for Topotests debian 10 amd64 part 7 Successful on other platforms/tests
|
isis_tlvs.c would fail at multiple places if incorrect TLVs were received causing stream assertion violations. This patch fixes the issues by adding missing length checks, missing consumed length updates and handling malformed Segment Routing subTLVs. Signed-off-by: Juraj Vijtiuk <juraj.vijtiuk@sartura.hr> Small adjustments by Igor Ryzhov: - fix incorrect replacement of srgb by srlb on lines 3052 and 3054 - add length check for ISIS_SUBTLV_ALGORITHM - fix conflict in fuzzing data during rebase Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
21ba3e0 to
9ba865f
Compare
|
I finally found and fixed the issue that caused CI failures. Added the following to the commit message: |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-PULLREQ2-3284/ This is a comment from an automated CI system. |
|
@Mergifyio backport dev/8.2 |
✅ Backports have been createdDetails
|
isisd: fix router capability TLV parsing issues (backport #10517)
This is a rebased version of #9850.
A couple of adjustments made by me: