1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Peter Zhu 166cacc505
Fix corruption in ARGF.inplace
Extension string stored in `ARGF.inplace` is created using an api
designed for C string constants to create a Ruby string that
points at another Ruby string. When the original string is swept,
the extension string gets corrupted.

Reproduction script (on MacOS):

```ruby
#!/usr/bin/ruby -pi.bak

BEGIN {
  GC.start(full_mark: true)
  arr = []
  1000000.times do |x|
    arr << "fooo#{x}"
  end
}

puts "hello"
```

Co-Authored-By: Matt Valentine-House <31869+eightbitraptor@users.noreply.github.com>
2020-08-12 17:54:09 +09:00
..
-ext- vm_backtrace.c: let rb_profile_frames show cfunc frames 2020-07-28 13:18:08 +09:00
base64
benchmark
bigdecimal bidecimal: improve tests' independence (#3297) 2020-07-12 17:30:29 +09:00
cgi
coverage test/coverage/test_coverage.rb: Add a test for [Bug #16967] 2020-06-20 09:28:03 +09:00
csv [ruby/csv] CSV.generate_line: use the encoding of the first non ASCII field as the expected encoding 2020-07-20 02:32:55 +09:00
date [ruby/date] Fix cannot load complex into simple error when loading marshal dump (Fixes #20) 2020-06-20 18:35:03 +09:00
dbm
did_you_mean Sync did_you_mean 2020-06-06 13:02:08 -04:00
digest
drb
dtrace
erb
etc
excludes
fiber Suppress "assigned but unused variable" warnings 2020-07-23 23:44:25 +09:00
fiddle Apply timeout-scale to test_nogvl_poll. 2020-07-30 18:28:41 +09:00
fileutils Fix Encoding::CompatibilityError in FileUtils::Entry_#join 2020-06-22 18:34:24 +09:00
gdbm [ruby/gdbm] Workaround for GitHub Actions 2020-06-09 20:54:52 +09:00
io Add explicitly require for Dir.mktmpdir 2020-07-30 21:01:22 +09:00
irb Sometimes result indicator (=>) isn't shown 2020-07-22 03:49:17 +09:00
json test/json/json_fixtures_test.rb: Prevent an "out of range" warning 2020-07-03 11:47:09 +09:00
lib
logger [ruby/logger] Let Logger#reopen not raise on nil log devices 2020-06-11 13:54:04 +09:00
matrix
mkmf Make the mkmf methods private in the global [Bug #16896] 2020-07-13 18:44:22 +09:00
monitor Fix MonitorMixin when the super's initialize has kwargs 2020-07-17 16:37:18 -07:00
net [ruby/net-http] Fix SSL session reuse test with LibreSSL 3.2+ 2020-08-03 18:56:14 +09:00
nkf
objspace Removed fragile tests in https://github.com/ruby/ruby/pull/3349 2020-07-23 14:57:05 +09:00
open-uri
openssl Test out fix for OpenSSL test flakiness 2020-08-11 12:01:51 -04:00
optparse
ostruct
pathname Prefer more descriptive assertion methods 2020-06-21 11:31:48 +09:00
psych [ruby/psych] Fix anchor lookup with symbolized names 2020-06-23 15:26:29 +09:00
racc
rdoc Use https instead of http 2020-07-28 19:51:54 +09:00
readline Suppress bell during the test 2020-07-18 19:33:11 +09:00
reline
resolv
rinda Revert "Try increasing read timeout of rinda tests" 2020-06-26 22:43:59 -07:00
ripper Drop token info for endless method definition 2020-06-25 01:14:26 +09:00
ruby Fix corruption in ARGF.inplace 2020-08-12 17:54:09 +09:00
rubygems [rubygems/rubygems] Enable Layout/LeadingEmptyLines in rubygems 2020-07-31 21:07:19 +09:00
socket
stringio [ruby/stringio] No compatibility check in US-ASCII case 2020-07-20 14:59:19 +09:00
strscan
syslog
uri
webrick Add tests of nested multibyte path and DirectoryIndex 2020-06-22 17:31:07 +09:00
win32ole
yaml
zlib
runner.rb
test_abbrev.rb
test_delegate.rb Add instance_methods to class generated by DelegateClass 2020-07-09 15:01:10 -07:00
test_extlibs.rb Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb [open3] only close streams if a block is passed 2020-06-18 10:00:20 -07:00
test_pp.rb
test_prettyprint.rb
test_prime.rb
test_pstore.rb
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb Make mutating the result of SortedSet#to_a not affect the set 2020-06-11 14:02:00 -07:00
test_shellwords.rb
test_singleton.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