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

Also available in: Atom PDF

Like0
Like0