summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* add tag v1_8_6_287ruby_1_8_6_287shyouhei2008-08-110-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/tags/v1_8_6_287@18478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17872:shyouhei2008-08-114-7/+25
| | | | | | | | | | * ext/dl/dl.c (rb_str_to_ptr): should propagate taint to dlptr. * ext/dl/dl.c (rb_ary_to_ptr): ditto. * ext/dl/sym.c (rb_dlsym_call): should check taint of DLPtrData as well. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* patchlevel 286shyouhei2008-08-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-08-08svn2008-08-081-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb: randomize source port and transaction id.akr2008-08-083-115/+169
| | | | | | | | | | CVE-2008-1447. * lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is "". git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18220:shyouhei2008-08-043-13/+11
| | | | | | | | | * lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value): reduce backtrack. based on a fix by Christian Neukirchen <chneukirchen AT gmail.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18212:shyouhei2008-08-043-11/+44
| | | | | | | | | * regex.c (xmalloc, xrealloc, xfree): not to use ruby managed memory. * regex.c (DOUBLE_STACK, re_compile_fastmap0, re_adjust_startpos), (re_search, re_match_exec): check if failed to allocate memory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18211:shyouhei2008-08-044-2/+10
| | | | | | | * bignum.c (rb_big2str0, bigsqr): made interruptible. [ruby-Bugs-20622] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18181:shyouhei2008-08-043-1/+10
| | | | | | | | * ext/openssl/openssl_missing.h (d2i_of_void): define for older versions. [ruby-dev:35637] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18100,18129:shyouhei2008-08-043-10/+26
| | | | | | | | | | * numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check. fixed [ruby-dev:33683] * numeric.c (check_uint, rb_num2uint, rb_fix2uint): fixed wrong check about 64bit positive value. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17833:17837:shyouhei2008-08-045-9/+24
| | | | | | | | | | * gc.c (Init_GC): fix syntax error. * error.c (rb_exc_new3): keeps the given string itself. * eval.c (Init_Proc), gc.c (Init_GC): freeze messages of preallocated special exceptions also. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821shyouhei2008-07-173-8/+12
| | | | | | | violation. [ruby-dev:35487] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17719:shyouhei2008-07-173-2/+7
| | | | | | | | * string.c (rb_str_format_m): make tmp volatile to avoid possible GC problem. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18058:shyouhei2008-07-173-1/+7
| | | | | | | | * lib/optparse.rb (OptionParser#environment): requires shellwords. [ruby-dev:35466] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 18031:shyouhei2008-07-163-5/+9
| | | | | | | * ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo. [ruby-core:17713] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17940:shyouhei2008-07-123-2/+8
| | | | | | | | | * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in [ruby-dev:35091]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17841,17845,17858:shyouhei2008-07-123-4/+32
| | | | | | | | | | * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch on IA64 is broken. erfc(10000.0) aborts. use missing/erf.c instead. http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17916:shyouhei2008-07-103-2/+7
| | | | | | | | * file.c (rb_file_s_extname): fix for file name with spaces. [ruby-talk:307404] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@18004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17868:shyouhei2008-07-103-6/+7
| | | | | | | * lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17849:shyouhei2008-07-103-25/+46
| | | | | | | | * ruby.c: Mac OS X needs origargc times of '\0' in origargv. [ruby-dev:35308] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17842:shyouhei2008-07-104-5/+47
| | | | | | | | | | | * include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of FIXNUM_MAX to make it possible to convert to double accurately. It assumes FLT_RADIX is 2. fix RubyForge bug #14102. backported from 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17869:shyouhei2008-07-070-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17936 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17839:shyouhei2008-07-073-4/+11
| | | | | | | | | * lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of 'localhost.localdomain'. [ruby-dev:35333] * lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17832:shyouhei2008-07-074-42/+77
| | | | | | | | | | | | | | | | | | | * eval.c (rb_longjmp): duplicate the thrown exception to set backtrace if it was frozen. clear all raised flags. * eval.c (stack_check): leave clearing flag to rb_longjmp. * eval.c (rb_thread_set_raised, rb_thread_reset_raised): use generic flags. * eval.c (Init_Proc), gc.c (Init_GC): freeze preallocated special exceptions. * gc.c (rb_memerror): use thread raised flag instead of static flag, and raise nomem_error without backtrace if failed to make backtrace. [ruby-dev:34724] * gc.c (ruby_xmalloc): increase malloc_increase only if malloc succeeds. failed malloc size can be huge. it may increase malloc_limit too big which cause less GC and memory full. (ruby_xrealloc): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17827,17846:17848:shyouhei2008-07-079-95/+275
| | | | | | | | | | | | | | | * gc.c: add rb_during_gc(). based on a patch from arton <artonx AT yahoo.co.jp> at [ruby-dev:35313]. * intern.h: ditto. * ext/win32ole/win32ole.c: avoid creating Ruby object during GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313] * ext/win32ole/tests: add test_win32ole_event.rb, remove testOLEEVENT.rb * ext/win32ole/tests/testWIN32OLE.rb(test_convert_bignum): fix test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17924 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* patchlevel 266shyouhei2008-07-071-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* 2008-07-06svn2008-07-051-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_search): need to free allocated buffer in re_register. ↵matz2008-07-052-0/+6
| | | | | | [ruby-core:17518] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c: revert r17290, requested by NAKAMURA Usakushyouhei2008-07-033-225/+64
| | | | | | | | <usa at ruby-lang.org> git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17753:shyouhei2008-07-023-2/+7
| | | | | | | | * lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside double quotes are allowed. [ruby-list:45140] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17749:17752:shyouhei2008-07-023-2/+9
| | | | | | | | * numeric.c (num_coerce): call rb_Float(x) first. don't depend on evaluation order of function arguments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17727:shyouhei2008-07-023-1/+14
| | | | | | | | | | | * ext/syslog/syslog.c (syslog_write): syslog operations should be protected from $SAFE level 4. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>. * ext/syslog/syslog.c (mSyslog_close): ditto. * ext/syslog/syslog.c (mSyslog_set_mask): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17644:shyouhei2008-07-023-2/+6
| | | | | | | * math.c (domain_check): fix preprocess condition. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17643:shyouhei2008-07-023-7/+20
| | | | | | | | | * lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and should be clean. based on a patch from arton <artonx AT yahoo.co.jp> at [ruby-dev:35269] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17642:shyouhei2008-07-023-2/+7
| | | | | | | | * ext/win32ole/win32ole.c (date2time_str): fix the overflow in some situation. [ruby-bugs-20793] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 16851:shyouhei2008-07-023-5/+15
| | | | | | | | * ext/iconv/iconv.c (iconv_iconv): fixed backport miss. [ruby-core:17115] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17756:shyouhei2008-07-013-6/+11
| | | | | | | * array.c (rb_ary_fill): check if beg is too big. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17530:shyouhei2008-06-303-5/+16
| | | | | | | * string.c (str_buf_cat): check for self concatenation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17636:shyouhei2008-06-293-2/+7
| | | | | | | | * eval.c (rb_obj_respond_to): use RTEST to test the result of respond_to? method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_fill): (compatibility) do not raiseshyouhei2008-06-293-1/+10
| | | | | | | | | ArgumentError on negative length. This behaviour shall change in a future release. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17617:shyouhei2008-06-294-1/+30
| | | | | | | * time.c (time_timeval): fix rounding negative float. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17586,17612:shyouhei2008-06-293-5/+19
| | | | | | | | | | | * ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>. * test/inlinetest.rb (InlineTest.in_progname): workaround for frozen $0. [ruby-dev:35261] * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17584:shyouhei2008-06-293-2/+7
| | | | | | | | * process.c: include sys/resource.h if HAVE_SYS_RESOURCE_H is defined. pointed by TOYOFUKU Chikanobu. [ruby-dev:35258] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17581:shyouhei2008-06-293-3/+5
| | | | | | | | * eval.c (rb_call0): wrong condition to check insecure method. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17578:shyouhei2008-06-293-1/+7
| | | | | | | | * variable.c (rb_f_trace_var): should not be allowed at safe level 4. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17570:shyouhei2008-06-293-3/+8
| | | | | | | | * array.c (rb_ary_fill): not depend on unspecified behavior at integer overflow. reported by Vincenzo Iozzo <snagg AT openssl.it>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17561:shyouhei2008-06-293-5/+26
| | | | | | | | * ext/win32ole/win32ole.c(ole_invoke): fix memory leak. [ruby-bugs-20792] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17547:shyouhei2008-06-293-3/+9
| | | | | | | | | * eval.c (PUSH_FRAME, PUSH_CLASS): Add volatile to avoid a possible optimization bug on OS X/PPC. This at least makes build with gcc -O1 and `make test' pass. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17497:shyouhei2008-06-293-3/+12
| | | | | | | | * lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip magic comment. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merge revision(s) 17366:shyouhei2008-06-293-3/+6
| | | | | | | | * ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and IO#readlines do not affect $_. [ruby-core:17277] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_6@17662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e