Gancho Tenev created TS-4935:
--------------------------------
Summary: Adding same element twice in a row damages DLL's
structure silently
Key: TS-4935
URL: https://issues.apache.org/jira/browse/TS-4935
Project: Traffic Server
Issue Type: Bug
Components: Core
Reporter: Gancho Tenev
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).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)