git-svn-id: http://svn.ruby-lang.org/repos/ruby/tags/v1_8_7_334@30912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby/test_exception.rb (TestException::test_to_s_taintness_propagation): Test for below. * error.c (exc_to_s): untainted strings can be tainted via Exception#to_s, which enables attackers to overwrite sane strings. Reported by: Yusuke Endoh <mame at tsg.ne.jp>. * error.c (name_err_to_s): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@30911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/fileutils.rb (FileUtils::remove_entry_secure): there is a race condition in the case where the given path is a directory, and some other user can move that directory, and create a symlink while this method is executing. Reported by: Nicholas Jefferson <nicholas at pythonic.com.au> git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@30910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/win32.c (init_stdhandle): backport mistake of r29382. some code are needless in ruby 1.8. [ruby-core:34579] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@30902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
binary incompatibilities on some circumstances. The bug that revision was fixing gets reopened by this reversion. [ruby-dev:43152] cf. [Bug #2553] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@30895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
…s a regular file instead of just checking the executable bit, in order to avoid detecting directories as commands. Fixes issue #59.
…so fixes issue #42.
Observed odd mutex behaviour in a threaded rack app while ab'ing it for performance testing. Discovered that this issue had already been addressed: http://redmine.ruby-lang.org/issues/show/1471 http://gist.github.com/455046 demonstrates the issue. I used the two patches at http://redmine.ruby-lang.org/issues/show/1471#note-8 to solve it.
…The former has been renamed and the latter is no longer necessary.
…ack. - For some reason FreeBSD does not allow dlopen()ing native extensions that are linked to pthread if the main executable isn't. - FreeBSD does not allow using more than 4 MB of stack even though getrlimit() reports a much higher amount. Limiting to 4 MB gets rid of 'Illegal instruction' crashes.
…aving empty fields can cause problems with some versions of Apt.
… easily reproduced.
…patch and replace -Os -fno-strict-aliasing with -O2