Add assertions for safe traversability of object graphs for Ractors
We can only traverse into a node that lives in our heap. This was true before, but we didn't have assertions for it.
Remove NOINLINE from NO_ASAN macro
This was originally added in 16f5b18b7aa505765a5361a7d828e33963ea61bc, but it's unclear if that was intentional. I don't think we should be forcing noinline on functions which we want to disable ASAN when ASAN isn't enabled....
Fix test-tool stalling with TESTOPTS=-j
Previously ENV.delete("MAKEFLAGS") was on the right side of an and, so when -j was given explicitly it was short-circuited and never ran. Tests which start their own runner (ex. test4test_hideskip.rb) then inherited...
and
[ruby/json] Make the script_safe option both safer and less intrusive
script_safe
Based on WHATWG recommendation "4.12.1.2 Restrictions for contents of script elements", only escape <script, </script and <!--.
<script
</script
<!--
Now longer escape all forward slashes.
As a result it should escape much less than before, and keep...
[Bug #22475] Skip origin iclasses when prepending to an included module
Since c59c4d717a ([Bug #22257]), rb_prepend_module registers the origin iclass it backfills into each includer in the module's subclasses list so that method cache invalidation can reach it....
[ruby/etc] Fix return value conversions for each platform
https://github.com/ruby/etc/commit/e116db057f
Ignore negative capacity
Fix the warning RSTRING_PTR is returning NULL. Adding unsigned size_t (that comes from offsetof) promotes rb_len_t to size_t unless rb_len_t is wider than size_t, and results in a very large value. Since it is definitely larger than sizeof(string RString),...
size_t
offsetof
rb_len_t
sizeof(string RString)
[ruby/ipaddr] Add IPAddr#unspecified? predicate
Add a predicate for the IPv4 unspecified address 0.0.0.0 and the IPv6 unspecified address ::, including the IPv4-mapped form. The predicate requires the full /32 or /128 prefix so a supernet is not reported....
[ruby/json] Stop escaping U+2028 and U+2029 in script_safe mode
This hasn't been a concern since https://github.com/tc39/proposal-json-superset became largely implemented.
https://github.com/ruby/json/commit/4f50a5873b
Range-check rlimit values before fork
rb_execarg_addopt_rlimit only converted the soft and hard limits with rb_to_int, and the conversion to rlim_t happened in run_exec_rlimit, in the child after fork/vfork. A value out of range, such as 2**65,...
rb_execarg_addopt_rlimit
rb_to_int
rlim_t
run_exec_rlimit
2**65
View all revisions | View revisions
Also available in: Atom