1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Alan Wu 9dec4e8fc3
String#b: Don't depend on dependent string
Registering a string that depend on a dependent string as fstring
can lead to use-after-free. See c06ddfe and 3f95620 for details.

The following script triggers use-after-free on trunk, 2.4.6, 2.5.5
and 2.6.3. Credits to @wanabe for using eval as a cross-version way
of registering a fstring.

```ruby
a = ('j' * 24).b.b
eval('', binding, a)

p a
4.times { GC.start }
p a
```

 - string.c (str_replace_shared_without_enc): when given a
   dependent string, depend on the root of the dependent
   string.

[Bug #15934]
2019-06-18 12:18:13 +09:00
..
-ext-
base64
benchmark
bigdecimal
cgi
coverage
csv
date
dbm
digest
drb
dtrace
erb
etc
excludes
fiddle
fileutils
gdbm
io
irb Clarify the Ruby version support status in IRB more 2019-06-13 00:41:00 +09:00
json
lib Use Exception#full_message for traceback 2019-06-14 08:46:22 +09:00
logger
matrix
minitest
misc
mkmf
monitor
net test/net/imap/test_imap.rb: wait for the server thread to start 2019-06-15 11:06:39 +09:00
nkf
objspace
open-uri
openssl
optparse
ostruct
pathname
psych
rdoc
readline
reline
resolv Make Resolv::DNS#each_name accept Resolv::IPv{4,6} arguments 2019-06-08 20:31:12 -07:00
rexml
rinda
ripper Add pipeline operator [Feature #15799] 2019-06-13 18:44:32 +09:00
rss
ruby String#b: Don't depend on dependent string 2019-06-18 12:18:13 +09:00
rubygems
scanf
sdbm
shell
socket
stringio
strscan
syslog
testunit
uri
webrick test/webrick/test_ssl_server.rb: Use EnvUtil.timeout for timeout scale factor 2019-06-13 23:04:41 +09: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
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb
test_win32api.rb