[#25897] Mail archive searching? — "Martin J. Dürst" <duerst@...>
Why does ruby-dev's official archive
[#25928] Ruby 1.8.6-p383 hangs in dln_load on Snow Leopard — Timothy Hunter <cyclists@...>
An RMagick user reports that Ruby 1.8.6 hangs when requiring RMagick.
On Oct 3, 2009, at 4:26 PM, Timothy Hunter wrote:
On Oct 3, 10:26m, Timothy Hunter <cycli...@nc.rr.com> wrote:
[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>
Hi,
On Sun, Oct 4, 2009 at 11:47 PM, Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
[#25943] Disabling tainting — Tony Arcieri <tony@...>
Would it make sense to have a flag passed to the interpreter on startup that
2009/10/6 Tony Arcieri <tony@medioh.com>:
On Tue, Oct 6, 2009 at 3:52 AM, Yugui <yugui@yugui.jp> wrote:
[#25964] mis filed bug reports — Roger Pack <rogerdpack2@...>
If i accidentally file a bug under 1.9 that belongs in 1.8, I assume I
[#25965] [Bug #2180] request: add *Method#source_location to 1.8.x — Roger Pack <redmine@...>
Bug #2180: request: add *Method#source_location to 1.8.x
[#25969] [Bug #2181] Segmentation fault for test/drb/* -- possible bug in Marshal/GC — Nikolai Lugovoi <redmine@...>
Bug #2181: Segmentation fault for test/drb/* -- possible bug in Marshal/GC
[#26012] Segfaults after multiple call of ruby_node_run — Christoph Kappel <unexist@...>
[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>
Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error
[#26070] [Bug #2201] Process.spawn fails in 1.9.1 — Roger Pack <redmine@...>
Bug #2201: Process.spawn fails in 1.9.1
[#26087] [Bug #2212] Using a Lambda with Inappropriate Arity for Hash#default_proc= — Run Paint Run Run <redmine@...>
Bug #2212: Using a Lambda with Inappropriate Arity for Hash#default_proc=
[#26126] The fate of my keyword documentation — "David A. Black" <dblack@...>
Hi --
[#26200] [Bug #2243] Random instance variables order — Maxim Chechel <redmine@...>
Bug #2243: Random instance variables order
[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>
Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds
[#26232] [Feature #2255] unicode parameters cannot be passed to ruby — Vit Ondruch <redmine@...>
Feature #2255: unicode parameters cannot be passed to ruby
[#26237] [Bug #2256] net\ftp.rb failing on implicit cast of Pathname to string — Sai Fujinaro <redmine@...>
Bug #2256: net\ftp.rb failing on implicit cast of Pathname to string
[#26262] [Feature #2260] better access with GC_DEBUG — Roger Pack <redmine@...>
Feature #2260: better access with GC_DEBUG
[#26299] Which commit fixed Set#hash (Hash#hash, I assume) between 1.9.1 and 1.9.2? — "Shot (Piotr Szotkowski)" <shot@...>
Hello, good people of ruby-core.
[#26303] IO.foreach (and friends) effect on $< and $. — Charles Oliver Nutter <headius@...>
I have a few questions about how the line-by-line IO operations are
[#26336] [Bug #2283] Ruby 1.9.1p243 spinning with 100% CPU; perhaps rb_str_slice_bang-related — Mark Aiken <redmine@...>
Bug #2283: Ruby 1.9.1p243 spinning with 100% CPU; perhaps rb_str_slice_bang-related
[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>
Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine
Issue #2294 has been updated by Anonymous Anonymous.
Hi,
Hi,
Hi,
[#26388] suggestion: gems.ruby-lang.org — Yusuke ENDOH <mame@...>
Hi --
On Wed, Oct 28, 2009 at 3:20 AM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
Hi,
On Wed, Oct 28, 2009 at 9:00 PM, Yusuke ENDOH <mame@tsg.ne.jp> wrote:
Hi,
[#26390] [Bug #2303] dl.so segfaults on mingw32 — Nikolai Weibull <redmine@...>
Bug #2303: dl.so segfaults on mingw32
[#26429] [Bug #2313] Incomplete encoding conversion? — Adam Salter <redmine@...>
Bug #2313: Incomplete encoding conversion?
[#26447] [Bug #2316] [BUG] cfp consistency error — Cezary Baginski <redmine@...>
Bug #2316: [BUG] cfp consistency error
[#26458] [Bug #2319] gethostbyname fails in windows — Roger Pack <redmine@...>
Bug #2319: gethostbyname fails in windows
[#26459] [Bug #2320] patch to trunk .document to include more readme's etc. — Roger Pack <redmine@...>
Bug #2320: patch to trunk .document to include more readme's etc.
[ruby-core:25984] Re: Disabling tainting
No, but it looks with that I could actually get some. Thanks.
On Tue, Oct 6, 2009 at 10:08 PM, Nobuyoshi Nakada <nobu@ruby-lang.org>wrote:
> Hi,
>
> At Wed, 7 Oct 2009 12:11:57 +0900,
> > That's fine, but 99.9% of Ruby programs out there don't use it and it
> > impacts performance, so isn't making it an on-by-default configurable
> option
> > a good idea?
>
> Do you have exact data?
>
>
> Index: configure.in
> ===================================================================
> --- configure.in (revision 25254)
> +++ configure.in (working copy)
> @@ -2131,4 +2131,11 @@ esac
> AC_SUBST(INSTALLDOC)
>
> +AC_ARG_ENABLE(taintness-checking,
> + AS_HELP_STRING([--disable-taintness-checking], [do not check
> taintness]),
> + [taintness_checking=$enableval], [taintness_checking=yes])
> +if test $taintness_checking = no; then
> + AC_DEFINE(RUBY_DISABLE_TAINTNESS)
> +fi
> +
> if test "$rb_with_pthread" = "yes"; then
> THREAD_MODEL=pthread
> Index: include/ruby/ruby.h
> ===================================================================
> --- include/ruby/ruby.h (revision 25254)
> +++ include/ruby/ruby.h (working copy)
> @@ -513,8 +513,14 @@ VALUE rb_int2big(SIGNED_VALUE);
> VALUE rb_newobj(void);
> #define NEWOBJ(obj,type) type *obj = (type*)rb_newobj()
> +#ifdef RUBY_DISABLE_TAINTNESS
> +#define TAINT_IF_UNSAFE(level, obj) \
> + if (rb_safe_level() >= level) FL_SET(obj, FL_TAINT | FL_UNTRUSTED)
> +#else
> +#define TAINT_IF_UNSAFE(level, obj) (void)0
> +#endif
> #define OBJSETUP(obj,c,t) do {\
> RBASIC(obj)->flags = (t);\
> RBASIC(obj)->klass = (c);\
> - if (rb_safe_level() >= 3) FL_SET(obj, FL_TAINT | FL_UNTRUSTED);\
> + TAINT_IF_UNSAFE(3, obj);\
> } while (0)
> #define CLONESETUP(clone,obj) do {\
> @@ -891,4 +897,11 @@ struct RBignum {
> #define FL_REVERSE(x,f) do {if (FL_ABLE(x)) RBASIC(x)->flags ^= (f);}
> while (0)
>
> +#ifdef RUBY_DISABLE_TAINTNESS
> +#define OBJ_TAINTED(x) 0
> +#define OBJ_TAINT(x) do {(void)(x);} while (0)
> +#define OBJ_UNTRUSTED(x) 0
> +#define OBJ_UNTRUST(x) do {(void)(x);} while (0)
> +#define OBJ_INFECT(x,s) do {(void)(x);(void)(s);} while (0)
> +#else
> #define OBJ_TAINTED(x) (!!FL_TEST((x), FL_TAINT))
> #define OBJ_TAINT(x) FL_SET((x), FL_TAINT)
> @@ -896,4 +909,5 @@ struct RBignum {
> #define OBJ_UNTRUST(x) FL_SET((x), FL_UNTRUSTED)
> #define OBJ_INFECT(x,s) do {if (FL_ABLE(x) && FL_ABLE(s)) RBASIC(x)->flags
> |= RBASIC(s)->flags & (FL_TAINT | FL_UNTRUSTED);} while (0)
> +#endif
>
> #define OBJ_FROZEN(x) (!!FL_TEST((x), FL_FREEZE))
>
>
> --
> Nobu Nakada
>
>
--
Tony Arcieri
Medioh/Nagravision