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

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Core
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: