1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Jeremy Evans a15f7dd1fb
Always mark the string returned by File.realpath as tainted
This string can include elements that were not in either string
passed to File.realpath, even if one of the strings is an
absolute path, due to symlinks:

```ruby
Dir.mkdir('b') unless File.directory?('b')
File.write('b/a', '') unless File.file?('b/a')
File.symlink('b', 'c') unless File.symlink?('c')
path = File.realpath('c/a'.untaint, Dir.pwd.untaint)
path # "/home/testr/ruby/b/a"
path.tainted? # should be true, as 'b' comes from file system
```

[Bug #15803]
2019-04-28 10:47:51 +09:00
..
-ext- The combination of non-Symbol keys and Symbol keys is now allowed again 2019-03-11 12:48:33 +00:00
base64
benchmark
bigdecimal
cgi
coverage Introduce pattern matching [EXPERIMENTAL] 2019-04-17 06:48:03 +00:00
csv Import CSV 3.0.9 2019-04-15 02:05:03 +00:00
date date: support for Reiwa, new Japanese era 2019-04-09 01:27:36 +00:00
dbm
digest
drb add DRbObject dereference test (Preparation for investigation of Bug #15711) 2019-04-25 01:08:54 +09:00
dtrace
erb erb.rb: prohibit marshaling [EXPERIMENTAL] 2019-03-28 03:46:48 +00:00
etc
excludes Isolate TestGCCompact from JIT testing 2019-04-27 12:28:52 +09:00
fiddle
fileutils Guard out the test when it is run under root permission 2019-03-14 01:04:53 +00:00
gdbm
io
irb * remove trailing spaces. 2019-04-28 02:02:30 +09:00
json Merge json-2.2.0 from flori/json. 2019-02-23 03:43:58 +00:00
lib io.c: warn non-nil $, 2019-04-18 21:56:55 +00:00
logger
matrix
minitest Use github url instead of ViewVC. 2019-04-22 20:00:32 +09:00
misc
mkmf
monitor
net
nkf
objspace fix imemo entry description. 2019-02-13 04:24:59 +00:00
open-uri
openssl ext/openssl/ossl_bn.c (ossl_bn_initialize): get rid of SEGV 2019-04-10 12:57:39 +00:00
optparse
ostruct
pathname STATX_BTIME depends on filesystems 2019-02-22 06:43:11 +00:00
psych
rdoc Fix a typo in an assertion message 2019-03-30 12:35:13 +00:00
readline
resolv
rexml
rinda Add debug message for test_rinda crash 2019-04-07 08:18:09 +00:00
ripper Introduce pattern matching [EXPERIMENTAL] 2019-04-17 06:48:03 +00:00
rss Upgrade RSS to 0.2.8 2019-01-25 06:35:04 +00:00
ruby Always mark the string returned by File.realpath as tainted 2019-04-28 10:47:51 +09:00
rubygems Merge rubygems/rubygems from upstream. 2019-04-02 11:48:18 +00:00
scanf
sdbm
shell
socket
stringio setbyte / ungetbyte allow out-of-range integers 2019-01-15 06:41:58 +00:00
strscan
syslog
testunit
uri
webrick Added to check MJIT constant for the Ruby 2.3-2.5. 2019-03-11 10:09:48 +00:00
win32ole
yaml
zlib
colors
runner.rb
test_abbrev.rb
test_cmath.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sync.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb tmpdir.rb: permission of user given directory 2019-01-23 06:06:47 +00:00
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb update to Unicode Version 12.1.0 (beta) 2019-04-05 00:58:51 +00:00
test_weakref.rb Pin weakmap references 2019-04-09 23:03:40 +00:00
test_win32api.rb