Project

General

Profile

Actions

Bug #4572

closed

URI.encode_www_form_component and decode_www_form_component are not threadsafe

Added by john_firebaugh (John Firebaugh) about 14 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
Backport:
[ruby-core:35717]

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

Actions #1

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

Also available in: Atom PDF

Like0
Like0