[
https://issues.apache.org/jira/browse/XERCESC-1391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Scott Cantor closed XERCESC-1391.
---------------------------------
> Class RangeToken is not thread-safe
> -----------------------------------
>
> Key: XERCESC-1391
> URL: https://issues.apache.org/jira/browse/XERCESC-1391
> Project: Xerces-C++
> Issue Type: Bug
> Components: Utilities
> Affects Versions: 2.6.0
> Reporter: David Bertoni
> Assignee: David Bertoni
> Priority: Critical
> Fix For: 2.7.0
>
> Attachments: patch.txt
>
>
> The class RangeToken initializes its fMap data member the first time
> on-demand, which makes it sensitive to race-conditions. I am proposing a
> patch to the class, with additional patches to the classes that perform
> static initialization to ensure that when users request full static
> initialization, the fMap data member of all static RangeToken instances is
> initialized.
> Although this does not prevent threading problems in all cases, it will fix
> the problem with all global statics. I will attempt to propose another patch
> that takes care of the problem with other uses of RangeToken.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]