ruby-changes:58518
From: Jeremy <ko1@a...>
Date: Thu, 31 Oct 2019 15:36:13 +0900 (JST)
Subject: [ruby-changes:58518] b93ab7d693 (master): [ruby/gdbm] Remove taint support
https://git.ruby-lang.org/ruby.git/commit/?id=b93ab7d693 From b93ab7d693f5a4bec5d0e7c7ea282a6e24fe5a93 Mon Sep 17 00:00:00 2001 From: Jeremy Evans <code@j...> Date: Fri, 18 Oct 2019 12:22:03 -0700 Subject: [ruby/gdbm] Remove taint support Ruby 2.7 deprecates taint and it no longer has an effect. The lack of taint support should not cause a problem in previous Ruby versions. https://github.com/ruby/gdbm/commit/f9aaa1a08d diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c index 05eb450..4a6377b 100644 --- a/ext/gdbm/gdbm.c +++ b/ext/gdbm/gdbm.c @@ -324,7 +324,6 @@ rb_gdbm_fetch(GDBM_FILE dbm, datum key) https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.c#L324 str = rb_str_new(val.dptr, val.dsize); free(val.dptr); - OBJ_TAINT(str); return str; } @@ -365,7 +364,6 @@ rb_gdbm_firstkey(GDBM_FILE dbm) https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.c#L364 str = rb_str_new(key.dptr, key.dsize); free(key.dptr); - OBJ_TAINT(str); return str; } @@ -386,7 +384,6 @@ rb_gdbm_nextkey(GDBM_FILE dbm, VALUE keystr) https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.c#L384 str = rb_str_new(key2.dptr, key2.dsize); free(key2.dptr); - OBJ_TAINT(str); return str; } -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/