Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#14 Incorrect behavior in purging a list

open
Simon Wright
None
5
2009-09-30
2007-01-16
Chris Henrich
No

in both bc-containers-list-single.adb and bc-containers-lists-double.adb, in
procedure Purge(L : in out List; From : Positive; Count : Positive), the code
if Shared_Node_foound then
Ptr.Next := null;
end if;
is incorrect. If the assignment to Ptr.Next is executed then other lists that share items with L will be damaged.

Discussion

  • Simon Wright
    Simon Wright
    2007-01-21

    • assigned_to: nobody --> simonjwright
     
  • Simon Wright
    Simon Wright
    2009-09-30

    • summary: INcorrect behavior in purging a list --> Incorrect behavior in purging a list