diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-26 13:59:47 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-26 13:59:47 +0000 |
| commit | c005549f787c9d34cb52f3ea3ecb2138670af03b (patch) | |
| tree | 2145042614c2bc1daad13f7c3def31dd31d09bff /eval.c | |
| parent | e2b5dad8dd3c05f02ce02eea09e621361f2ef823 (diff) | |
| download | ruby-c005549f787c9d34cb52f3ea3ecb2138670af03b.tar.gz ruby-c005549f787c9d34cb52f3ea3ecb2138670af03b.tar.xz ruby-c005549f787c9d34cb52f3ea3ecb2138670af03b.zip | |
* eval.c (set_trace_func): add rb_secure(4) to prevent adding
tracing function.
* lib/delegate.rb: document update from James Edward Gray II
<james@grayproductions.net>. [ruby-core:05942]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
| -rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2545,6 +2545,7 @@ set_trace_func(obj, trace) { rb_event_hook_t *hook; + rb_secure(4); if (NIL_P(trace)) { trace_func = 0; rb_remove_event_hook(call_trace_func); |
