mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/dl/cfunc.c (rb_dlcfunc_inspect): should taint the result.
[ruby-dev:41533] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bc561d0b93
commit
da0ac85107
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jun 4 10:46:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/dl/cfunc.c (rb_dlcfunc_inspect): should taint the result.
|
||||||
|
[ruby-dev:41533]
|
||||||
|
|
||||||
Fri Jun 4 09:37:15 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
Fri Jun 4 09:37:15 2010 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* gc.c (gc_sweep): suppress a warning on VC, again.
|
* gc.c (gc_sweep): suppress a warning on VC, again.
|
||||||
|
|
|
@ -284,15 +284,18 @@ rb_dlcfunc_set_ptr(VALUE self, VALUE addr)
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_dlcfunc_inspect(VALUE self)
|
rb_dlcfunc_inspect(VALUE self)
|
||||||
{
|
{
|
||||||
|
VALUE val;
|
||||||
struct cfunc_data *cfunc;
|
struct cfunc_data *cfunc;
|
||||||
|
|
||||||
TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
|
TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
|
||||||
|
|
||||||
return rb_sprintf("#<DL::CFunc:%p ptr=%p type=%d name='%s'>",
|
val = rb_sprintf("#<DL::CFunc:%p ptr=%p type=%d name='%s'>",
|
||||||
cfunc,
|
cfunc,
|
||||||
cfunc->ptr,
|
cfunc->ptr,
|
||||||
cfunc->type,
|
cfunc->type,
|
||||||
cfunc->name ? cfunc->name : "");
|
cfunc->name ? cfunc->name : "");
|
||||||
|
OBJ_TAINT(val);
|
||||||
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue