mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[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
This commit is contained in:
parent
290903dba0
commit
b93ab7d693
1 changed files with 0 additions and 3 deletions
|
@ -324,7 +324,6 @@ rb_gdbm_fetch(GDBM_FILE dbm, datum key)
|
|||
|
||||
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)
|
|||
|
||||
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)
|
|||
|
||||
str = rb_str_new(key2.dptr, key2.dsize);
|
||||
free(key2.dptr);
|
||||
OBJ_TAINT(str);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue