Uploaded image for project: 'bgpcep'
  1. bgpcep
  2. BGPCEP-851

PCEP base parser is unable to handle multiple ERO

    XMLWordPrintable

Details

    • Bug
    • Status: Verified
    • High
    • Resolution: Done
    • Bugzilla Migration
    • Neon, Fluorine SR2
    • PCEP
    • None
    • High

    Description

      When sending a PCReply message with more than one ERO object, as per RFC540, the PCEP base parser start infinite loop and stop with a java heap exception.

      The problem is located in PCEPReplyMessageParser.java (pcep-base-parser package) at line 217 in handleEro() method. handleEro() is called with the first ERO object and remaining object to parse metrics associated with this ERO. The parsing is done by parserPath() method, but this method expect to fin only metrics object. When a second ERO follow the last metric of the first ERO, parsePath() method do nothing and handleEro() method start infinite loop at line 220 as the object list is not empty and parsePath() will not empty it.

      Patch is provide below and submitted.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            odd22 Olivier Dugeon
            odd22 Olivier Dugeon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified