Граф коммитов

5 Коммитов

Автор SHA1 Сообщение Дата
akr 2577fa6dcc * lib/resolv.rb: randomize source port and transaction id.
CVE-2008-1447.

* lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is
  "".


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-08 01:58:40 +00:00
akr 2e11b3262a exception message changed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 17:42:08 +00:00
akr c9c51009cf * lib/resolv-replace.rb (BasicSocket#send): don't replace because
it has no hostname argument.
  (IPSocket.getaddress): raise SocketError instead of
  Resolv::ResolvError for errors.
  (TCPSocket#initialize, UDPSocket#bind, UDPSocket#connect)
  (SOCKSSocket#initialize): use IPSocket.getaddress instead of
  Resolv.getaddress.
  (UDPSocket#send): recognize 3 arguments form.  try all addresses on
  4 arguments form.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-02-01 15:21:24 +00:00
nobu dfe0aab04f * lib/resolv-replace.rb: 1.8 compliance. [ruby-talk:82946]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2003-09-26 09:35:44 +00:00
matz 4cd1cd7201 * ruby.c (proc_options): unexpected SecurityError happens when -T4.
* regex.c (re_compile_pattern): * \1 .. \9 should be
  backreferences always.

* regex.c (re_match): backreferences corresponding to
  unclosed/unmatched parentheses should fail always.

* string.c (rb_str_cat): use rb_str_buf_cat() if possible. [new]

* string.c (rb_str_append): ditto.

* string.c (rb_str_buf_cat): remove unnecessary check (type,
  taint, modify) to gain performance.

* string.c (rb_str_buf_append): ditto.

* string.c (rb_str_buf_finish): removed.

* string.c (rb_str_buf_new): buffering string function. [new]

* string.c (rb_str_buf_append): ditto.

* string.c (rb_str_buf_cat): ditto.

* string.c (rb_str_buf_finish): ditto.

* time.c (make_time_t): local time adjustment revised.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2001-05-30 09:10:30 +00:00