Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 378 Bytes

PH_S028.md

File metadata and controls

9 lines (5 loc) · 378 Bytes

PH_S028 - Leaked Inbound Collection

Problem

The access to a collection is protected synchronized with the help of monitor locks, but a reference is assigned. The assigned reference allows unprotected accesses to the collection, thus neglecting the synchronization effort.

Solution

Assign the reference of a copy of the collection instead of the original collection.