#14 Incorrect behavior in purging a list

open
None
5
2009-09-30
2007-01-16
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
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks