mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
05b1944c53
Inside ObjectSpace.reachable_objects_from we keep an internal identhash in order to de-duplicate reachable objects when wrapping them as InternalObject. Previously this hash was not hidden, making it possible to leak references to those internal objects to Ruby if using ObjectSpace.each_object. This commit solves this by hiding the hash. To simplify collection of values, we instead now just use the hash as a set of visited objects, and collect an Array (not hidden) of values to be returned. |
||
---|---|---|
.. | ||
-test- | ||
bigdecimal | ||
cgi/escape | ||
continuation | ||
coverage | ||
date | ||
digest | ||
etc | ||
fcntl | ||
fiddle | ||
io | ||
json | ||
monitor | ||
nkf | ||
objspace | ||
openssl | ||
pathname | ||
psych | ||
pty | ||
racc/cparse | ||
rbconfig/sizeof | ||
readline | ||
ripper | ||
rubyvm | ||
socket | ||
stringio | ||
strscan | ||
syslog | ||
win32 | ||
win32ole | ||
zlib | ||
.document | ||
extmk.rb | ||
Setup | ||
Setup.atheos | ||
Setup.nt |