Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4935

Adding same element twice in a row damages DLL's structure silently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 7.1.0
    • Core
    • None

    Description

      If the DLL list (lib/ts/List.h) is used improperly its internal structure gets damaged silently without any indication to the caller (no assert or return code).

      If the the same element is added twice in a row the element's “next” would start pointing to the element itself and all the existing list content would be lost. All further additions will be OK but the next list traversal will be infinite.

      Also noticed that when a new element is added to the list the element’s “prev” is not initialized (not a problem in the most common case but should to be fixed).

      Attachments

        Issue Links

          Activity

            People

              gancho Gancho Tenev
              gancho Gancho Tenev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: