[#30589] [Bug #3391] Use single exclamation mark instead of double exclamation mark for IRB — Diego Viola <redmine@...>

Bug #3391: Use single exclamation mark instead of double exclamation mark for IRB

10 messages 2010/06/04

[#30672] [Bug #3411] Time.local 1916,5,1 #=> 1916-04-30 23:00:00 +0100 — Benoit Daloze <redmine@...>

Bug #3411: Time.local 1916,5,1 #=> 1916-04-30 23:00:00 +0100

12 messages 2010/06/08

[#30699] [Bug #3419] 1.9.2-preview3 possible bug with Rails 3 active_record sqlite_adapter — Joe Sak <redmine@...>

Bug #3419: 1.9.2-preview3 possible bug with Rails 3 active_record sqlite_adapter

9 messages 2010/06/09

[#30734] [Bug #3428] ri outputs ansi escape sequences even when stdout is not a tty — caleb clausen <redmine@...>

Bug #3428: ri outputs ansi escape sequences even when stdout is not a tty

11 messages 2010/06/11

[#30756] [Feature #3436] Spawn the timer thread lazily — Maximilian Gass <redmine@...>

Feature #3436: Spawn the timer thread lazily

15 messages 2010/06/13
[#32686] [Ruby 1.9-Feature#3436] Spawn the timer thread lazily — Mark Somerville <redmine@...> 2010/10/04

Issue #3436 has been updated by Mark Somerville.

[ruby-core:30958] [PATCH] ignored strdup: twice

From: Jim Meyering <jim@...>
Date: 2010-06-29 13:27:21 UTC
List: ruby-core #30958
Here are two places where a failed strdup appears to
be ignored.  In one case, it would result in a NULL dereference.
In the other, it would cause PATH to be silently reset.

You can confirm that these are not mapped to ruby_strdup
by running nm *.o|grep strdup.


From 2f170de32b0956749d4e4fb4eccf7084044f0017 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Tue, 29 Jun 2010 14:38:20 +0200
Subject: [PATCH 1/2] avoid NULL-dereference in zone_str

* time.c (zone_str): Include util.h for its strdup->ruby_strdup
definition.  That is required to avoid a NULL dereference upon OOM.
---
 time.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/time.c b/time.c
index 934cfd7..90086a7 100644
--- a/time.c
+++ b/time.c
@@ -14,6 +14,7 @@
 #include <time.h>
 #include <errno.h>
 #include "ruby/encoding.h"
+#include "ruby/util.h"

 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
--
1.7.2.rc0.206.g3336


From fac8e79523f4dde4741928546777e1b0a1d74137 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@redhat.com>
Date: Tue, 29 Jun 2010 14:43:32 +0200
Subject: [PATCH 2/2] do not let failed strdup cause PATH reset

* dln_find.c (dln_find_exe_r): Include "ruby/util.h" for its strdup->
ruby_strdup mapping.  Otherwise, a failed strdup would make us use
a default search PATH.
---
 dln_find.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dln_find.c b/dln_find.c
index 728ace8..6317eb9 100644
--- a/dln_find.c
+++ b/dln_find.c
@@ -11,6 +11,7 @@

 #ifdef RUBY_EXPORT
 #include "ruby/ruby.h"
+#include "ruby/util.h"
 #define dln_notimplement rb_notimplement
 #define dln_memerror rb_memerror
 #define dln_exit rb_exit
--
1.7.2.rc0.206.g3336

In This Thread

Prev Next