Actions
Bug #4572
closedURI.encode_www_form_component and decode_www_form_component are not threadsafe
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
Backport:
Description
=begin
The initializations of TBLENCWWWCOMP_ and TBLDECWWWCOMP_ suffer from an obvious race condition. If multiple threads enter either the function for the first time, it may produce unexpected results. The initializations should be done at class scope or be protected by a mutex.
=end
Updated by naruse (Yui NARUSE) about 14 years ago
- Status changed from Open to Closed
- % Done changed from 0 to 100
=begin
This issue was solved with changeset r31266.
John, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/uri/common.rb: avoid race condition. fixes #4572
=end
Actions
Like0
Like0